Focal Point
WebFocus Producing an HTML form for input

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

October 20, 2004, 08:56 PM
<DougTrev>
WebFocus Producing an HTML form for input
I have a fex that creates recursive form that users iterate through trying calculations until they get it right. My challenge is allowing the users to enter an override (CHECKBOX)in column that would exclude a row here and there:

example of default form

Item Quant Exclude
abc 500 N
xyz 100 N
total 600
<RE-CALC> <PRINT>

User Decides to exclude abc using checkbox
Item Quant Exclude
abc 500 Y
xyz 100 N
total 600
<RE-CALC> <PRINT>

Item Quant Exclude
abc 0 Y
xyz 100 N
total 100
<RE-CALC><PRINT>

Seems simple, I can get the default form to work, but I don't know how to capture the user input as they exclude records. Getting desperate - any ideas? Thanks!
October 22, 2004, 12:54 AM
<WFUser>
I'm not sure I really understand what you're trying to do. If you're producing a form via -HTMLFORM with a checkbox and then redisplaying that form, and you are trying to keep checked boxes checked after you redisplay, then you can do something like this.

-DEFAULT CHKBOX=' '
-SET &CHECKED = IF &CHKBOX EQ 'Y' THEN 'CHECKED' ELSE ' ';

<rest of code>
-HTMLFORM MYFORM

Where the form contains:

<input type="checkbox" name="C1" value="Y" !IBI.AMP.CHECKED;>

If the value came back to your fex as being checked, the &CHECKED variable will contain the string CHECKED or else it will be blank. The CHECKED value will populate in the form.

If I'm way off base, please clarify what it is you need to do.