Specifying a Target Frame
You can use frames to subdivide application HTML pages into separate scrollable sections. Frames enable users to explore various information items on a page by scrolling through a section, instead of linking to a separate page. When defining a link from a report component to a report procedure or URL, you can specify that the results of the drill-down link be displayed in a target frame on a webpage.
There are two ways to specify a target frame. You can specify:
- A target frame
in a StyleSheet declaration using the TARGET attribute. You can
use StyleSheets to specify that drill-down links from a report or
graph are displayed in a target frame on the webpage displaying
the report or graph. However, using StyleSheets to specify target
frames adds extra HTML syntax to every HREF that is generated.
Note: When specifying a target frame from the Report canvas, manually added commands in the StyleSheet are not recognized. The Report canvas removes commands that it does not generate itself.
- A default target frame with a SET command. SET TARGETFRAME puts the HTML code <BASE TARGET="framename"> into the header of the HTML file that WebFOCUS displays. All drill-down links from the base report or graph are directed to the specified frame, unless overridden by the TARGET attribute in the StyleSheet.
To use the TARGET attribute or the SET TARGETFRAME command, you must create multiple frames on the webpage.
Specify a Target Frame
To specify a target frame in a report or procedure use:
TYPE=type, [subtype], FOCEXEC=fex[(parameters ...)], [TARGET=frame,] $
To specify a target frame for a URL use:
TYPE=type, [subtype], URL=url[(parameters ...)], [TARGET=frame,] $
where:
If the name of the target frame contains embedded spaces, the name will be correctly interpreted without enclosing the name in quotation marks. For example:
TYPE=DATA, COLUMN=N1, FOCEXEC=MYREPORT, TARGET=MY FRAME, $
The name of the target frame is correctly interpreted to be MY FRAME.
You can also use the following standard HTML frame names: _BLANK, _SELF, _PARENT, _TOP.
Specify a Default Target Frame
SET TARGETFRAME=frame
Specifying a Target Frame
The following illustrates how to specify a default target frame:
SET TARGETFRAME=_SELF
The following illustrates how to specify a target frame in a request. The relevant StyleSheet declaration is highlighted in the request.
TABLE FILE EMPLOYEE PRINT CURR_SAL BY DEPARTMENT ON TABLE SET STYLE * TYPE=DATA, COLUMN=N1, URL=http:\\www.informationbuilders.com, TARGET=_SELF, $ ENDSTYLE END