WebFOCUS
Online Help > Managed Reporting End User > Creating a Graph With Graph Assistant > Linking Graphs to Other Resources
Linking Graphs to Other Resources
To drill down to a more detailed level of information
in a graph, you can link a procedure (FOCEXEC) or a URL to one or
more values in your graph. When you run your graph, the selected
values become "hot spots" that invoke the underlying procedure or
URL.
Procedure: How to Link a Graph to Other Resources
-
Click
the Field selection tab in the Graph Assistant.
-
Select
a field from the Field value(s) plotted on Y-axis list.
-
If hidden,
click Show graph field options.
-
Click
the Drill down button. The Drill Down dialog
box opens.
-
Select
either Execute Procedure (FOCEXEC) or Execute
URL option button.
You can select the No action option
button to disable a drill-down link.
-
If you
are linking your graph to a:
- URL, type the
URL in the URL text box. If you do not want the URL to appear when
a user moves the mouse over a link in the graph, you can enter different
text in the Alternate Comment for Hyperlink text box.
- Procedure,
select the procedure from the hierarchy.
-
Use
the Add button to add any parameters. For details,
see Creating Parameters.
-
Click OK.
Note: You
can disable drill-down by following steps 1-3 and then selecting
the No Action option button from the Drill
Down dialog box.
Parameters enable you to specify criteria and conditions
for the associated (drill-down) report. By defining parameters,
you can control the amount and type of information to retrieve when
you click on a hot spot.
Note: To avoid conflicts, do not name variables beginning
with Date, IBI, or WF, as variables beginning with these values
are reserved for Information Builders use.
Procedure: How to Create a Parameter in the Main and Drill Down Procedures
-
Click
the Selection criteria tab.
-
Create
an expression (WHERE statement) that defines a parameter. For details
on creating WHERE statements, see Selection Criteria Tab in HTML Graph Assistant.
-
Select
the Field selections tab.
-
Select
the Sort by field that you want to drill down on, for example, Product.
-
Click Drill
down. The WebFOCUS Drill Down dialog box opens.
-
Click Execute
Procedure (FOCEXEC) or Execute URL.
The following image shows a sample drill down dialog box
with Execute Procedure (FOCEXEC) option selected.
-
Click Add.
The Drill Down Parameter dialog box opens as shown in the following
image.
-
Enter
the name of the parameter you created in the drill down procedure in
the Parameter Name text box, for example, Coffee.
Note: When passing parameters to a drill-down procedure,
you must use local variables (&variables). Global variables
(&&variables) cannot be used as drill-down parameters. Also,
it is not necessary to type an ampersand (&) before the parameter
name. This will create a global variable that cannot be used as
a drill-down parameter.
-
When
you pass the parameter to the drill down procedure, you must set a
value for it in the Drill Down Parameter Dialog box. If you select:
-
Field, the
parameter will be set to the corresponding value of the object the
user drills down on in the specified field.
-
Constant value, the
parameter is set to the specified value.
Note: If
the drill-down report contains a -DEFAULTS statement that sets a
default value to the same variable passed from the main report,
the variable value passed down overwrites the -DEFAULTS statement
in the target procedure.
-
Once
a value has been supplied, click OK to return
to the Drill Down Dialog box. The parameter is added to the With
Parameters list box as shown in the following image.