In this section:
This feature works with any graph format that outputs an HTML document, for example JSCHART and PCHOLD FORMAT PNG.
The syntax is:
SET JSURLS='/file1 [/file2] [/file3]...'
You can reference files with a URL.
TYPE=DATA,[COLUMN|ACROSSCOLUMN=Nn,]COLOR=color,[WHEN=expression,] FOCEXEC=fex[(parameters ...),]$
Identifies Data as the graph component to which the user is applying the color. The TYPE attribute and its value must appear at the beginning of the declaration.
Is the graph subcomponent to which you want to apply color. Valid graph subcomponents are COLUMN and ACROSSCOLUMN.
Identifies the color that you want to apply to the graph component or subcomponent. For a list of valid colors, see Formatting Report Data.
Identifies a column by its position in the report. To determine this value, count BY fields, display fields, and ROW-TOTAL fields, from left to right, including NOPRINT fields. For more information, see Identifying a Report Component in a WebFOCUS StyleSheet.
Identifies the file name of the linked procedure to run when a user selects the report object.
Are values to be passed to the procedure. You can pass one or more values, using any combination of the following methods:
Note: The usual use of an amper variable is to pass a constant value, in which case, it would have to be embedded in single quotation marks. For example:
The method you can use to pass values can vary, depending on the method you use to execute the hyperlink. You can pass one or more values. The entire string of values must be enclosed in parentheses, and separated from each other by a blank space.
Is any Boolean expression that specifies conditions for applying the specified color to the graph component. The expression must be valid on the right side of a COMPUTE command. For details, see Using Expressions.
Note: IF ... THEN ... ELSE logic is not necessary in a WHEN clause and is not supported.
All non-numeric literals in a WHEN expression must be specified within single quotation marks.
In this example, when the value for UNITS is less than four hundred thousand, the color is lime and you can drill-down to a detail report.
GRAPH FILE GGSALES SUM UNITS DOLLARS ACROSS PRODUCT ON GRAPH SET STYLE * TYPE=DATA,COLOR=SILVER,$ TYPE=DATA,ACROSSCOLUMN=N1,COLOR=LIME,WHEN=N1 LT 400000,FOCEXEC=GRAPH2,$ ENDSTYLE END
The output is:
You can define a link from any component to any URL including webpages, websites, Servlet programs, or non-World Wide Web resources, such as an email application. After you have defined a link, you can select the component to access the URL.
The links you create can be dynamic. With a dynamic link, your selection passes the value of the selected component to the URL. The resource uses the passed value to dynamically determine the results that are returned. You can pass one or more parameters. For details, see Creating Parameters.
TYPE=type, [subtype], URL=url[(parameters ...)], [TARGET=frame,] [ALT = 'description',] $
Note that the length of the URL is limited by the maximum number of characters allowed by the browser. For information about this limit for your browser, search on your browser vendor’s support site.
The description also displays as a pop-up description when your mouse or cursor hovers over the link in the report output.
In this example,
the argument correctly spans two lines.
For more information about the -HTMLFORM command, see the Developing Reporting Applications manual.
TYPE=type, [subtype], DRILLMENUITEM='description'|'DrillDown n', type_of_link
This feature does not apply to headings or footings,
When you create multiple drill-down links, you cannot specify a single drill-down action (for example, FOCEXEC or URL) before the first DRILLMENUITEM.
The menu created by the DRILLMENUITEM keyword is styled using a cascading style sheet file. The file is /ibi/WebFOCUSxx/ibi_apps/ibi_html/javaassist/ibi/html/js/multidrill.css, where xx is the version and major release number of WebFOCUS.
Tip: You can make changes to this file to affect the font, size, and color of the DRILLMENUITEM menu. Make a backup of this file before modifying it.
You can link to:
Note that the length of the URL is limited by the maximum number of characters allowed by the browser. For information about this limit for your browser, search on the support site for your browser vendor.
Parameters allow you to specify criteria and conditions for the linked (drill down) report. By defining parameters, you can control the amount and type of information to retrieve when you click on a hot spot.
For complete details, see Linking a Report to Other Resources.