Focal Point
HTML Parameters

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

October 20, 2005, 04:32 PM
KarateExplosion
HTML Parameters
I have a fex report that calls another report. I have this code in the first fex:

DRILLMENUITEM= 'Sales Report',
FOCEXEC=app/Sales.fex(empID=N6),

that sends the empID which is the input parameter for the second fex in the where clause.

and the HTML code

-HTMLFORM BEGIN
<Select name='output'>
<option value='HTML>'>HTML</option>
<option value='PDF>'>PDF</option>
<option value='EXL2K>'>EXL2K</option>
</Select>
-HTMLFORM END

The second fex also has:
ON TABLE PCHOLD FORMAT &output.(<HTML,HTML,<PDF,PDF,<Excel 2000,EXL2K)

How can I send the output value from the HTML dropdown to the second fex?
October 20, 2005, 05:19 PM
Francis Mariani
FOCEXEC=app/Sales.fex(empID=N6 output='&output')
October 20, 2005, 05:28 PM
KarateExplosion
Wen I do that even before the first fex opens it asks for the ouput parameter. Then I enter one, it goes to the second fex and then opens the second fex with the output I entered. It does not recognize the HTML.
October 20, 2005, 05:59 PM
KarateExplosion
Actually when I put FOCEXEC=app/Sales.fex(empID=N6 output='&output')
it wants to open it in excel everytime. Any ideas? Thanks for the help.
October 20, 2005, 06:24 PM
Francis Mariani
I'm not sure what you are doing. Are you using report painter in Dev Studio to create the report and the launch page?

Do you have a launch page that is comprised of an HTML form that calls WebFOCUS to execute the first FEX?

After we resolve that, add this code at the top of the second fex:

-? &
-EXIT

to see what parameters are passed to it. If &output is not one of them then the drilldown is not working as it should be.