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.

Parameters<br />

26<br />

formmodule_name The name of the called form (must be enclosed in single quotes). Datatype<br />

is VARCHAR2.<br />

display HIDE (The default.) <strong>Form</strong> <strong>Builder</strong> will hide the calling form before<br />

drawing the called form.<br />

NO_HIDE <strong>Form</strong> <strong>Builder</strong> will display the called form without hiding the<br />

calling form.<br />

switch_menu NO_REPLACE (The default.) <strong>Form</strong> <strong>Builder</strong> will keep the default menu<br />

module of the calling form active for the called form.<br />

DO_REPLACE <strong>Form</strong> <strong>Builder</strong> will replace the default menu module of the<br />

calling form with the default menu module of the called form.<br />

query_mode NO_QUERY_ONLY (The default.) <strong>Form</strong> <strong>Builder</strong> will run the indicated<br />

form in normal mode, allowing the end user to perform inserts, updates,<br />

and deletes from within the called form.<br />

QUERY_ONLY <strong>Form</strong> <strong>Builder</strong> will run the indicated form in query-only<br />

mode, allowing the end user to query, but not to insert, update, or delete<br />

records.<br />

data_mode NO_SHARE_LIBRARY_DATA (The default.) At runtime, <strong>Form</strong><br />

<strong>Builder</strong> will not share data between forms that have identical libraries<br />

attached (at design time).<br />

SHARE_LIBRARY_DATA At runtime, <strong>Form</strong> <strong>Builder</strong> will share data<br />

between forms that have identical libraries attached (at design time).<br />

paramlist_id The unique ID <strong>Form</strong> <strong>Builder</strong> assigns when it creates the parameter list.<br />

You can optionally include a parameter list as initial input to the called<br />

form. Datatype is PARAMLIST.<br />

paramlist_name The name you gave the parameter list object when you defined it. Datatype<br />

is VARCHAR2.<br />

CALL_FORM restrictions<br />

• <strong>Form</strong> <strong>Builder</strong> ignores the query_mode parameter when the calling form is running in<br />

QUERY_ONLY mode. <strong>Form</strong> <strong>Builder</strong> runs any form that is called from a QUERY_ONLY form as a<br />

QUERY_ONLY form, even if the CALL_FORM syntax specifies that the called form is to run in<br />

NO_QUERY_ONLY (normal) mode.<br />

• A parameter list passed to a form via CALL_FORM cannot contain parameters of type<br />

DATA_PARAMETER. Only text parameters can be passed with CALL_FORM.<br />

• Some memory allocated for CALL_FORM is not deallocated until the Runform session ends.<br />

Exercise caution when creating a large stack of called forms.<br />

• When you execute CALL_FORM in a Pre-Logon, On-Logon, or Post-Logon trigger, always specify<br />

the DO_REPLACE parameter to replace the calling form’s menu with the called form’s menu.<br />

Failing to specify DO_REPLACE will result in no menu being displayed for the called form. (An<br />

alternative solution is to call the REPLACE_MENU built-in from a When-New-<strong>Form</strong>-Instance<br />

trigger in the called form.)

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

Saved successfully!

Ooh no, something went wrong!