Focal Point
Conditionals Embedded in HTML (Try 2)

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

August 31, 2004, 07:20 PM
jbmuir
Conditionals Embedded in HTML (Try 2)
Just wondering if there is an equivalent to the <c:if> or <c:choose> JSTL tags in WebFocus. I've read some of the documentation which indicates that it is possible to pass the value of an amper variable into a HTML page. However, once the value is in the page there does not seem to be much one can do with it other than display it.
-James
September 01, 2004, 04:18 PM
Steve C
If you want to take control of your HTML you will need to use the HTMLFORM command to structure your own. Once the HTML is a part of your focexec, you are in full control as to what is generated and displayed. This is the best way I can think of accomplishing what you need to control your report output with DM.

The Syntax is inserted after the END statement of your last fex step, and looks like this:


-HTMLFORM BEGIN


-IF &A EQ &X THEN GOTO SOMEWHERE;

-SOMEWHERE


-HTMLFORM END

This message has been edited. Last edited by: <Mabel>,
September 01, 2004, 05:35 PM
jbmuir
Thanks. That will do what I want.