Focal Point
capturing conditions for drill down using radio buttons

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

July 23, 2004, 09:46 PM
Stan
capturing conditions for drill down using radio buttons
We need to create a report which would look like:
"Heading"
Cities Include in drill down?
Dallas oYes oNo
St. Louis oYes oNo
Austin oYes oNo

and then take the input from the radio buttons to drill down to the next report. Does someone have an example of this?
July 23, 2004, 11:55 PM
<WFUser>
-DEFAULTS DALLAS=' ',STLOUIS=' ',AUSTIN=' '
TABLE FILE ...
...
ON TABLE SET STYLE *
TYPE=DATA,COLUMN=P1,FOCEXEC=FEX2(DALLAS='&DALLAS' STLOUIS='&STLOUIS' AUSTIN='&AUSTIN'),$
ENDSTYLE
END
July 24, 2004, 12:17 AM
susannah
but i don't think the values of the &vars would change in the drilldown, when the radios and the table containing the drilldown are presented simultaneously in the same output frame.
Here's one idea:
.prepare your output table with NO drilldowns.
.present that table inside an -HTMLFORM BEGIN
in which you completely create a new form, complete with radio buttons, and also a SELECT BOX (drop down list) which you have created along with your first fex, and which offers all of the possible values existing in your drill down column.
.in that output, issue the call to webfocus, submit buttons, the name of fex#2, whole ball o' wax.
..get the idea??
TABLE FILE CAR
..do stuff
ON TABLE HOLD AS MYTAB1 FORMAT HTMTABLE
END
.. now make your drop down list
DEFINE FILE CAR
OUTPUT/A80='< OPTION SELECTED NAME=MODEL VALUE="' | CAR | '">';
END
TABLE FILE CAR PRINT OUTPUT
ON TABLE HOLD AS MYLIST FORMAT ALPHA
END
-RUN
-HTMLFORM BEGIN
[ html>
[ form>
...do form stuff, radio buttons,
< select ...do the select box
!IBI.FIL.MYLIST;
< /SELECT>
...
[ /FORM>
..put the original output table in here somewhere
!IBI.FIL.MYTAB1;
[ /HTML>
-HTMLFORM END
..get the idea? the coding isn't meant to be exact, but this is how i would do it, absent any brainstorm.