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     capturing conditions for drill down using radio buttons
Go
New
Search
Notify
Tools
Reply
  
capturing conditions for drill down using radio buttons
 Login/Join
 
Gold member
posted
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?
 
Posts: 90 | Registered: April 15, 2004Reply With QuoteReport This Post
<WFUser>
posted
-DEFAULTS DALLAS=' ',STLOUIS=' ',AUSTIN=' '
TABLE FILE ...
...
ON TABLE SET STYLE *
TYPE=DATA,COLUMN=P1,FOCEXEC=FEX2(DALLAS='&DALLAS' STLOUIS='&STLOUIS' AUSTIN='&AUSTIN'),$
ENDSTYLE
END
 
Reply With QuoteReport This Post
Expert
posted Hide Post
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.
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     capturing conditions for drill down using radio buttons

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