Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
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
Go
New
Search
Notify
Tools
Reply
  
[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: 54 | Registered: February 29, 2012Reply With QuoteReport 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.06OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Know The Code

 
Posts: 6270 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Reply With QuoteReport 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 7 - IE11.
in Focus since 1988
 
Posts: 1960 | Location: Netherlands | Registered: September 25, 2007Reply With QuoteReport 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, 2010Reply With QuoteReport 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.


WF 8.2.06
Win10 / IE11
AHTML EXL2K PDF
 
Posts: 173 | Registered: October 19, 2010Reply With QuoteReport 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, 2010Reply With QuoteReport 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, 2010Reply With QuoteReport 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: 54 | Registered: February 29, 2012Reply With QuoteReport This Post
  Powered by Social Strata  
 

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-2018 Information Builders, leaders in enterprise business intelligence.