June 20, 2007, 11:38 AM
Phillip HoDrop 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 APhillip,
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
June 20, 2007, 03:41 PM
Alan BPhillip
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.
June 20, 2007, 03:49 PM
Phillip HoThank for all responses. I'm okay with javascripts. Can either of you provide a simple example?
June 20, 2007, 03:50 PM
Phillip HoAlso, 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 BWhilst 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.