Re: Hierarchical Tree : Forms 6
Date: Fri, 24 Sep 1999 10:47:10 +0800
Message-ID: <37EAE62E.7BCB464A_at_ccis.adisys.com.au>
shamsnaveed_at_my-deja.com wrote:
> I haven't been able to use Tree in Forms 6. Forms 6 help hasn't been
> that much helping either.
> Can someone give me tips or procedure to create and use Trees in Forms
> 6.
>
> Sent via Deja.com http://www.deja.com/
> Share what you know. Learn what you don't.
We got this working just yesterday.
The steps are:
Create a Tree item in a block. Use the Layout editor for this and size the
item to the size you want the tree to be on the canvas.
Create a record group in the way that is shown in the help. It should have
5 columns.
In the tree's "Record Group" property select the name of the group you
created.
Create a WHEN-NEW-BLOCK-INSTANCE trigger on the tree's block with
following code:
DECLARE HTREE ITEM; V_IGNORE NUMBER; BEGIN --TO FIND THE TREE ITSELF. HTREE := FIND_ITEM('<your block name>.<your tree name>'); V_IGNORE := POPULATE_GROUP('<your record group name>') --TO SET THE RECORD GROUP AND CAUSE THE DATA TO DISPLAY FTREE.SET_TREE_PROPERTY(HTREE, FTREE.RECORD_GROUP, '<your record group name>'); END;
That's it.
I would also like to acknowledge Oracle Support's assistance in showing us the way.
HTH
Geoff
Received on Fri Sep 24 1999 - 04:47:10 CEST