We need to create a report which would look like:
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?
-DEFAULTS DALLAS=' ',STLOUIS=' ',AUSTIN=' '
TABLE FILE ...
ON TABLE SET STYLE *
TYPE=DATA,COLUMN=P1,FOCEXEC=FEX2(DALLAS='&DALLAS' STLOUIS='&STLOUIS' AUSTIN='&AUSTIN'),$
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
ON TABLE HOLD AS MYTAB1 FORMAT HTMTABLE
.. now make your drop down list
DEFINE FILE CAR
OUTPUT/A80='< OPTION SELECTED NAME=MODEL VALUE="' | CAR | '">';
TABLE FILE CAR PRINT OUTPUT
ON TABLE HOLD AS MYLIST FORMAT ALPHA
...do form stuff, radio buttons,
< select ...do the select box
..put the original output table in here somewhere
..get the idea? the coding isn't meant to be exact, but this is how i would do it, absent any brainstorm.
|Powered by Social Strata|