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     [SOLVED] Can multiple fex's run in same frame based one at a time based on parameter

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Can multiple fex's run in same frame based one at a time based on parameter
 Login/Join
 
Gold member
posted
I can easily create a run button that will kick off multiple fex's in different frames. But I cannot figure out how to create a drop down list of fex's and make the run button execute the selected fex in one frame. Allowing the user to run different reports one at a time in one frame.

Has anyone done something like this before? Thanks for any suggestions you can offer.

This message has been edited. Last edited by: Kerry,


Kevin Patterson
Appalachian State University
WebFOCUS 7.7.03
Windows, All Outputs
 
Posts: 57 | Registered: February 29, 2012Report This Post
Expert
posted Hide Post
How did you create the launch page ?


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Virtuoso
posted Hide Post
You could do it like this:
1. create 3 fex files, called for instance apps.fex, fexes.fex and runfex.fex
Contents apps.fex:
-* File apps.fex
APP LIST HOLD
TABLE FILE FOCAPPL
BY APPNAME
WHERE APPNAME NE 'foccache' OR 'baseapp';
ON TABLE PCHOLD
END
This will give a list of available application directories to choose from.
Contents fexes.fex:
-* File fexes.fex
APP QUERY &APPNAME HOLD
TABLE FILE FOCAPPQ
PRINT FILENAME
WHERE FILENAME CONTAINS '.fex';
ON TABLE PCHOLD
END
This will present a list of fexes within the chosen app.
Contents runfex.fex:
-* File runfex.fex
-SET &RUNCMD = &APPNAME || '/' || &FILENAME;
APP PREPENDPATH &APPNAME
EX &RUNCMD
This just runs the fex.
Last thing is to create a html startpage that contains two dropdown boxes filled with the results from the apps and fexes procedures and a run button to call runfex with target the iframe that is also on the page (or a new window or ...). Be sure to chain the two dropdowns.


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
 
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007Report This Post
Guru
posted Hide Post
How many fex's are you using to populate the drop down? Are you talking just a few or hundreds ?


WebFOCUS Server 8.1.05
Windows 2008 Server
WebFOCUS AppStudio 8.1.05
Windows 7 Professional
IE 11 and Chrome Version 43.0.2357.124 m.
Mostly HTML, PDF, Excel, and AHTML
 
Posts: 272 | Location: Kalamazoo, Michigan | Registered: September 30, 2010Report This Post
Platinum Member
posted Hide Post
You could have the run button pass a Fexid number and any other parameters to this fex:
-DEFAULT &Fexid = 1;

-Fex1
-IF &Fexid NE 1 THEN GOTO Fex2
-INCLUDE SALESREPORT
-GOTO TheEnd

-Fex2
-IF &Fexid NE 2 THEN GOTO TheEnd
-INCLUDE HRREPORT
-GOTO TheEnd

-TheEnd 


I would avoid things like:
 -INCLUDE &Fexname 

it is not MR compatible and not as clear.

Hope this helps.


WebFOCUS 8.2.06
 
Posts: 210 | Location: Sterling Heights, Michigan | Registered: October 19, 2010Report This Post
Member
posted Hide Post
You could create a Dropdown (combobox1), populate values and texts (fex name), add an iframe (iframe1), add Button (button1) and add this javascript-code in onclick-event of Button:

function button1_onclick(ctrl) {
var val=document.getElementById("combobox1").selectedIndex;
window.iframe1.location.href='/ibi_apps/WFServlet?IBIF_ex='+document.getElementById("combobox1").options[val].value;

}

This message has been edited. Last edited by: michael10,
 
Posts: 1 | Registered: May 25, 2010Report This Post
Guru
posted Hide Post
michael10, AWESOME! Much simpler than what I was working on.
Thanks for sharing


WebFOCUS Server 8.1.05
Windows 2008 Server
WebFOCUS AppStudio 8.1.05
Windows 7 Professional
IE 11 and Chrome Version 43.0.2357.124 m.
Mostly HTML, PDF, Excel, and AHTML
 
Posts: 272 | Location: Kalamazoo, Michigan | Registered: September 30, 2010Report This Post
Gold member
posted Hide Post
Sorry for the slow replying (just found where I was filtering these to). Thanks so much for the feedback! I'll try a few of those things. I'm sure I'll have more questions.

Waz, I'm creating my html launch page using webfocus developer's html composer.


Kevin Patterson
Appalachian State University
WebFOCUS 7.7.03
Windows, All Outputs
 
Posts: 57 | Registered: February 29, 2012Report 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     [SOLVED] Can multiple fex's run in same frame based one at a time based on parameter

Copyright © 1996-2020 Information Builders