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.

Initial Value (Item) property<br />

Description<br />

Specifies the default value that <strong>Form</strong> <strong>Builder</strong> should assign to the item whenever a record is created. The<br />

default value can be one of the following:<br />

48<br />

• raw value (216, ’TOKYO’)<br />

• form item (:block_name.item_name)<br />

• global variable (:GLOBAL.my_global)<br />

• form parameter (:PARAMETER.my_param)<br />

• a sequence (:SEQUENCE.my_seq.NEXTVAL)<br />

Applies to check boxes, display items, list items, radio groups, text items, and user areas<br />

Set <strong>Form</strong> <strong>Builder</strong><br />

Default<br />

Null<br />

Required/Optional Optional for all items except radio groups, check boxes, and list items.<br />

For a radio group, a valid Initial Value is required unless<br />

a) the radio group specifies Mapping of Other Values or,<br />

b) the value associated with one of the radio buttons in the group is NULL.<br />

For a list item, a valid Initial Value is required unless<br />

a) the list item specifies Mapping of Other Values or,<br />

b) the value associated with one of the list elements is NULL.<br />

For a check box, a valid Initial Value is required unless<br />

Usage Notes<br />

a) the check box specifies Mapping of Other Values or,<br />

b) the value associated with Checked or Unchecked is NULL.<br />

• When using the default value to initialize the state of items such as check boxes, radio groups, or list<br />

items, keep in mind that the default value does not get assigned until <strong>Form</strong> <strong>Builder</strong> creates a record<br />

in the block.<br />

Subordinate mirror items are initialized from the master mirror item’s Initial Value property. The ON-<br />

SEQUENCE-NUMBER trigger is also taken from the master item. If the subordinate mirror item<br />

specifies Initial Value and ON-SEQUENCE-NUMBER, <strong>Form</strong> <strong>Builder</strong> ignores them and issues a<br />

warning.<br />

At runtime, the initial value set by this property will be ignored if all of the following are true for the<br />

item (or an item that mirrors it):<br />

the item is a poplist, T-list, radio group, or check box

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

Saved successfully!

Ooh no, something went wrong!