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.

BAR Specifies that you want <strong>Form</strong> <strong>Builder</strong> to display the menu in a bar<br />

style horizontally across the top of the root window.<br />

FULL_SCREEN Specifies that you want <strong>Form</strong> <strong>Builder</strong> to display the<br />

menu in a full-screen style.<br />

starting_menu Specifies the menu within the menu module that <strong>Form</strong> <strong>Builder</strong> should use<br />

as the starting menu. The data type of the name is VARCHAR2.<br />

group_name Specifies the security role that <strong>Form</strong> <strong>Builder</strong> is to use. If you do not specify<br />

a role name, <strong>Form</strong> <strong>Builder</strong> uses the current username to determine the role.<br />

use_file Indicates how <strong>Form</strong> <strong>Builder</strong> should locate the menu .MMX file to be run.<br />

Corresponds to the Menu Source form module property. The data type of<br />

use_file is BOOLEAN.<br />

REPLACE_MENU examples<br />

NULL Specifies that <strong>Form</strong> <strong>Builder</strong> should read the current form’s Menu<br />

Source property and execute REPLACE_MENU accordingly. For<br />

example, if the form module Menu Source property is set to Yes for the<br />

current form, <strong>Form</strong> <strong>Builder</strong> executes REPLACE_MENU as if the use_file<br />

actual parameter was TRUE.<br />

FALSE Specifies that <strong>Form</strong> <strong>Builder</strong> should treat the menu_module value<br />

as a reference to a .MMB (binary) menu module in the database, and should<br />

query this module to get the actual name of the .MMX (executable).<br />

TRUE Specifies that <strong>Form</strong> <strong>Builder</strong> should treat the menu_module value as<br />

a direct reference to a .MMX menu runfile in the file system.<br />

/*<br />

** Built-in: REPLACE_MENU<br />

** Example: Use a standard procedure to change which root<br />

** menu in the current menu application appears in<br />

** the menu bar. A single menu application may<br />

** have multiple "root-menus" which an application<br />

** can dynamically set at runtime.<br />

*/<br />

PROCEDURE Change_Root_To(root_menu_name VARCHAR2) IS<br />

BEGIN<br />

Replace_Menu(’MYAPPLSTD’, PULL_DOWN, root_menu_name);<br />

END;<br />

341

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

Saved successfully!

Ooh no, something went wrong!