Focal Point
passing parameters to html

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

July 23, 2004, 04:24 AM
raji
passing parameters to html
Hi,

is there any way to pass a field or variable from FEX to HTML.

Thanks in Advance,
-raji
July 23, 2004, 11:01 AM
susannah
hmm, well,sure; that would pretty much be the whole point of webfocus. So perhaps you could be a bit more specific about your request; Why type of variable are you wanting to pass, and do you want your HTML to be just output or do you want to produce another form for input?
You have this basic construct:
-SET &MYHEADER = 'some variable stuff';
TABLE FILE CAR
do stuff
ON TABLE HOLD AS MYTAB1 FORMAT HTMTABLE
END
TABLE FILE CAR
do more stuff
ON TABLE HOLD AS MYTAB2 FORMAT HTMTABLE
END
-RUN
-HTMLFORM BEGIN
[ HTML>
[ HEAD>
..do whatever you want here
[ /HEAD>
[ BODY>
...write whatever else you might want here
< P> &MYHEADER < /P>
< TABLE> < TR> < TD>
!IBI.FIL.MYTAB1;
< TR> < TD>
!IBI.FIL.MYTAB2;
< /TABLE>
[ /BODY>
[ /HTML>
-HTMLFORM END
...so you can even write out a form, complete with submit button and the whole works, populating it with stuff from the first fex, and launching some other fex you determine. You can write your output HTML page anyway you need to.
Any help?
July 23, 2004, 12:20 PM
<wwmyers>
Please note that6 the HOLD file name must be 8 chracters or less. We had problems when the file name was longer. Look at the Summit 2004 conference page http://www.informationbuilders.com/events/summit/agenda_track.html "Technical: WebFOCUS Applications in Use" and "Agile Methods..." page 22 - 37 for details of our process. It shows how to make a lot of your code reusable and your reports executable from many different sources.