Focal Point
Drop Down List - execute report

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/1621044332

June 20, 2007, 11:38 AM
Phillip Ho
Drop Down List - execute report
Does anyone know if there's a thread that discusses how best to execute a report from a drop down list? Let's say that I have three reports that I allow user to select from the drop down list. Once the user select the report type, it should execute a fex or another html page. For now, the report will be created in MRE.
June 20, 2007, 02:51 PM
Tony A
Phillip,

I can't recall a thread on that subject but I would be inclined to add an "onchange" event to the combo box that calls a javascript function, that in turn sets various parameteres and control values before issuing a form.submit();

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
June 20, 2007, 03:41 PM
Alan B
Phillip

Tony has a good approach. However, if you are uncomfortable with javascript, another approach maybe is run just one FEX from the onchange, and then, from that fex, choose the focexec to run based on the value passed from the list box and run that focexec.


Alan.
WF 7.705/8.007
June 20, 2007, 03:49 PM
Phillip Ho
Thank for all responses. I'm okay with javascripts. Can either of you provide a simple example?
June 20, 2007, 03:50 PM
Phillip Ho
Also, once a user make the selection from the drop down list, it should automatically either execute a fex or launch another html page.
June 21, 2007, 03:03 AM
Alan B
Whilst I'm happy with the js, I do not use MRE. I know there are threads here that discuss the parameters required by MRE which could be investigated, and if you're happy with js yourself you should be able to link the two things together.


Alan.
WF 7.705/8.007