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.
A colleauge of mine is trying to create tabs on her HTML form. Both tabs will display report output from the same fex. The first tab will display report output with variable X as "1". The second tab will display report output with variable X as "2". We do not know how to pass the fex one variable value with one tab and another variable value with another tab. We are using the HTML Layout Painter. If anyone can tell us the steps to do this, it would be great! Thank you!This message has been edited. Last edited by: Mark1,
One way to deal with this is to name the form objects in each tab with a different name, when the submit button is pressed, use JavaScript to submit a form object with the desired name, copying the value for the tab's form object.
Or, you could take care of it in WebFOCUS, using -DEFAULT and/or IF &varname.EXISTS.
A little bit of creative programming will easily take care of this.
You may want to examine why you're designing a two-tabbed form, both tabs calling the same fex.
Francis
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
I was thinking I could simply use the OnClick feature for this, but I don't know Javascript at all.
I would prefer the WebFocus option. Francis, how would I use -DEFAULT and/or IF &VARNAME.EXISTS in my program to call the same fex depending on the variable? I'm creating a dashboard for a service line (with 3 different services) and am using a standard generic template we have set up. I wanted to keep from creating 3 different programs and just use the same fex for all 3 (only difference would be a WHERE statement to distinguish the services).
What is in each of the three tabs? Is it a form that has a submit button or is it the actual report and you're expecting to have the same report execute three times with a different WHERE statement for each tab?
Francis
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
The latter...it's actually the same report that pulls data from a database depending on the service (using a different where statement for each tab). I had set up a parameter (&PHYS) and was hoping I could use it to pass the service to the fex based on the tab....
I don't see any way of running the same program from multiple tabs and passing a parameter. My suggestion would be to write four programs: three programs that have two lines in them; to set the &PHYS variable and to include the fourth program, and the fourth program to contain the report.
Something like this:
-SET &PHYS='SERV1';
-INCLUDE SERVREP
and
-SET &PHYS='SERV2';
-INCLUDE SERVREP
and
TABLE FILE SERVICES
PRINT *
WHERE SERVICE EQ '&PHYS'
END
This message has been edited. Last edited by: Francis Mariani,
Francis
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server