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.
Is it possible to pass parameters from one html file to another html or fex? Here is the flow on how the process works. HTML1 ------> Fex1------->HTML2------>Fex2 Company Company Company Company Warehouse Warehouse Warehouse Warehouse FromDate FromDate FromDAte FromDate Todate Todate Todate Todate
The short answer is yes. Basically what you have to keep in mind is that HTML layouts can access amper variables via JavaScript methods. The syntax in JS to access a variable &CAR would be something like:
var car = "!IBI.AMP.CAR;";
You could then use that "car" JS variable to do whatever you want. One thing that we have found though is that your HTML layout needs to be opened via a fex -- you can use the "-HTMLFORM" command to do this.
That should get you started -- I've got a more detailed example, so let me know if you can't figure it out from there.
Production: 7.6.6 WF Server  <=>  7.6.6 WF Client  <=>  7.6.6 Dev Studio Testing: <none> Using MRE & BID.  Connected to MS SQL Server 2005 Output Types: HTML, Excel, PDF
At that point, it's just a plain ole parameter pass to a fex -- just like how you passed it to fex1 from html1. You'll have to have JS populate some control that you're using for a parameter -- but it doesn't matter whether it's a visible parameter or hidden...
Basically set up HTML2 so it works independently, and then simply set the value of the right control via JS in the onload of the window.
Production: 7.6.6 WF Server  <=>  7.6.6 WF Client  <=>  7.6.6 Dev Studio Testing: <none> Using MRE & BID.  Connected to MS SQL Server 2005 Output Types: HTML, Excel, PDF
Provided you call the htmlp age from within your fex using the -HTMLFORM statement, you can use the !IBI.AMP.name; technique anywhere in your html page. The example that Trav gave can also be used to populate form-variables, or to just present plain text or whatever you want to do with the variable. Using it in a < input > tag to populate a form-variable will automatically make the variable available in the fex called from the form action.
GamP
- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007