Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Is it possible to have a variable element in an Access File?

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Is it possible to have a variable element in an Access File?
 Login/Join
 
Guru
posted
Thank you in advance for taking a look at this.
-*------------------------
Customer has three WebFOCUS environments; DEV, QA and PROD.

Objects (fex,htm,sty,mas,acx) are created in DEV, promoted to QA then PROD.

Customer does not want to edit the files after they have moved from DEV to higher environments

Consider the following two example acx files, the issue is in each environment the db_owner is slightly different. For other Oracle reasons, they can not make the db_owner the same name.

The question is, can we have a variable db_owner name as illustrated in the 2nd example?

-* Current version with hard coded name
SEGNAME=ARTATTRIB, TABLENAME=DB_OWNER.ARTATTRIB, CONNECTION=ABC, KEYS=0, $


-* Proposed variable table
SEGNAME=ARTATTRIB, TABLENAME=&DBOWNER.EVAL.ARTATTRIB, CONNECTION=ABC, KEYS=0, $

This message has been edited. Last edited by: Kerry,


WebFOCUS Administrator @ Worldpay FIS
PROD/DEV/TEST: 8204, SANDBOX: 8206 soon - BIP, Reportcaster, Resource Manager, EUM, HyperStage soon, DB: HIVE,Oracle,MSSQL
 
Posts: 291 | Location: Greater Cincinnati  | Registered: May 11, 2005Report This Post
Platinum Member
posted Hide Post
Hi

Yes, its possible to replace the TableName with a && global variable. I think its available in 7702.
Using the Developer Studio Synonym Editor GUI :

1. You have to add the variable to the master file (as a container)

2. Then you can change the TABLENAME to be equal to the variable

3. You can set the variable value in a profile or on the fex level before the TABLE FILE

Yours

Eran


Yours,
Eran
SRL Products

http://www.srl.co.il

 
Posts: 97 | Location: Tel Aviv, Israel | Registered: November 20, 2005Report This Post
Guru
posted Hide Post
This is exactly what I was hoping for. Unfortunately the WG systems is @ 7.6.11.

I'm not sure what you mean by 'container' in the master file?

But the access file would look something like this?

SEGNAME=ARTATTRIB, TABLENAME=&&GLOBALVAR, CONNECTION=ABC, KEYS=0, $ 


Thank you
 
Posts: 291 | Location: Greater Cincinnati  | Registered: May 11, 2005Report This Post
Expert
posted Hide Post
In our environment, we remove the owner, and connection, nad have the report set these.

Is the Table name unique in each environment ? are there multiple schemas ?


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Guru
posted Hide Post
Everything is the same, except the db_owner. THe "TABLENAME=" is the only difference. The goal being, don't change a thing once it leaves the DEV environment.

BTW, this isn't SQL Passthru.

So you guys use something like?

SET CONNECTION_ATTRIBUTES dbasename/user,password


This isn't a show stopper, just a nice to have feature. Its really a simple issue, one minor thing to change during the process and there maybe around 100 MDF files total. But, the group that promotes are not developers, they wouldn't necessarily see a problem if they made a mistake.

Another idea is automate this change, run a script, post promotion into each env. That would eliminate human error.
 
Posts: 291 | Location: Greater Cincinnati  | Registered: May 11, 2005Report This Post
Expert
posted Hide Post
Yes we do issue a SET CONNECTION_ATTRIBUTES, well actually we use:

SQL SQLORA SET USER
SQL SQLORA SET SERVER


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Guru
posted Hide Post
[SOLVED] Actually, an unrelated issue with the complexity of the GOLD Database forced us into SQL Passthru and it became a non-issue for moving forward.

Thanks for the comments and thoughts
 
Posts: 291 | Location: Greater Cincinnati  | Registered: May 11, 2005Report This Post
Virtuoso
posted Hide Post
To add to this converstion: in order to have a variable schema you can do the following.

In the MASTER after the FILENAME definition, add:
VARIABLE NAME=&&SCHEMA, [DEFAULT=owner,] $

In the ACCESS, code:
SEGNAME=segment, TABLENAME=&&SCHEMA..tablename, ... {notice the 2 periods after the &&variable}

Then you can either use the default value of &&SCHEMA or set it, either in EDASPROF or before you retrieve data from your table.

A very nice feature.


Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF

 
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006Report This Post
Master
posted Hide Post
I believe what Danny is describing is a 7.7 feature. I could use it much like the first poster but alas I am stuck on 7.6.11 (not my choice).


In FOCUS since 1985. Prod WF 8.0.08 (z90/Suse Linux) DB (Oracle 11g), Self Serv, Report Caster, WebServer Intel/Linux.
 
Posts: 975 | Location: Oklahoma City | Registered: October 27, 2006Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Is it possible to have a variable element in an Access File?

Copyright © 1996-2020 Information Builders