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.
I'd would like to examine the values of variables, seen by an HTML Document (Parameter Page) set by a procedure.
Note: The parameter page is created solely within the GUI. Basically, an HTML Document with several controls(parameters) and an iframe running a procedure.fex The controls populate variables like the one below, via a Requests & Data Sources config of the procedure mentioned above.
-DEFAULT &DATE_SELECTION = 'MONTH'
Scenario:
The user selects the Agency button, the Tasks & Animations runs the PROCEDURE in the iframe and the Agency Chart (shown) runs.
Functionality I'd like to have: I'd like to grab the current state of certain variables, set by the PROCEDURE on the last run, before the refresh, have an alert pop-up so I can see their value. And also use them in my Embedded JavaScript.
Is there any way to do that using the GUI?
Here is the javascript that I am using to try and see the variable;
Here is the message I get; This message has been edited. Last edited by: FP Mod Chuck,
I found strange that your alert does display the literal instead of the variable content.
I use that a lot when validating what the user input in a control and my warning/error message (using alert) have always displayed the content of the variable.
Maybe it's related to the place (function) where the alert has been inserted...?
Have you tried to put the alert in the onInitialUpdate function (or any other one that could be invoked) just to try and see if any differences ?
WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF In Focus since 2007
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013
Function: IbComposer_getAllAmpersValues
How to:
Get All Parameter Values
The IbComposer_getAllAmpersValues is used to get the current selected values from all the controls on your page layout. It then takes those values and assembles them as a string that can be added to the end of a URL call. An example of this would be having a REGION control and multiselecting MidEast, NorthEast, and NorthWest. It will assemble these selections as shown below:
®ION=%27MidEast%27%20OR%20%27NorthEast%27%20OR%20%27NorthWest%27
This function can be used in conjunction with the Business Intelligence Portal, where the generated string is appended to all Business Intelligence Portal calls that run reports or charts. This allows the parameter values to affect all portal components, even if new ones are added or existing ones are removed at runtime.
_____________________ WF: 8.0.0.9 > going 8.2.0.5
Posts: 668 | Location: Veghel, The Netherlands | Registered: February 16, 2010
Perhaps you can use the internal ib functions to do the trick?
Dave, I took a look at IbComposer_getAllAmpersValues and although handy, unless I'm doing something wrong, it doesn't find any variable that is not part of the requests or added manually to the parameter screen.
The more I read about Auto-prompt and discovery, the more I think that is what it is. But even discovery only finds other procedures that have the same variables that the current procedure has.
What we need is, a new kind of variable, manually added to the parameters tab in the Designer. We would configure the variable as an external reference and the event we want to collect the current value. If it were possible, I would use it to find out what state a widget is in, that has multiple drill downs to itself. The widget starts out at the current month, the user selects a button on the widget that changes the time frame to quarter, refreshes the iframe and the widget values change.
But, the parameter screen doesn't know that the widget is displaying QTR. If I could determine that, I may update certain controls or hide controls, etc.