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.

offset_type Specifies the type of offset for the node. Possible values<br />

are:<br />

PARENT_OFFSET<br />

SIBLING_OFFSET<br />

If offset_type is PARENT_OFFSET, adds a data subset<br />

immediately under the specified node at the location<br />

among its children indicated by offset.<br />

If offset_type is SIBLING_OFFSET, adds the new data<br />

as a sibling to the specified node.<br />

offset Indicates the position of the new node.<br />

If offset_type is PARENT_OFFSET, then offset can be<br />

either 1-n or LAST_CHILD.<br />

If offset_type is SIBLING_OFFSET, then offset can be<br />

either NEXT_NODE or PREVIOUS_NODE.<br />

data_source Indicates the type of data source. Possible values are:<br />

RECORD_GROUP<br />

QUERY_TEXT<br />

data Specifies the data to be added. If data source is<br />

QUERY_TEXT, then data is the text of the query. If<br />

data source is RECORD_GROUP, then data is an item<br />

of type RECORDGROUP or the name of a record<br />

group.<br />

ADD_TREE_DATA examples<br />

/*<br />

** Built-in: ADD_TREE_DATA<br />

*/<br />

-- This code copies a set of values from a record group<br />

-- and adds them as a top level node with any children<br />

-- nodes specified by the structure of the record group.<br />

-- The new top level node will be inserted as the last<br />

-- top level node.<br />

DECLARE<br />

htree ITEM;<br />

rg_data RECORDGROUP;<br />

BEGIN<br />

-- Find the tree itself.<br />

htree := Find_Item(’tree_block.htree3’);<br />

-- Find the record group.<br />

rg_data := FIND_GROUP(’new_data_rg’);<br />

17

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

Saved successfully!

Ooh no, something went wrong!