11.01.2013 Views

Oracle Forms Developer – Form Builder Reference, Volume 1

Oracle Forms Developer – Form Builder Reference, Volume 1

Oracle Forms Developer – Form Builder Reference, Volume 1

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

ADD_PARAMETER built-in<br />

Description<br />

14<br />

Adds parameters to a parameter list. Each parameter consists of a key, its type, and an associated value.<br />

Syntax<br />

PROCEDURE ADD_PARAMETER<br />

(list VARCHAR2,<br />

key VARCHAR2,<br />

paramtype VARCHAR2,<br />

value VARCHAR2);<br />

PROCEDURE ADD_PARAMETER<br />

(name VARCHAR2,<br />

key VARCHAR2,<br />

paramtype VARCHAR2,<br />

value VARCHAR2);<br />

Built-in Type unrestricted procedure<br />

Enter Query Mode yes<br />

Parameters<br />

list or name Specifies the parameter list to which the parameter is assigned. The actual<br />

parameter can be either a parameter list ID of type PARAMLIST, or the<br />

VARCHAR2 name of the parameter list.<br />

key The name of the parameter. The data type of the key is VARCHAR2.<br />

paramtype Specifies one of the following two types:<br />

TEXT_PARAMETER A VARCHAR2 string literal.<br />

DATA_PARAMETER A VARCHAR2 string specifying the name of a<br />

record group defined in the current form. When <strong>Form</strong> <strong>Builder</strong> passes a data<br />

parameter to Report <strong>Builder</strong> or Graphics <strong>Builder</strong>, the data in the specified<br />

record group can substitute for a query that Report <strong>Builder</strong> or Graphics<br />

<strong>Builder</strong> would ordinarily execute to run the report or display.<br />

value The actual value you intend to pass to the called module. If you are passing<br />

a text parameter, the maximum length is 64K characters. Data type of the<br />

value is VARCHAR2.<br />

ADD_PARAMETER restrictions<br />

• A parameter list can consist of 0 (zero) or more parameters.<br />

• You cannot create a parameter list if one already exists; to do so will cause an error. To avoid this<br />

error, use ID_NULL to check to see if a parameter list already exists before creating one. If a<br />

parameter list already exists, delete it with DESTROY_PARAMETER_LIST before creating a new<br />

list.<br />

• You cannot add a parameter of type DATA_PARAMETER if the parameter list is being passed to<br />

another form.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!