Focal Point
[CLOSED] Parmeter in Graph drilldown

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

December 31, 2010, 05:12 PM
sathish
[CLOSED] Parmeter in Graph drilldown
hi,

Iam creating a report, with 3 drop down box and a graph
Based on the selection on drop down box, it should display a graph and graph has drill down feature.

drop down box has following selection parameter,
1. Product group
2. Person selling
3. Office assigned


Based on above selection the graph should display the market value of the product_group.

On the graph when the product group is clicked ,it should go down to list of products under that group also if person selling and office assinged is selected, the value should be based on that.

How do i pass the valuse selected in the drop down to next level of the drill down.
I tired using this,

TYPE=DATA, COLUMN=N2, FOCEXEC=bar_graph_level_2( \
DRILLVALUE=J0.PRODUCT_HIERARCHY.PRODUCT_LINE_NM \
Office='&Office' \
REP='&REP' \
)

Value from dropdown is not assinged to office and rep. Any help?

This message has been edited. Last edited by: Kerry,


WebFOCUS 7.6
Windows, All Outputs
January 03, 2011, 08:52 AM
GamP
How did you find out that the values were not propagated to the next procedure?
What is the rest of your procedure - specifically the print/sum/by/across part?
I have tried something like this in release 7.7 and there it just works as you have coded it.


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
January 03, 2011, 03:32 PM
j.gross
Are you sure "N2" is a correct reference?

What happens to the drilldown when you use an equivalent TABLE FILE in place of the GRAPH FILE request?


- Jack Gross
WF through 8.1.05
January 04, 2011, 04:57 AM
<JG>
A graph presented in an html page has no knowledge about other content on the html page.

To be able to do what you want your drilldown needs to call a javascript function
which submits the request

 

<script>
function doDrill(VAR1)....
document.form1.PRODUCT_LINE_NM.value=VAR1;
document.form1.submit();
</script>
<body>
<FORM  NAME=form1 ACTION="/ibi_apps/WFServlet" METHOD="POST",target="_blank" >
<INPUT TYPE="hidden" NAME="IBIF_ex" VALUE="bar_graph_level_2">
<INPUT TYPE="hidden" NAME="PRODUCT_LINE_NM" VALUE=" ">
<select>select list1</select>
<select>select list2</select>
<select>select list3</select>

<img src='your graph'> </img>
</form>
</body>
 


The drilldown would look something like

TYPE=DATA, COLUMN=N2,JAVASCRIPT=parent.document.doDrill(PRODUCT_LINE_NM),$