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.

POPULATE_GROUP_FROM_TREE examples<br />

314<br />

/*<br />

** Built-in: POPULATE_GROUP_FROM_TREE<br />

*/<br />

-- This code will transfer all the data from a hierarchical tree<br />

-- that is parented by the node with a label of "Zetie" to a<br />

-- pre-created record group. Please see the documentation<br />

-- for the structure of the required record group.<br />

DECLARE<br />

htree ITEM;<br />

find_node NODE;<br />

BEGIN<br />

-- Find the tree itself.<br />

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

-- Find the node with a label "Zetie".<br />

find_node := Ftree.Find_Tree_Node(htree, ’Zetie’,<br />

Ftree.FIND_NEXT,<br />

Ftree.NODE_LABEL, Ftree.ROOT_NODE,<br />

Ftree.ROOT_NODE);<br />

-- Populate the record group with the tree data.<br />

-- The record group must already exist.<br />

Ftree.Populate_Group_From_Tree(’tree_data_rg’, htree,<br />

find_node);<br />

END;

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

Saved successfully!

Ooh no, something went wrong!