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.

SET_ITEM_INSTANCE_PROPERTY built-in<br />

Description<br />

Modifies the current item instance in a block by changing the specified item property.<br />

SET_ITEM_INSTANCE_PROPERTY does not change the appearance of items that mirror the current<br />

instance.<br />

You can reference any item in the current form. Note that SET_ITEM_INSTANCE_PROPERTY only<br />

affects the display of the current instance of the item; other instances of the specified item are not<br />

affected. This means that if you specify a display change for an item that exists in a multi-record block,<br />

SET_ITEM_INSTANCE_PROPERTY only changes the instance of that item that belongs to the block’s<br />

current record. If you want to change all instances of an item in a multi-record block, use<br />

SET_ITEM_PROPERTY .<br />

Any change made by a SET_ITEM_INSTANCE_PROPERTY remains in effect until:<br />

• the same item instance is referenced by another SET_ITEM_INSTANCE_PROPERTY, or<br />

• the same item instance is referenced by the DISPLAY_ITEM built-in, or<br />

• the instance of the item is removed (e.g., through a CLEAR_RECORD or a query), or<br />

• the current form is exited<br />

Syntax<br />

SET_ITEM_INSTANCE_PROPERTY<br />

(item_id ITEM,<br />

record_number NUMBER,<br />

property NUMBER,<br />

value VARCHAR2);<br />

SET_ITEM_INSTANCE_PROPERTY<br />

(item_name VARCHAR2,<br />

record_number NUMBER,<br />

property NUMBER,<br />

value VARCHAR2);<br />

SET_ITEM_INSTANCE_PROPERTY<br />

(item_name VARCHAR2,<br />

record_number NUMBER,<br />

property NUMBER,<br />

value NUMBER);<br />

Built-in Type unrestricted procedure<br />

Enter Query Mode yes<br />

Parameters<br />

item_id The unique ID that <strong>Form</strong> <strong>Builder</strong> assigned to the object when it created it.<br />

Use the FIND_ITEM built-in to return the ID to a variable with datatype of<br />

ITEM.<br />

record_number The record number that you want to set. The record number is the record’s<br />

position in the block. Specify as a whole number. You can specify<br />

CURRENT_RECORD if you want to set the block’s current record.<br />

382

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

Saved successfully!

Ooh no, something went wrong!