owa_util.get_cgi_env function owa_util.get_owa_service_path function owa_util.get_procedure function owa_util.http_header_close procedure

9-6 Oracle Fusion Middleware PLSQL Web Toolkit Reference

9.6 owa_util.dateType data type

The owa_util.todate function converts an item of this type to the type DATE, which is understood and properly handled as data by the database. The procedure owa_ util.choose_date procedure enables the user to select the desired date. Table 9–5 describes the properties of the owa_util.dateType data type.

9.7 owa_util.get_cgi_env function

This function returns the value of the specified CGI environment variable. Although the WRB is not operated through CGI, many WRB cartridges, including the PLSQL Gateway, can make use of CGI environment variables. Table 9–6 describes the properties of the owa_util.get_cgi_env function. Table 9–4 owa_util.choose_date procedure Properties Definitions Syntax: owa_util.choose_date p_name in varchar2, p_date in date DEFAULT SYSDATE; Parameters: p_name - the name of the form elements. p_date - the initial date that is selected when the HTML page is displayed. Generates: SELECT NAME=p_name SIZE=1 OPTION value=011 ... OPTION value=3131 SELECT - SELECT NAME=p_name SIZE=1 OPTION value=01JAN ... OPTION value=12DEC SELECT - SELECT NAME=p_name SIZE=1 OPTION value=19921992 ... OPTION value=20022002 SELECT Table 9–5 owa_util.dateType data type Properties Definitions Syntax: type dateType is table of varchar210 index by binary_integer; Returns: Not applicable. The owa_util Package 9-7

9.8 owa_util.get_owa_service_path function

This function returns the full virtual path of the PLSQL Gateway that is handling the request. Table 9–7 describes the properties of the owa_util.get_owa_service_path function.

9.9 owa_util.get_procedure function

This function returns the name of the procedure that is being invoked by the PLSQL Gateway. Table 9–8 describes the properties of the owa_util.get_procedure function.

9.10 owa_util.http_header_close procedure

This procedure generates a newline character to close the HTTP header. Use this procedure if you have not closed the header by using the bclose_header parameter in calls such as owa_util.mime_header procedure , owa_util.redirect_url procedure , or owa_util.status_line procedure . The HTTP header must be closed before any htp.print or htp.prn calls. Table 9–9 describes the properties of the owa_util.http_header_close procedure. Table 9–6 owa_util.get_cgi_env function Properties Definitions Syntax: owa_util.get_cgi_envparam_name in varchar2 return varchar2; Parameters: param_name - the name of the CGI environment variable. It is case-insensitive. Get the values of all CGI environment variables except for QUERY_STRING because the PLSQL Gateway parses the value of QUERY_STRING to determine the parameters to pass to the stored procedure. Returns: The value of the specified CGI environment variable. If the variable is not defined, the function returns NULL. Table 9–7 owa_util.get_owa_service_path function Properties Definitions Syntax: owa_util.get_owa_service_path return varchar2; Parameters: None. Returns: A virtual path of the PLSQL Gateway that is handling the request. Table 9–8 owa_util.get_procedure function Properties Definitions Syntax: owa_util.get_procedure return varchar2; Parameters: None. Returns: The name of a procedure, including the package name if the procedure is defined in a package. 9-8 Oracle Fusion Middleware PLSQL Web Toolkit Reference

9.11 owa_util.ident_arr data type