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.
maybe I am going about this all wrong. I have an HTML page that I want to put a value in httpsession. I then want to pass this value to the preappend path in webfocus. Has anyone done anything similar to this? If so, how????This message has been edited. Last edited by: Kerry,
Version: 8.0.0.6 Windows platform All output formats will probably be used.
If you have a variable on you html page that gets transported to WebFocus, then you can use that to modify your path. That would mean that the server can find your fex somewhere along the search path. The other way to do this is to set the path from the web page. You can do that by adding the variable 'IBIAPP_app' to your form. The server will then search this app directory for your fex, and then you can do whatever needed in your fex.
GamP
- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007
Here is what I need to do. I have an html page that does not launch a report. It is just standalone with radio buttons. Based on the radio button selected, I want to set a global variable that will modify the preappend path. There is no output.
Has anyone done this? if so....HOW?????
Version: 8.0.0.6 Windows platform All output formats will probably be used.
There MUST be output of some sort, otherwise you'd never be able to pick up the altered path. What do you want to do with the altered path? Why do you need it? The fact that the html page does not launch a report probably only means that you wish to select a certain path using these radio buttons - that do not produce output(?) - and then expect some other process to pick up these changes. Correct?
GamP
- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007
YES. So my company works with several financial exchanges. Each exchange has its own database with unique metadata files. So we grouped each exchange under there own folder with the .mas files.
So, by choosing a radio button on the first page, I merely want to save a value to supply the preappend when I get to the report .fex of what folder to look for the metadata.
Do you understand what I am asking?
Version: 8.0.0.6 Windows platform All output formats will probably be used.
the APP PREPEND is used two ways. It modifies the search path in the current session or you can put it in a profile (server or user). You don't want any processes messing with your server or user profiles, so that's probably out.
I don't know why you're separating the prepend statement from the actual fex that will use it. In fact, setting the path this way will have no effect for another procedure that runs separately afterward. I would just use some dialogue manager to set it in the actual procedure that will be run.
Regards,
Darin
In FOCUS since 1991 WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex WF Client: 77 on Linux w/Tomcat
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007
I have an html page that does not launch a report. It is just standalone with radio buttons.
I have to agree with Gamp on this, The page must do something even if it's just trying to set up the user environment, which is what it appears you are saying.
That means the form contained within page must be submitted to WebFOCUS.
If you want variables to live for the duration of the browser session (and not just the request) then you must set them as being GLOBAL '&&' and IBIF_persistantamp must be set as Yes in your WebFOCUS client configuration.
And as Darin says unless you write something to a file, either a fex called by a profile or the profile itself any APP PREPEND will not persist.
If you include the launch of the report(s) on the page with the radio buttons (or vice versa) then your problem is solved. You then provide a value for each radio button that the fex will interpret to decide which way to go. Easiest thing in the webfocus world.
But if you have one page in one browser window with the radiobuttons and then another page in a second browser window to launch the report, then I would not know how to do it, unless the first (radio button) window is named. Then I think you might be able to get the value of the radiobutton from the other (named) window and propagate it to webfocus. But that seems to me to be a cumbersome detour, because in the end the value has to be ported to the webfocus environment, no matter what.
GamP
- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007
One Option is if you are ok with cookies. you could have you page set a cookie to the value you want. then in the custom setting get the cookie and pass it to the reporting server. then it is a simple webfocus variable and you can do what ever you want.
"One Option is if you are ok with cookies. you could have you page set a cookie to the value you want. then in the custom setting get the cookie and pass it to the reporting server. then it is a simple webfocus variable and you can do what ever you want."
Can you give me an example?
Version: 8.0.0.6 Windows platform All output formats will probably be used.
******* Edited to update the syntax for CopyWFVarToSessionVar since the example copied from the manual appears to not be correct. I will be following up with submitting a Doc enhancement to fix this error **********************This message has been edited. Last edited by: dlogan,
Ok, apparently if the variable is passed within IBIF_params then its not parsed at the time that site.wfs is processed and the variable is not processed properly.
The following modifications to the above code resolves this issue:
1) Open the following file in an editor:
\ibi\WebFOCUS76\client\wfc\etc\ibiendd.wfs
2) Add the following to the end of the file and save the results:
<IFDEF> PASSCAR
SESSION_VAR_NAME=session_PASSCAR
<call> CopyWFVarToSessionVar(PASSCAR, SESSION_VAR_NAME)
<ENDIF>
3) Log into the WF Admin Console and go to "Configuration" -> "Custom Settings"
4) Enter the following code:
#Value is stored via ibiendd.wfs and retrieved here
SESSION_VAR_NAME=session_PASSCAR
WFS_VAR_NAME=PASSCAR
<call> CopySessionVarToWFVar (SESSION_VAR_NAME,WFS_VAR_NAME)
<SET> PASSCAR (pass)
5) Click "Clear Cache" or "Clear Memory Cache" within the WebFOCUS
Administration console.
Depending on your release of WebFOCUS this should put these settings into
effect. If you are using a release of WebFOCUS prior to 7.69 you might
also need to recycle your application server.