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     Property file... Is it possible?

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Property file... Is it possible?
 Login/Join
 
Member
posted
I would like to have a property file that contains a set of name/value pars that can be modified from environment to environment. That way I can reference a name of say data_file_loc and get a value for that server. If I can set this up in the .prf that is fine otherwise just have a common name=value file and have a common routine to pass a name to and get the value back.

Did I already say that I'm not a focus developer? I support the server and I see things that are happening and would like to implement some standards.

Thanks for your help
Michael

Server Ver 7.1.5


Have used WF 5.x, 7.x w/RC, BID, MR
WAS 5.x/6.x
AIX 5.3.0
 
Posts: 29 | Location: Wine Country | Registered: October 10, 2006Report This Post
Virtuoso
posted Hide Post
Yes, you can do this a couple of different ways. If you know java, then you can do this as a real properties file and build an exit that will expose all the keys as parameters for your requests. An easier way would be to do this purely in webfocus. I know you are not a developer, so I will try to keep this as simple as possible.

1) create a file with a .fex extension in the ibi\apps\baseapp directory (e.g. init_values.fex)
2) create your key value pairs as focus expressions, for example:

-SET &DATA_FILE_LOC='C:\temp\here\';
-SET &SOME_PARAM='100';

** note the syntax **

3) Open a browser and go to the client admin panel (http://your-server:your-port/ibi_apps/console/webfocusconsole.jsp
4) Enter your user/pass (default is userid: admin with no password), and proceed to "Configuration/General".
5) Change the value of _site_profile from \n to -INCLUDE init_values.fex\n

That should do it.


"There is no limit to what you can achieve ... if you don’t care who gets the credit." Roger Abbott
 
Posts: 1102 | Location: Toronto, Ontario | Registered: May 26, 2004Report This Post
Member
posted Hide Post
Thanks for the information. This makes complete sense.

So we also have inside the profile FILEDEF's setup and the file name is about 50 characters long. If I were to INCLUDE this fex before setting the FILEDEF's could I reference one of the variables here?

So
FILEDEF XYZ DISK /apps/ibi/products/xxx/data/email.txt
instead be
FILEDEV XXX DISK &DATA_DIR/email.txt

And if I wanted to keep the variables that you mentioned in the profile itself would that work with the same -SET ... command?

Thanks again for your help and understanding that I am WebFOCUS illiterate :-)


Have used WF 5.x, 7.x w/RC, BID, MR
WAS 5.x/6.x
AIX 5.3.0
 
Posts: 29 | Location: Wine Country | Registered: October 10, 2006Report This Post
Virtuoso
posted Hide Post
Tred lightly here. The -SET and -INCLUDE are called dialog manager commands (a sub component of WebFOCUS). The last time I checked, version 7 did not allow dialog manager commands in the server profile (edasprof.prf). What you could do is create another fex with all the parameter driven filedefs, and then -INCLUDE that fex from withing the init_values (_site_profile).

That being said, no dialog manager commands in the profile could have been a bug with that specific release of WebFOCUS (I believe it was 7.1.0). Test your way, and if it does not work, confirm with the help desk if dialog manager is not supported in the server profile.


"There is no limit to what you can achieve ... if you don’t care who gets the credit." Roger Abbott
 
Posts: 1102 | Location: Toronto, Ontario | Registered: May 26, 2004Report This Post
Virtuoso
posted Hide Post
I second dhagens suggestion of using the _site_profile setting in the SITE.WFS file. I use this to force an application specific profile to run depending on which application sent the report request to WF. I have WF 713 and seem to be OK with some -SET statements for global && variables in the EDASPROF.PRF. I have not tried -INCLUDE thou.


Thanks!

Mickey

FOCUS/WebFOCUS 1990 - 2011
 
Posts: 995 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003Report This Post
Member
posted Hide Post
I'm not looking for this to be in the edasprof.prf file but the individual application prf files. If that makes any sense.

I'll look into this _site_profile and see what I can do here.


Have used WF 5.x, 7.x w/RC, BID, MR
WAS 5.x/6.x
AIX 5.3.0
 
Posts: 29 | Location: Wine Country | Registered: October 10, 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     Property file... Is it possible?

Copyright © 1996-2020 Information Builders