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.

DISPLAY_ITEM built-in<br />

Description<br />

Maintained for backward compatibility only. For new applications, you should use the<br />

SET_ITEM_INSTANCE_PROPERTY built-in. DISPLAY_ITEM modifies an item’s appearance by<br />

assigning a specified display attribute to the item. DISPLAY_ITEM has the side-effect of also changing<br />

the appearance of any items that mirror the changed instance. SET_ITEM_INSTANCE_PROPERTY<br />

does not change mirror items.<br />

92<br />

You can reference any item in the current form.<br />

Any change made by a DISPLAY_ITEM built-in is effective until:<br />

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

• the same item instance is referenced by the SET_ITEM_INSTANCE_PROPERTY built-in (with<br />

VISUAL_ATTRIBUTE property), or<br />

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

• you modify a record (whose status is NEW), navigate out of the record, then re-enter the record, or<br />

• the current form is exited<br />

Syntax<br />

PROCEDURE DISPLAY_ITEM<br />

(item_id ITEM,<br />

attribute VARCHAR2);<br />

PROCEDURE DISPLAY_ITEM<br />

(item_name VARCHAR2,<br />

attribute VARCHAR2);<br />

Built-in Type unrestricted procedure<br />

Enter Query Mode yes<br />

Parameters<br />

item_id Specifies the unique ID that <strong>Form</strong> <strong>Builder</strong> assigns to the item when it<br />

creates the item. The data type of the ID is ITEM.<br />

item_name Specifies the VARCHAR2 string you gave to the item when you created it.<br />

attribute Specifies a named visual attribute that should exist. You can also specify a<br />

valid attribute from your <strong>Oracle</strong>*Terminal resource file. <strong>Form</strong> <strong>Builder</strong> will<br />

search for named visual attribute first. Note: You can specify Normal as<br />

a method for applying the default attributes to an item, but only if your<br />

form does not contain a visual attribute or logical (character mode or<br />

otherwise) called Normal. You can also specify NULL as a method for<br />

returning an item to its initial visual attributes (default, custom, or named).<br />

DISPLAY_ITEM examples<br />

/*<br />

** Built-in: DISPLAY_ITEM

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

Saved successfully!

Ooh no, something went wrong!