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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

SET_TREE_SELECTION built-in<br />

Description<br />

Specifies the selection of a single node.<br />

Syntax<br />

PROCEDURE SET_TREE_SELECTION<br />

(item_name VARCHAR2,<br />

node NODE,<br />

selection_type NUMBER);<br />

PROCEDURE SET_TREE_SELECTION<br />

(item_id ITEM,<br />

node NODE,<br />

selection_type NUMBER);<br />

Built-in Type unrestricted procedure<br />

Enter Query Mode no<br />

Parameters<br />

item_name Specifies the name of the object created at design time.<br />

The data type of the name is VARCHAR2 string.<br />

Item_id Specifies the unique ID that <strong>Form</strong> <strong>Builder</strong> assigns to the<br />

item when created. Use the FIND_ITEM built-in to<br />

return the ID to an appropriately typed variable. The<br />

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

node Specifies a valid node.<br />

selection_type Specifies the type of selection.<br />

422<br />

SELECT_ON Selects the node.<br />

SELECT_OFF Deselects the node.<br />

SELECT_TOGGLE Toggles the selection state of the<br />

node.<br />

SET_TREE_SELECTION examples<br />

/*<br />

** Built-in: SET_TREE_SELECTION<br />

*/<br />

-- This code could be used in a WHEN-TREE-NODE-EXPANDED<br />

-- trigger and will mark the clicked node as selected.<br />

DECLARE<br />

htree ITEM;

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

Saved successfully!

Ooh no, something went wrong!