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     [CLOSED] Multiple frames with same procedure

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Multiple frames with same procedure
 Login/Join
 
Platinum Member
posted
Hello

I have a HTML with 2 iframes (F1, F2) and 2 sets of 3 same parameters (P11/P12/P13, K11/K12/K13) and 2 push buttons (B1, B2) to run reports in those iframes.
In the fex I have WHERE conditions like this.
 
WHERE FIELD1 EQ '&P11/&K11';
WHERE FIELD2 EQ '&P12/&K12';
WHERE FIELD3 EQ '&P13/&K13';

My issue is if B1 is clicked, parameters should be taken as P11/P12/P13 and if B2 is clicked then they should be K11/K12/K13.
I can use 2 different procedures but code is going to be the same so I am thinking to do in 1 fex only as 3rd frame may be added later.

How can I achieve this? Please suggest.

Thank you.

This message has been edited. Last edited by: FP Mod Chuck,


WebFOCUS 8206
All formats
 
Posts: 95 | Registered: September 13, 2017Report This Post
Virtuoso
posted Hide Post
Have a parameter to be assigned according to pressed button then in your fex assign parameter based on the first one.

-SET &PARM1 = IF &BUTTONCLICK EQ 1 THEN &P11 ELSE &K11;
...

WHERE FIELD1 EQ '&PARM1';


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, 2013Report This Post
Platinum Member
posted Hide Post
quote:
Originally posted by MartinY:
Have a parameter to be assigned according to pressed button then in your fex assign parameter based on the first one.

-SET &PARM1 = IF &BUTTONCLICK EQ 1 THEN &P11 ELSE &K11;
...

WHERE FIELD1 EQ '&PARM1';


Martin, thanks for reply. I had this idea but I am not sure how to send a parameter with 1 button? A parameter created on HTML page seems to be going to fex when any push button is clicked. Or may be I am getting confused.


WebFOCUS 8206
All formats
 
Posts: 95 | Registered: September 13, 2017Report This Post
Virtuoso
posted Hide Post
Add a onclick event to each button where you will set your parm value accordingly then have that parameter properly linked with your fex.


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, 2013Report 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     [CLOSED] Multiple frames with same procedure

Copyright © 1996-2020 Information Builders