In this section: |
You can manually code an HTML-based user interface page using:
How to: |
You can set either EDAPATH or APP PATH logic in the Reporting Server global profile (EDASPROF.PRF), a user profile, or a procedure. For either kind of logic, make sure that the following files are accessible by the Reporting Server:
The directories in which the preceding files reside must be included on EDAPATH or APP PATH, depending on the logic used.
If you create a user interface page with a text editor, do the following.
In the interface page, set the variable IBIAPP_app as follows:
<INPUT TYPE="HIDDEN" NAME="IBIAPP_app" VALUE="app_directory">
where:
Is the directory on the Reporting Server to which procedures are deployed.
For a full description of all commands related to APP PATH logic, see Managing Applications.
Note: For information on where to store the files created in this example, see Defining and Allocating WebFOCUS Files.
Procedure: SALESDIR.FEX
TABLE FILE GGSALES HEADING "&CATEGORY Sales for Southeast" SUM UNITS AND DOLLARS WHERE (CATEGORY EQ '&CATEGORY') AND (REGION EQ 'Southeast'); END
The launch page contains code that sets the variable IBIAPP_app to the directory (SALESDIR) in which the procedure (SALESSE) resides after publishing.
Launch Page: LAUNCHSE.HTML
<HTML> <HEAD> <TITLE> WebFOCUS Report </TITLE> </HEAD> <BODY> <H4 ALIGN=CENTER>Sales Report for Southeast Region</H4> <HR> <FORM ACTION="/ibi_apps/WFServlet" METHOD="get">
<INPUT TYPE="HIDDEN" NAME="IBIAPP_app" VALUE="SALESDIR">
<INPUT NAME="IBIF_ex" VALUE="salesse" TYPE="hidden"> <P ALIGN=LEFT NOWRAP><PRE> <B>Enter category: </B><INPUT NAME="CATEGORY" TYPE="text" SIZE="6"> </PRE></P> <INPUT NAME="submit" TYPE=SUBMIT VALUE="Run Report"> <INPUT NAME="reset" TYPE=RESET VALUE="Clear Form"> </FORM> </BODY> </HTML>
Food