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.

Required (Item) property<br />

Description<br />

When a new record is being entered, specifies that the item is invalid when its value is NULL.<br />

Applies to list item, text item<br />

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

Refer to Built-in<br />

• GET_ITEM_INSTANCE_PROPERTY<br />

• GET_ITEM_PROPERTY<br />

• SET_ITEM_INSTANCE_PROPERTY<br />

• SET_ITEM_PROPERTY<br />

Default<br />

No<br />

Usage Notes<br />

When an item has Required set to Yes, and item-level validation is in effect, by default <strong>Form</strong> <strong>Builder</strong> will<br />

not allow navigation out of the item until a valid value is entered. To allow the end user to move freely<br />

among the items in the record, set the Defer Required Enforcement property to Yes. This will postpone<br />

enforcement of the Required attribute from item validation to record validation.<br />

Even when Required is set to Yes, there are circumstances when an item’s value could be NULL. <strong>Form</strong><br />

<strong>Builder</strong> checks for required items as part of its validation process: each item in a new record is subject to<br />

validation, but queried data is presumed to be valid and an item is not validated unless it is changed. For<br />

example, if the record already exists and is queried from the database, the item that would be Required<br />

could come in as NULL.<br />

Setting a poplist’s or T-list’s Required property may affect the values the list will display: When<br />

selected, an instance of a poplist will display an extra null value if its current value is NULL or if its<br />

effective Required property is No (false). When selecting the current value of an instance of a T-list, it<br />

will be unselected (leaving the T-list with no selected value) if its effective Required property is No<br />

(false). But if its effective Required property is Yes (true), selecting a T-list instance’s current value will<br />

have no effect. The value will stay selected.<br />

228

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

Saved successfully!

Ooh no, something went wrong!