Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     WebFocus Producing an HTML form for input
Go
New
Search
Notify
Tools
Reply
  
WebFocus Producing an HTML form for input
 Login/Join
 
<DougTrev>
posted
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!
 
Reply With QuoteReport This Post
<WFUser>
posted
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.
 
Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     WebFocus Producing an HTML form for input

Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.