SET_TREE_NODE_PROPERTY - NODE_ICON

Platform - XP
Forms - 10.1.2.0.2
I'm developing a master-detail form. The master portion of the form identifies tasking directives issued by an organization's managment staff. The detail portion of the form consists of a tree depicting the groups within the organization that are required to provide a response. The structure looks something like this:
1 Directive (Master Record)
2 Group A
3 Sub Group A1
4 London
4 New York
4 Los Angeles
3 Sub Group A2
4 Atlanta
4 Chicago
2 Group B
3 Sub Group B1
4 Dallas
4 Phoenix
The tree is correctly built by a record group and displayed within the tree item on the form.
What I'm attempting to do is add an icon to each node of the tree that indicates whether or not each node has replied to the directive. For test purposes I'm using a when-tree-node-selected trigger to identify the appropriate icon. Example:
DECLARE
htree ITEM;
cur_node     FTREE.NODE := :SYSTEM.TRIGGER_NODE;
BEGIN
htree := FIND_ITEM('issued_to.issued_to_tree');
FTREE.SET_TREE_NODE_PROPERTY(htree,cur_node,FTREE.NODE_ICON,'REPLIED');
END;
The trigger compiles without errors. However, when I run the form and click on any of the nodes, the icon is not displayed. The message at the bottom of the form indicates the path to the icon file is /forms/java, and the file "REPLIED.gif" does reside in that directory. I've tried moving the file to several different locations, but I still can't get the icon to display.
What am I missing?

Simon,
Thanks for the link. I've been wading through the myriad of metalink notes, otn documentation, google searches, etc., for something just like this.
Mike

Similar Messages

  • Problem with ftree.set_tree_node_property

    I have been following the Oracle documentation for setting up a
    tree. I have a tree displaying in my form, so that is good.
    However, when I try to use the ftree.set_tree_node_property
    built in to change the icon, I receive the "too many
    declarations of SET_TREE_NODE_PROPERTY match this call" error.
    I have used the built-in as shown in the example in the help.
    The usage is shown below:
    Ftree.Set_Tree_Node_Property(htree, :SYSTEM.TRIGGER_NODE,
    ftree.node_icon, 'openfld');
    Any ideas?
    Thanks,
    Jill
    null

    Hi Jeff, Jill -
    Don't forget you can put the full path to the icon in the
    control as well when you do the Add_Tree_Node thingy.
    Of course, that requires that your users have the same directory
    structure and have the same icons. We've taken
    to 'distributing' our applications off a network file server
    which alleviates the problem of sending the forms out to
    everyone along with the libraries, icons and other support
    files. So, since all the icons are on a network volume, the
    path will always be the same no matter who's machine its being
    run from.
    S-
    Jeff Smith (guest) wrote:
    : I had this error also, one way to get around it is to define a
    : variable as a NODE (you will see this is the documentation
    under
    : any of the examples for building a tree) and then say:
    : YOUR_NODE := :SYSTEM.TRIGGER_NODE
    : then use the YOUR_NODE in the Set_Tree_Node_Property...why it
    : doesn't work the other way is a mystery to me, but this does
    : work, so I am not going to try and solve it.
    : Also, I see you have the ICONS working, how do I set this up?
    : Where do I need to put the ICONS, in the same directory as
    : everything else?
    : Thanks,
    : Jeff.
    : Jill French (guest) wrote:
    : : I have been following the Oracle documentation for setting
    up
    : a
    : : tree. I have a tree displaying in my form, so that is
    good.
    : : However, when I try to use the ftree.set_tree_node_property
    : : built in to change the icon, I receive the "too many
    : : declarations of SET_TREE_NODE_PROPERTY match this call"
    : error.
    : : I have used the built-in as shown in the example in the
    help.
    : : The usage is shown below:
    : : Ftree.Set_Tree_Node_Property(htree, :SYSTEM.TRIGGER_NODE,
    : : ftree.node_icon, 'openfld');
    : : Any ideas?
    : : Thanks,
    : : Jill
    null

  • SET_TREE_NODE_PROPERTY

    Hello,
    I am trying to programmatically expand a tree node even though it does not have any child nodes. Through the user interface this is possible (you simply change the + sign to a - sign by the node), we have then programmed the various triggers to dynamically build the subsequent nodes. However, when we try and replicate the user click through set_tree_node_property expanded, the call does nothing and our code to build the subsequent tree node places the nodes on the same level as our current node. Has anyone else come across/overcome this?
    TIA
    Chris

    Chris
    This is a generic code to collapse all the tree.
    This could be a good point of start.
    htree := Find_Item('BL_TREE.TREE_1');
    -- Find tree root --
    node := Ftree.Find_Tree_Node(htree, '');
    -- Collapse all --
    WHILE NOT ftree.ID_NULL(node) LOOP
    state := Ftree.Get_Tree_Node_Property(htree, node, Ftree.NODE_STATE);
    IF state = Ftree.EXPANDED_NODE THEN
    Ftree.Set_Tree_Node_Property(htree, node, Ftree.NODE_STATE, Ftree.COLLAPSED_NODE);
    END IF;
    node := Ftree.Find_Tree_Node(htree, '', Ftree.FIND_NEXT,Ftree.NODE_LABEL, '', node);
    END LOOP;
    Francois

  • Icon not showing

    I am using Windows 7 oracle database 10g and developer Suite 10g
    configure all the steps accordingly but not showing icons, when I copy all the Gif files in /Forms/Java/ folder then showing icon only in push button not showing in Tree Node.
    Steps I followed:-
    Hkey_Local_Machine\Software\Oracle\<Forms10 g_Home>\UI_ICON by entering the
    path of your GIF/JPG files for e.g. J:\Icons
    and create ui_icon_extension and give it value GIF
    Creating Jar Files
    Jar -cfv icons_name.Jar *.gif
    Copy this Jar File into Java Folder.
    Modify REGISTRY.DAT file
    default.icons.iconpath=icons/
    Modify FORMSWEB.CFG file
    i) imagebase=codebase
    ii) archive_jini=frmall_jinit.jar,frmwebutil.jar,jacob .jar,my_icons.jarstill not showing images in HTree Node

    Hello,
    Here is the content of the first note:
    A hierarchical tree component is used within Forms. When the tree is populated with (ftree.populate_tree), it does not show the associated icons "from the icon column within the query". The icons are stored in a jar file.
    The environment file and the web configuration file are correctly set. For example, an image in the jar file appears on an iconic button.
    Cause
    The cause of this issue is determined by the unpublished Bug 10410309: FTREE.POPULATE_TREE DOES NOT SHOW ICONS
    Solution
    If the icon node value is refreshed, then the associated image appears.
    A simple loop like this will solve the problem:
    DECLARE
    htree ITEM;
    node ftree.node;
    state varchar2(30);
    state2 varchar2(30);
    BEGIN
    -- Find the tree itself.
    htree := Find_Item('TREE.TREE');
    Ftree.Populate_Tree(htree);
    go_item('TREE.TREE');
    -- Find the root node of the tree.
    node := Ftree.Find_Tree_Node(htree, '');
    -- Loop through all nodes and refresh their icon value
    WHILE NOT Ftree.ID_NULL(node) LOOP
    state2 := Ftree.Get_Tree_Node_Property(htree, node, Ftree.NODE_ICON);
    IF state2 is not null THEN
    Ftree.Set_Tree_Node_Property(htree, node, Ftree.NODE_ICON, lower(state2));
    END IF;
    node := Ftree.Find_Tree_Node(htree, '', ftree.find_NEXT,Ftree.NODE_LABEL,'', node);
    END LOOP;
    END;
    Now the icon image value will be read from the jar file containing the images.
    The second note talks about not using subdirectories inside the jar file.
    Kind regards,
    Alex
    If someone's answer is helpful or correct please mark it accordingly.

  • Current node tree with tooltip_text

    Hello,
    How can i display a tooltip_text for the current node from a tree ?
    I tried with
    :Ctrl.Node_Selected     := Ftree.Get_Tree_Node_Property('BL_TREE.MENU',
    :SYSTEM.TRIGGER_NODE,
    Ftree.NODE_VALUE);
    set_item_property('BL_TREE.MENU',
    tooltip_text,
    :Ctrl.Node_Selected);
    I didn't find something with the build_in set_Tree_Node_Property
    There is a possibility to display an icon for each node ? I build the tree with a record group. How can I do it ?
    Thanks
    Bye

    hi,
    you can set the tooltip-text of the whole treebean according to the currently selected "active" node.
    Try to use the code you already used in a WHEN-TREE-NODE-SELECTED-Trigger.
    It's not possible to have a tooltip-text for each node separately.
    Yes, you can assign an icon to each node. Whn you use a recordgroup to fill the tree, one of the columns of the recordgroup has to be the name of the icon
    If i remember correctly the columns are
    NODE_STATE
    NODE_DEPTH
    NODE_LABEL
    NODE_ICON
    NODE_VALUE

  • JCheckBox-icon not showing

    Hi there,
    i hope this has not been covered already, i searched this forum looking for all kind of JCheckBox posts but did not find what i was looking for. If i missed it i'm really sorry and would appreciate any kick that get's me into the right direction ;-)
    I'm using some JCheckBoxes in my application and on all testsystems i ran it on everything worked fine. Now i got finally access to the machine it should run on in the end and of course it screws up. The selection icons for the JCheckboxes are not working correctly, more specific the IconBackground is black so i can only see if the box is checked when i highlight it. I really have no clue why it is behaving differently on this machine (same operating system, same jre-build). If anybody could give a hint what the problem could be or what work-arounds are known, it would be greatly appreciated. For now i try to mess with the UIManager, but i'm kinda stuck there because the documentation on how to use it for what purpose is not really rich ;-)
    Thx in advance, Chris

    Hello,
    Here is the content of the first note:
    A hierarchical tree component is used within Forms. When the tree is populated with (ftree.populate_tree), it does not show the associated icons "from the icon column within the query". The icons are stored in a jar file.
    The environment file and the web configuration file are correctly set. For example, an image in the jar file appears on an iconic button.
    Cause
    The cause of this issue is determined by the unpublished Bug 10410309: FTREE.POPULATE_TREE DOES NOT SHOW ICONS
    Solution
    If the icon node value is refreshed, then the associated image appears.
    A simple loop like this will solve the problem:
    DECLARE
    htree ITEM;
    node ftree.node;
    state varchar2(30);
    state2 varchar2(30);
    BEGIN
    -- Find the tree itself.
    htree := Find_Item('TREE.TREE');
    Ftree.Populate_Tree(htree);
    go_item('TREE.TREE');
    -- Find the root node of the tree.
    node := Ftree.Find_Tree_Node(htree, '');
    -- Loop through all nodes and refresh their icon value
    WHILE NOT Ftree.ID_NULL(node) LOOP
    state2 := Ftree.Get_Tree_Node_Property(htree, node, Ftree.NODE_ICON);
    IF state2 is not null THEN
    Ftree.Set_Tree_Node_Property(htree, node, Ftree.NODE_ICON, lower(state2));
    END IF;
    node := Ftree.Find_Tree_Node(htree, '', ftree.find_NEXT,Ftree.NODE_LABEL,'', node);
    END LOOP;
    END;
    Now the icon image value will be read from the jar file containing the images.
    The second note talks about not using subdirectories inside the jar file.
    Kind regards,
    Alex
    If someone's answer is helpful or correct please mark it accordingly.

  • "Too many Declareation" error

    I have problem with this node :-
    in WHEN-TREE-NODE-SELECTED :-
    DECLARE
    htree ITEM;
    current_node FTREE.NODE;
    find_node FTREE.NODE;
    BEGIN
    htree := Find_Item('BB.TR');
    Ftree.Set_Tree_Node_Property(htree, :SYSTEM.TRIGGER_NODE, ftree.NODE_ICON , 'ora' );
    END;
    when I compile the code .... this error appear :-
    http://img167.imageshack.us/img167/8766/tmdkx3.png
    I review the syntax , but everything is OKay.
    so ... what's went wrong in the Code ?
    PS : I attached the fmb file to test it , if you would .download it from that link :-
    http://www.zshare.net/download/13564569e3898228/

    This error indicates it cannot choose between overloaded versions of set_tree_node_property.
    Checking, there are 4 overloaded versions: combinations of the first parameter being a forms item or a varchar2, and the last parameter being a number or varchar2.
    Since your last parameter is definitely a varchar2, the confusion must be in the first parameter. Since the variable used here is defined as a forms item, the only way it could be confused would be if the item is NULL, since null has no datatype.
    You should check that find_item has returned a value into htree by checking ID_NULL(htree).

  • Folder Icon in Trees

    I'm using Forms 6i and need to use Hierarchial trees. I've never worked on tree items. I have somehow populated data to the tree but my problem now is i'm not able to display a folder icon for the nodes. I would be very grateful if someone could explain me from the basics, of how to show a folder icon in the nodes, also the icon should be different when a node is expanded ie. folder to be opened when node expanded and closed when node collapsed.

    Anitha,
    the initial icon can be set when creating the tree. There are two ways to create a tree, one to use a query and another to use a record group.
    To set icons due to a user action (e.g. a node selection):
    DECLARE
    htree ITEM;
    current_node FTREE.NODE; 
    find_node FTREE.NODE; 
    BEGIN
    -- Find the tree itself. 
    htree := FIND_ITEM('tree_block.htree3');   
    -- Change the icon of the clicked node.  The icon name
    -- is "Open"
    FTREE.SET_TREE_NODE_PROPERTY(htree, :SYSTEM.TRIGGER_NODE, Ftree.NODE_ICON, 'Open'); 
    If you running in client/server, the icons need to be in the directory specified by the UI_ICONS registry variable. On the Web the icons must be in a gif format and in the same directory or archive you use for the iconic buttons
    see: http://otn.oracle.com/products/forms/pdf/webicons.pdf
    Frank
    Frank
    END;

  • Why my ftree code is wrong?

    this is oracle demo code:
    ** Built-in: SET_TREE_NODE_PROPERTY
    -- This code could be used in a WHEN-TREE-NODE-SELECTED
    -- trigger to change the icon of the node clicked on.
    DECLARE
    htree ITEM;
    current_node FTREE.NODE;
    find_node FTREE.NODE;
    BEGIN
    -- Find the tree itself.
    htree := Find_Item('tree_block.htree3');
    -- Change it icon of the clicked node.
    -- The icon file will be located using the
    -- UI60_ICON environment variable in client/server
    -- or in the virtual directory for web deployment.
    Ftree.Set_Tree_Node_Property(htree, :SYSTEM.TRIGGER_NODE, Ftree.NODE_ICON, 'Open');
    END;
    but when i compile it raise this error?
    have too many "set_Tree_Node_Property" description match it

    Try this:
    DECLARE
    htree ITEM;
    current_node Ftree.NODE;
    find_node Ftree.NODE;
    BEGIN
    -- Find the tree itself.
    htree := Find_Item('tree_block.htree3');
    -- Change it icon of the clicked node.
    -- The icon file will be located using the
    -- TK_ICON environment variable in client/server
    -- or in the virtual directory for web deployment.
              current_node := :SYSTEM.TRIGGER_NODE;
    Ftree.Set_Tree_Node_Property(htree,
                   current_node,
                   Ftree.NODE_ICON,
                   'Open');
    END;
    I assume you followed Note 210663.1. This for a reason I don't know seems to be wrong for this part.
    Frank

  • Hierarchical Tree Node icon ?

    Hi
    How to create a icon on Hierarchical tree
    Regards
    Shahzaib

    Thanks for your reply and i am sorry for not clear my developer version
    My developer version is 6I
    Database express addition
    Well i write the trigger when tree node activate
    :parameter.current_emp := ftree.get_tree_node_property(find_item('Block28.Tree8'),
                                                          :system.trigger_node,
                                                          ftree.node_value);
    DECLARE
    htree         ITEM;
    current_node  FTREE.NODE;
    find_node     FTREE.NODE;
    BEGIN
    htree := Find_Item('block28.tree8');
    find_node := :SYSTEM.TRIGGER_NODE;
    ftree.set_tree_node_property(htree, find_node, ftree.NODE_ICON, 'D:\ico\Ico\favorite.ico');
    END;
    Ftree.SET_tree_NODE_PROPERTY(htree, :SYSTEM.TRIGGER_NODE, Ftree.NODE_ICON, 'print');And also when mouse double click
    declare
    al_button number;     
         pl_id ParamList;
         v_emp_id     number;
         e_child_rec  exception;
         pragma exception_init(e_child_rec, -02292);
         len number := 3; --variable which tells till what length from last not to copy from first string
    begin
         v_emp_id := ftree.get_tree_node_property(find_item('Block28.tree8'),
                                                               :system.trigger_node,
                                                                ftree.node_value);
    SET_BLOCK_PROPERTY('block3', DEFAULT_WHERE, 'acc_id = ''' || V_emp_id|| '''');
    go_block('block3');
    EXECUTE_QUERY;
    exception
           when e_child_rec then
                Message ('Go Kimi Go');
    end;
      Now when i double click the mouse its show tree icon
    I want when i run my module its show me all node icon
    Hope this time i clear my question
    Regards
    Shahzaib ismail

  • Display a schematic view with icons (jpg, gif, etc).

    I'm trying to display a schematic view and use icons to represent the difference objects in this schematic view.
    For example: to show a 3 phones conference call. The description will be the phone number (or person's name) and the icon will be the person's face or company logo.
    I have tried to use JLabel, and JButton but then I have to use a Layout. Without a layout the are one-on-top of another.
    I tried to use setLocation and it doesn't look to have any effect on the location of JLabel or JButton.
    The following is my code:
    import java.awt.Container;
    import java.awt.Insets;
    import java.awt.Point;
    import java.awt.Dimension;
    import javax.swing.ImageIcon;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    * ShowIcons.java is a 1.4 application that requires no other files.
    * @author Benny Regev
    * @version 1.0.00.0000
    public class ShowIcons {
        public static void addComponentsToPane(Container pane) {
            ImageIcon iconHE, iconCPE, iconNode, iconDemo;
            Point point1, point2, point3;
            pane.setLayout(null);
            iconHE = createImageIcon(NODE_HE_ICON);
            iconNode = createImageIcon(NODE_ICON);
            iconCPE = createImageIcon(NODE_CPE_ICON);
            iconDemo = createImageIcon(NODE_CPE_ICON);
            JButton b1 = new JButton(HE_TEXT, iconHE);
            JButton b2 = new JButton(NODE_TEXT, iconNode);
            JButton b3 = new JButton(CPE_TEXT, iconCPE);
            point1 = new Point(0, 500);
            point2 = new Point(500, 0);
            point3 = new Point(500, 500);
            b1.setLocation( point1 );
            b2.setLocation( point2 );
            b3.setLocation( point3 );
            pane.add(b3);
            pane.add(b2);
            pane.add(b1);
    //        pane.add(iconDemo);
            Insets insets = pane.getInsets();
            Dimension size = b1.getPreferredSize();
            b1.setBounds(25 + insets.left, 5 + insets.top,
                         size.width, size.height);
            size = b2.getPreferredSize();
            b2.setBounds(55 + insets.left, 40 + insets.top,
                         size.width, size.height);
            size = b3.getPreferredSize();
            b3.setBounds(150 + insets.left, 15 + insets.top,
                         size.width + 50, size.height + 20);
        /** Returns an ImageIcon, or null if the path was invalid. */
        protected static ImageIcon createImageIcon(String path) {
            java.net.URL imageURL = ShowIcons.class.getResource(path);
            if (imageURL == null) {
                System.err.println("Resource not found: "
                                   + path);
                return null;
            } else {
                return new ImageIcon(imageURL);
        }   //  End of Method protected static ImageIcon createImageIcon(String)
         * Create the GUI and show it.  For thread safety,
         * this method should be invoked from the
         * event-dispatching thread.
        private static void createAndShowGUI() {
            //Make sure we have nice window decorations.
            JFrame.setDefaultLookAndFeelDecorated(true);
            //Create and set up the window.
            JFrame frame = new JFrame("AbsoluteLayoutDemo");
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            //Set up the content pane.
            addComponentsToPane(frame.getContentPane());
            //Size and display the window.
            Insets insets = frame.getInsets();
            frame.setSize(300 + insets.left + insets.right,
                          125 + insets.top + insets.bottom);
            frame.setVisible(true);
        public static void main(String[] args) {
            //Schedule a job for the event-dispatching thread:
            //creating and showing this application's GUI.
            javax.swing.SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    createAndShowGUI();
        public static final String NODE_HE_ICON = "images/shop_icon_esd_110.gif";
        public static final String NODE_CPE_ICON = "images/Default_feature1.gif";
        public static final String NODE_ICON = "images/icondesktop.gif";
        public static final String HE_TEXT = "Headent";
        public static final String CPE_TEXT = "CPE";
        public static final String NODE_TEXT = "10.0.0.10";
    }Anyone has an idea??

    Hi,
    This might help
    http://www.techonthenet.com/oracle/errors/ora01446.php
    Regards,
    Jari

  • How to go to a particular node in a hierarchical tree?

    I want to do this simple thing with a Forms hierarchical tree.
    Since tree has lots of levels and branches I want to give a search box.
    User types the label and press a button. The form then has to query the tree node and expand ONLY the path where the node is (if found) and highlight it. If a node with a label is NOT found I give an error message to the user.
    I got hold of a code segment to explode a tree and modified it, but it does not work. The entire tree is expanded and you don't know where you are.
    Any help will be greatly appreciated?
    PROCEDURE Expand_All_Nodes_in_Tree IS
         node ftree.node;
         htree ITEM;
         state varchar2(30);
    BEGIN
         -- Search the tree identifiant --
         htree := Find_Item('menu.tree');
         -- Search the root --
         node := Ftree.Find_Tree_Node(htree, '');
         -- Expand all nodes --
         WHILE NOT Ftree.ID_NULL(node) LOOP
         state := Ftree.Get_Tree_Node_Property(htree, node, Ftree.NODE_STATE);
         IF state = Ftree.COLLAPSED_NODE THEN
         Ftree.Set_Tree_Node_Property(htree, node, Ftree.NODE_STATE, Ftree.EXPANDED_NODE);
         END IF;
         node := Ftree.Find_Tree_Node(htree, '', ftree.find_NEXT,Ftree.NODE_LABEL,'', node);
    IF Ftree.Get_Tree_Node_Property(htree, node, Ftree.NODE_LABEL) = :ctrl.node_lable_to_search THEN
    EXIT;
    END IF;     
         END LOOP;
    END;

    Hi Channa,
    Try this code with you tree i am using the same situation and this code is working perfect with me.
    PROCEDURE find_node_in_tree(search_string varchar2, find_type varchar2) IS
    htree ITEM;
    search_start_node ftree.node;
    find_node ftree.node;
    BEGIN
    htree := Find_Item('blk_tree.main_tree');
         search_start_node := nvl(ftree.get_tree_selection(htree,1),ftree.root_node);
         find_node := ftree.find_tree_node(htree,upper(search_string)||'%',ftree.find_next,ftree.node_label,ftree.root_node,search_start_node-1);
         if find_node = 0 then
              find_node := 1;
    end if;
    Ftree.Set_Tree_selection(htree, find_node, Ftree.SELECT_ON);
    exception
         when others then
              NULL;
    END;
    -Ammad

  • Node Information

    Hi,
    Is there a way to get information on a node in a tree.
    I have a tree and when I click on a node I want to get the node and tree information.
    Thanks,
    Marc.

    The problem is that the PARENT NODE is in another table !
    Let me EXPLAIN (or re-explain) the scenario:
    A template contains a COMPONENT (top Level). This is represented in the TEMPLATE_CONTENT table:
    CREATE TABLE TEMPLATE_CONTENT
      TEMPLATE_CONTENT_ID    NUMBER(10)             NOT NULL,
      TEMPLATE_COMPONENT_ID  NUMBER(10)             NOT NULL,
      TEMPLATE_ID            NUMBER(10)             NOT NULL,
      EFFECTIVE_DATE         DATE                   NOT NULL,
      DATE_CREATED           DATE                   NOT NULL,
      USER_CREATED           NUMBER(10)             NOT NULL,
      EXPIRY_DATE            DATE,
      DATE_UPDATED           DATE,
      USER_UPDATED           NUMBER(10)
    )INSERT INTO TEMPLATE_CONTENT ( TEMPLATE_CONTENT_ID, TEMPLATE_COMPONENT_ID, TEMPLATE_ID,
    EFFECTIVE_DATE, DATE_CREATED, USER_CREATED, EXPIRY_DATE, DATE_UPDATED,
    USER_UPDATED ) VALUES (
    20, 195, 1, TO_Date( '06/04/2007 09:29:37 AM', 'MM/DD/YYYY HH:MI:SS AM'), TO_Date( '06/04/2007 09:29:37 AM', 'MM/DD/YYYY HH:MI:SS AM')
    , 2, NULL, NULL, NULL);
    INSERT INTO TEMPLATE_CONTENT ( TEMPLATE_CONTENT_ID, TEMPLATE_COMPONENT_ID, TEMPLATE_ID,
    EFFECTIVE_DATE, DATE_CREATED, USER_CREATED, EXPIRY_DATE, DATE_UPDATED,
    USER_UPDATED ) VALUES (
    21, 197, 1, TO_Date( '06/04/2007 09:29:37 AM', 'MM/DD/YYYY HH:MI:SS AM'), TO_Date( '06/04/2007 09:29:37 AM', 'MM/DD/YYYY HH:MI:SS AM')
    , 2, NULL, NULL, NULL);
    COMMIT;
    The COMPONENT can also contain NESTED Components, represented in the TEMPLATE_COMPONENT_NESTING table:
    CREATE TABLE TEMPLATE_COMPONENT_NESTING
      TEMPLATE_COMPONENT_NESTING_ID   NUMBER(10)    NOT NULL,
      TEMPLATE_COMPONENT_ID_IN        NUMBER(10),
      TEMPLATE_COMPONENT_ID_CONTAINS  NUMBER(10),
      EFFECTIVE_DATE                  DATE          NOT NULL,
      DATE_CREATED                    DATE          NOT NULL,
      USER_CREATED                    NUMBER(10)    NOT NULL,
      EXPIRY_DATE                     DATE,
      DATE_UPDATED                    DATE,
      USER_UPDATED                    NUMBER(10)
    INSERT INTO TEMPLATE_COMPONENT_NESTING ( TEMPLATE_COMPONENT_NESTING_ID, TEMPLATE_COMPONENT_ID_IN,
    TEMPLATE_COMPONENT_ID_CONTAINS, EFFECTIVE_DATE, DATE_CREATED, USER_CREATED, EXPIRY_DATE,
    DATE_UPDATED, USER_UPDATED ) VALUES (
    26, 85, 197,  TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM'),  TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM')
    , 2, NULL, NULL, NULL);
    INSERT INTO TEMPLATE_COMPONENT_NESTING ( TEMPLATE_COMPONENT_NESTING_ID, TEMPLATE_COMPONENT_ID_IN,
    TEMPLATE_COMPONENT_ID_CONTAINS, EFFECTIVE_DATE, DATE_CREATED, USER_CREATED, EXPIRY_DATE,
    DATE_UPDATED, USER_UPDATED ) VALUES (
    27, 89, 197,  TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM'),  TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM')
    , 2, NULL, NULL, NULL);
    INSERT INTO TEMPLATE_COMPONENT_NESTING ( TEMPLATE_COMPONENT_NESTING_ID, TEMPLATE_COMPONENT_ID_IN,
    TEMPLATE_COMPONENT_ID_CONTAINS, EFFECTIVE_DATE, DATE_CREATED, USER_CREATED, EXPIRY_DATE,
    DATE_UPDATED, USER_UPDATED ) VALUES (
    36, 93, 197,  TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM'),  TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM')
    , 2, NULL, NULL, NULL);
    INSERT INTO TEMPLATE_COMPONENT_NESTING ( TEMPLATE_COMPONENT_NESTING_ID, TEMPLATE_COMPONENT_ID_IN,
    TEMPLATE_COMPONENT_ID_CONTAINS, EFFECTIVE_DATE, DATE_CREATED, USER_CREATED, EXPIRY_DATE,
    DATE_UPDATED, USER_UPDATED ) VALUES (
    34, 97, 197,  TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM'),  TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM')
    , 2, NULL, NULL, NULL);
    INSERT INTO TEMPLATE_COMPONENT_NESTING ( TEMPLATE_COMPONENT_NESTING_ID, TEMPLATE_COMPONENT_ID_IN,
    TEMPLATE_COMPONENT_ID_CONTAINS, EFFECTIVE_DATE, DATE_CREATED, USER_CREATED, EXPIRY_DATE,
    DATE_UPDATED, USER_UPDATED ) VALUES (
    38, 109, 197,  TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM'),  TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM')
    , 2, NULL, NULL, NULL);
    INSERT INTO TEMPLATE_COMPONENT_NESTING ( TEMPLATE_COMPONENT_NESTING_ID, TEMPLATE_COMPONENT_ID_IN,
    TEMPLATE_COMPONENT_ID_CONTAINS, EFFECTIVE_DATE, DATE_CREATED, USER_CREATED, EXPIRY_DATE,
    DATE_UPDATED, USER_UPDATED ) VALUES (
    39, 113, 197,  TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM'),  TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM')
    , 2, NULL, NULL, NULL);
    INSERT INTO TEMPLATE_COMPONENT_NESTING ( TEMPLATE_COMPONENT_NESTING_ID, TEMPLATE_COMPONENT_ID_IN,
    TEMPLATE_COMPONENT_ID_CONTAINS, EFFECTIVE_DATE, DATE_CREATED, USER_CREATED, EXPIRY_DATE,
    DATE_UPDATED, USER_UPDATED ) VALUES (
    22, 117, 197,  TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM'),  TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM')
    , 2, NULL, NULL, NULL);
    INSERT INTO TEMPLATE_COMPONENT_NESTING ( TEMPLATE_COMPONENT_NESTING_ID, TEMPLATE_COMPONENT_ID_IN,
    TEMPLATE_COMPONENT_ID_CONTAINS, EFFECTIVE_DATE, DATE_CREATED, USER_CREATED, EXPIRY_DATE,
    DATE_UPDATED, USER_UPDATED ) VALUES (
    37, 125, 197,  TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM'),  TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM')
    , 2, NULL, NULL, NULL);
    INSERT INTO TEMPLATE_COMPONENT_NESTING ( TEMPLATE_COMPONENT_NESTING_ID, TEMPLATE_COMPONENT_ID_IN,
    TEMPLATE_COMPONENT_ID_CONTAINS, EFFECTIVE_DATE, DATE_CREATED, USER_CREATED, EXPIRY_DATE,
    DATE_UPDATED, USER_UPDATED ) VALUES (
    25, 129, 197,  TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM'),  TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM')
    , 2, NULL, NULL, NULL);
    INSERT INTO TEMPLATE_COMPONENT_NESTING ( TEMPLATE_COMPONENT_NESTING_ID, TEMPLATE_COMPONENT_ID_IN,
    TEMPLATE_COMPONENT_ID_CONTAINS, EFFECTIVE_DATE, DATE_CREATED, USER_CREATED, EXPIRY_DATE,
    DATE_UPDATED, USER_UPDATED ) VALUES (
    35, 133, 197,  TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM'),  TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM')
    , 2, NULL, NULL, NULL);
    INSERT INTO TEMPLATE_COMPONENT_NESTING ( TEMPLATE_COMPONENT_NESTING_ID, TEMPLATE_COMPONENT_ID_IN,
    TEMPLATE_COMPONENT_ID_CONTAINS, EFFECTIVE_DATE, DATE_CREATED, USER_CREATED, EXPIRY_DATE,
    DATE_UPDATED, USER_UPDATED ) VALUES (
    23, 198, 197,  TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM'),  TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM')
    , 2, NULL, NULL, NULL);
    INSERT INTO TEMPLATE_COMPONENT_NESTING ( TEMPLATE_COMPONENT_NESTING_ID, TEMPLATE_COMPONENT_ID_IN,
    TEMPLATE_COMPONENT_ID_CONTAINS, EFFECTIVE_DATE, DATE_CREATED, USER_CREATED, EXPIRY_DATE,
    DATE_UPDATED, USER_UPDATED ) VALUES (
    24, 199, 197,  TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM'),  TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM')
    , 2, NULL, NULL, NULL);
    INSERT INTO TEMPLATE_COMPONENT_NESTING ( TEMPLATE_COMPONENT_NESTING_ID, TEMPLATE_COMPONENT_ID_IN,
    TEMPLATE_COMPONENT_ID_CONTAINS, EFFECTIVE_DATE, DATE_CREATED, USER_CREATED, EXPIRY_DATE,
    DATE_UPDATED, USER_UPDATED ) VALUES (
    41, 238, 197,  TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM'),  TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM')
    , 2, NULL, NULL, NULL);
    INSERT INTO TEMPLATE_COMPONENT_NESTING ( TEMPLATE_COMPONENT_NESTING_ID, TEMPLATE_COMPONENT_ID_IN,
    TEMPLATE_COMPONENT_ID_CONTAINS, EFFECTIVE_DATE, DATE_CREATED, USER_CREATED, EXPIRY_DATE,
    DATE_UPDATED, USER_UPDATED ) VALUES (
    40, 257, 197,  TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM'),  TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM')
    , 2, NULL, NULL, NULL);
    INSERT INTO TEMPLATE_COMPONENT_NESTING ( TEMPLATE_COMPONENT_NESTING_ID, TEMPLATE_COMPONENT_ID_IN,
    TEMPLATE_COMPONENT_ID_CONTAINS, EFFECTIVE_DATE, DATE_CREATED, USER_CREATED, EXPIRY_DATE,
    DATE_UPDATED, USER_UPDATED ) VALUES (
    42, 258, 197,  TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM'),  TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM')
    , 2, NULL, NULL, NULL);
    INSERT INTO TEMPLATE_COMPONENT_NESTING ( TEMPLATE_COMPONENT_NESTING_ID, TEMPLATE_COMPONENT_ID_IN,
    TEMPLATE_COMPONENT_ID_CONTAINS, EFFECTIVE_DATE, DATE_CREATED, USER_CREATED, EXPIRY_DATE,
    DATE_UPDATED, USER_UPDATED ) VALUES (
    285, 259, 197,  TO_Date( '08/29/2007 02:46:51 PM', 'MM/DD/YYYY HH:MI:SS AM'),  TO_Date( '08/29/2007 02:46:51 PM', 'MM/DD/YYYY HH:MI:SS AM')
    , 2, NULL, NULL, NULL);
    INSERT INTO TEMPLATE_COMPONENT_NESTING ( TEMPLATE_COMPONENT_NESTING_ID, TEMPLATE_COMPONENT_ID_IN,
    TEMPLATE_COMPONENT_ID_CONTAINS, EFFECTIVE_DATE, DATE_CREATED, USER_CREATED, EXPIRY_DATE,
    DATE_UPDATED, USER_UPDATED ) VALUES (
    43, 262, 197,  TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM'),  TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM')
    , 2,  TO_Date( '08/29/2007 02:49:32 PM', 'MM/DD/YYYY HH:MI:SS AM'),  TO_Date( '08/29/2007 03:01:24 PM', 'MM/DD/YYYY HH:MI:SS AM')
    , 2);
    INSERT INTO TEMPLATE_COMPONENT_NESTING ( TEMPLATE_COMPONENT_NESTING_ID, TEMPLATE_COMPONENT_ID_IN,
    TEMPLATE_COMPONENT_ID_CONTAINS, EFFECTIVE_DATE, DATE_CREATED, USER_CREATED, EXPIRY_DATE,
    DATE_UPDATED, USER_UPDATED ) VALUES (
    29, 269, 197,  TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM'),  TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM')
    , 2,  TO_Date( '08/29/2007 02:49:32 PM', 'MM/DD/YYYY HH:MI:SS AM'),  TO_Date( '08/29/2007 03:01:11 PM', 'MM/DD/YYYY HH:MI:SS AM')
    , 2);
    INSERT INTO TEMPLATE_COMPONENT_NESTING ( TEMPLATE_COMPONENT_NESTING_ID, TEMPLATE_COMPONENT_ID_IN,
    TEMPLATE_COMPONENT_ID_CONTAINS, EFFECTIVE_DATE, DATE_CREATED, USER_CREATED, EXPIRY_DATE,
    DATE_UPDATED, USER_UPDATED ) VALUES (
    31, 271, 197,  TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM'),  TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM')
    , 2,  TO_Date( '08/29/2007 02:49:32 PM', 'MM/DD/YYYY HH:MI:SS AM'),  TO_Date( '08/29/2007 03:01:11 PM', 'MM/DD/YYYY HH:MI:SS AM')
    , 2);
    INSERT INTO TEMPLATE_COMPONENT_NESTING ( TEMPLATE_COMPONENT_NESTING_ID, TEMPLATE_COMPONENT_ID_IN,
    TEMPLATE_COMPONENT_ID_CONTAINS, EFFECTIVE_DATE, DATE_CREATED, USER_CREATED, EXPIRY_DATE,
    DATE_UPDATED, USER_UPDATED ) VALUES (
    33, 273, 197,  TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM'),  TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM')
    , 2,  TO_Date( '08/29/2007 02:49:32 PM', 'MM/DD/YYYY HH:MI:SS AM'),  TO_Date( '08/29/2007 03:01:11 PM', 'MM/DD/YYYY HH:MI:SS AM')
    , 2);
    INSERT INTO TEMPLATE_COMPONENT_NESTING ( TEMPLATE_COMPONENT_NESTING_ID, TEMPLATE_COMPONENT_ID_IN,
    TEMPLATE_COMPONENT_ID_CONTAINS, EFFECTIVE_DATE, DATE_CREATED, USER_CREATED, EXPIRY_DATE,
    DATE_UPDATED, USER_UPDATED ) VALUES (
    44, 275, 197,  TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM'),  TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM')
    , 2, NULL, NULL, NULL);
    INSERT INTO TEMPLATE_COMPONENT_NESTING ( TEMPLATE_COMPONENT_NESTING_ID, TEMPLATE_COMPONENT_ID_IN,
    TEMPLATE_COMPONENT_ID_CONTAINS, EFFECTIVE_DATE, DATE_CREATED, USER_CREATED, EXPIRY_DATE,
    DATE_UPDATED, USER_UPDATED ) VALUES (
    48, 277, 197,  TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM'),  TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM')
    , 2, NULL, NULL, NULL);
    INSERT INTO TEMPLATE_COMPONENT_NESTING ( TEMPLATE_COMPONENT_NESTING_ID, TEMPLATE_COMPONENT_ID_IN,
    TEMPLATE_COMPONENT_ID_CONTAINS, EFFECTIVE_DATE, DATE_CREATED, USER_CREATED, EXPIRY_DATE,
    DATE_UPDATED, USER_UPDATED ) VALUES (
    52, 279, 197,  TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM'),  TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM')
    , 2, NULL, NULL, NULL);
    INSERT INTO TEMPLATE_COMPONENT_NESTING ( TEMPLATE_COMPONENT_NESTING_ID, TEMPLATE_COMPONENT_ID_IN,
    TEMPLATE_COMPONENT_ID_CONTAINS, EFFECTIVE_DATE, DATE_CREATED, USER_CREATED, EXPIRY_DATE,
    DATE_UPDATED, USER_UPDATED ) VALUES (
    46, 281, 197,  TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM'),  TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM')
    , 2,  TO_Date( '08/29/2007 02:49:32 PM', 'MM/DD/YYYY HH:MI:SS AM'),  TO_Date( '08/29/2007 03:01:39 PM', 'MM/DD/YYYY HH:MI:SS AM')
    , 2);
    INSERT INTO TEMPLATE_COMPONENT_NESTING ( TEMPLATE_COMPONENT_NESTING_ID, TEMPLATE_COMPONENT_ID_IN,
    TEMPLATE_COMPONENT_ID_CONTAINS, EFFECTIVE_DATE, DATE_CREATED, USER_CREATED, EXPIRY_DATE,
    DATE_UPDATED, USER_UPDATED ) VALUES (
    50, 283, 197,  TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM'),  TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM')
    , 2,  TO_Date( '08/29/2007 02:49:32 PM', 'MM/DD/YYYY HH:MI:SS AM'),  TO_Date( '08/29/2007 03:01:51 PM', 'MM/DD/YYYY HH:MI:SS AM')
    , 2);
    INSERT INTO TEMPLATE_COMPONENT_NESTING ( TEMPLATE_COMPONENT_NESTING_ID, TEMPLATE_COMPONENT_ID_IN,
    TEMPLATE_COMPONENT_ID_CONTAINS, EFFECTIVE_DATE, DATE_CREATED, USER_CREATED, EXPIRY_DATE,
    DATE_UPDATED, USER_UPDATED ) VALUES (
    54, 285, 197,  TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM'),  TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM')
    , 2,  TO_Date( '08/29/2007 02:49:32 PM', 'MM/DD/YYYY HH:MI:SS AM'),  TO_Date( '08/29/2007 03:02:01 PM', 'MM/DD/YYYY HH:MI:SS AM')
    , 2);
    INSERT INTO TEMPLATE_COMPONENT_NESTING ( TEMPLATE_COMPONENT_NESTING_ID, TEMPLATE_COMPONENT_ID_IN,
    TEMPLATE_COMPONENT_ID_CONTAINS, EFFECTIVE_DATE, DATE_CREATED, USER_CREATED, EXPIRY_DATE,
    DATE_UPDATED, USER_UPDATED ) VALUES (
    47, 287, 197,  TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM'),  TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM')
    , 2,  TO_Date( '08/29/2007 02:49:32 PM', 'MM/DD/YYYY HH:MI:SS AM'),  TO_Date( '08/29/2007 03:01:39 PM', 'MM/DD/YYYY HH:MI:SS AM')
    , 2);
    INSERT INTO TEMPLATE_COMPONENT_NESTING ( TEMPLATE_COMPONENT_NESTING_ID, TEMPLATE_COMPONENT_ID_IN,
    TEMPLATE_COMPONENT_ID_CONTAINS, EFFECTIVE_DATE, DATE_CREATED, USER_CREATED, EXPIRY_DATE,
    DATE_UPDATED, USER_UPDATED ) VALUES (
    51, 289, 197,  TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM'),  TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM')
    , 2,  TO_Date( '08/29/2007 02:49:32 PM', 'MM/DD/YYYY HH:MI:SS AM'),  TO_Date( '08/29/2007 03:01:51 PM', 'MM/DD/YYYY HH:MI:SS AM')
    , 2);
    INSERT INTO TEMPLATE_COMPONENT_NESTING ( TEMPLATE_COMPONENT_NESTING_ID, TEMPLATE_COMPONENT_ID_IN,
    TEMPLATE_COMPONENT_ID_CONTAINS, EFFECTIVE_DATE, DATE_CREATED, USER_CREATED, EXPIRY_DATE,
    DATE_UPDATED, USER_UPDATED ) VALUES (
    55, 291, 197,  TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM'),  TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM')
    , 2,  TO_Date( '08/29/2007 02:49:32 PM', 'MM/DD/YYYY HH:MI:SS AM'),  TO_Date( '08/29/2007 03:02:01 PM', 'MM/DD/YYYY HH:MI:SS AM')
    , 2);
    INSERT INTO TEMPLATE_COMPONENT_NESTING ( TEMPLATE_COMPONENT_NESTING_ID, TEMPLATE_COMPONENT_ID_IN,
    TEMPLATE_COMPONENT_ID_CONTAINS, EFFECTIVE_DATE, DATE_CREATED, USER_CREATED, EXPIRY_DATE,
    DATE_UPDATED, USER_UPDATED ) VALUES (
    45, 293, 197,  TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM'),  TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM')
    , 2, NULL, NULL, NULL);
    INSERT INTO TEMPLATE_COMPONENT_NESTING ( TEMPLATE_COMPONENT_NESTING_ID, TEMPLATE_COMPONENT_ID_IN,
    TEMPLATE_COMPONENT_ID_CONTAINS, EFFECTIVE_DATE, DATE_CREATED, USER_CREATED, EXPIRY_DATE,
    DATE_UPDATED, USER_UPDATED ) VALUES (
    49, 295, 197,  TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM'),  TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM')
    , 2, NULL, NULL, NULL);
    INSERT INTO TEMPLATE_COMPONENT_NESTING ( TEMPLATE_COMPONENT_NESTING_ID, TEMPLATE_COMPONENT_ID_IN,
    TEMPLATE_COMPONENT_ID_CONTAINS, EFFECTIVE_DATE, DATE_CREATED, USER_CREATED, EXPIRY_DATE,
    DATE_UPDATED, USER_UPDATED ) VALUES (
    53, 297, 197,  TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM'),  TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM')
    , 2, NULL, NULL, NULL);
    INSERT INTO TEMPLATE_COMPONENT_NESTING ( TEMPLATE_COMPONENT_NESTING_ID, TEMPLATE_COMPONENT_ID_IN,
    TEMPLATE_COMPONENT_ID_CONTAINS, EFFECTIVE_DATE, DATE_CREATED, USER_CREATED, EXPIRY_DATE,
    DATE_UPDATED, USER_UPDATED ) VALUES (
    56, 299, 197,  TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM'),  TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM')
    , 2, NULL, NULL, NULL);
    INSERT INTO TEMPLATE_COMPONENT_NESTING ( TEMPLATE_COMPONENT_NESTING_ID, TEMPLATE_COMPONENT_ID_IN,
    TEMPLATE_COMPONENT_ID_CONTAINS, EFFECTIVE_DATE, DATE_CREATED, USER_CREATED, EXPIRY_DATE,
    DATE_UPDATED, USER_UPDATED ) VALUES (
    57, 301, 197,  TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM'),  TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM')
    , 2, NULL, NULL, NULL);
    INSERT INTO TEMPLATE_COMPONENT_NESTING ( TEMPLATE_COMPONENT_NESTING_ID, TEMPLATE_COMPONENT_ID_IN,
    TEMPLATE_COMPONENT_ID_CONTAINS, EFFECTIVE_DATE, DATE_CREATED, USER_CREATED, EXPIRY_DATE,
    DATE_UPDATED, USER_UPDATED ) VALUES (
    58, 303, 197,  TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM'),  TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM')
    , 2, NULL, NULL, NULL);
    INSERT INTO TEMPLATE_COMPONENT_NESTING ( TEMPLATE_COMPONENT_NESTING_ID, TEMPLATE_COMPONENT_ID_IN,
    TEMPLATE_COMPONENT_ID_CONTAINS, EFFECTIVE_DATE, DATE_CREATED, USER_CREATED, EXPIRY_DATE,
    DATE_UPDATED, USER_UPDATED ) VALUES (
    59, 305, 197,  TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM'),  TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM')
    , 2,  TO_Date( '08/29/2007 02:49:32 PM', 'MM/DD/YYYY HH:MI:SS AM'),  TO_Date( '08/29/2007 03:02:14 PM', 'MM/DD/YYYY HH:MI:SS AM')
    , 2);
    INSERT INTO TEMPLATE_COMPONENT_NESTING ( TEMPLATE_COMPONENT_NESTING_ID, TEMPLATE_COMPONENT_ID_IN,
    TEMPLATE_COMPONENT_ID_CONTAINS, EFFECTIVE_DATE, DATE_CREATED, USER_CREATED, EXPIRY_DATE,
    DATE_UPDATED, USER_UPDATED ) VALUES (
    60, 307, 197,  TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM'),  TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM')
    , 2,  TO_Date( '08/29/2007 02:49:32 PM', 'MM/DD/YYYY HH:MI:SS AM'),  TO_Date( '08/29/2007 03:02:14 PM', 'MM/DD/YYYY HH:MI:SS AM')
    , 2);
    INSERT INTO TEMPLATE_COMPONENT_NESTING ( TEMPLATE_COMPONENT_NESTING_ID, TEMPLATE_COMPONENT_ID_IN,
    TEMPLATE_COMPONENT_ID_CONTAINS, EFFECTIVE_DATE, DATE_CREATED, USER_CREATED, EXPIRY_DATE,
    DATE_UPDATED, USER_UPDATED ) VALUES (
    28, 315, 197,  TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM'),  TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM')
    , 2,  TO_Date( '08/29/2007 02:49:32 PM', 'MM/DD/YYYY HH:MI:SS AM'),  TO_Date( '08/29/2007 03:01:11 PM', 'MM/DD/YYYY HH:MI:SS AM')
    , 2);
    INSERT INTO TEMPLATE_COMPONENT_NESTING ( TEMPLATE_COMPONENT_NESTING_ID, TEMPLATE_COMPONENT_ID_IN,
    TEMPLATE_COMPONENT_ID_CONTAINS, EFFECTIVE_DATE, DATE_CREATED, USER_CREATED, EXPIRY_DATE,
    DATE_UPDATED, USER_UPDATED ) VALUES (
    30, 317, 197,  TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM'),  TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM')
    , 2,  TO_Date( '08/29/2007 02:49:32 PM', 'MM/DD/YYYY HH:MI:SS AM'),  TO_Date( '08/29/2007 03:01:11 PM', 'MM/DD/YYYY HH:MI:SS AM')
    , 2);
    INSERT INTO TEMPLATE_COMPONENT_NESTING ( TEMPLATE_COMPONENT_NESTING_ID, TEMPLATE_COMPONENT_ID_IN,
    TEMPLATE_COMPONENT_ID_CONTAINS, EFFECTIVE_DATE, DATE_CREATED, USER_CREATED, EXPIRY_DATE,
    DATE_UPDATED, USER_UPDATED ) VALUES (
    32, 319, 197,  TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM'),  TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM')
    , 2,  TO_Date( '08/29/2007 02:49:32 PM', 'MM/DD/YYYY HH:MI:SS AM'),  TO_Date( '08/29/2007 03:01:11 PM', 'MM/DD/YYYY HH:MI:SS AM')
    , 2);
    INSERT INTO TEMPLATE_COMPONENT_NESTING ( TEMPLATE_COMPONENT_NESTING_ID, TEMPLATE_COMPONENT_ID_IN,
    TEMPLATE_COMPONENT_ID_CONTAINS, EFFECTIVE_DATE, DATE_CREATED, USER_CREATED, EXPIRY_DATE,
    DATE_UPDATED, USER_UPDATED ) VALUES (
    64, 51, 198,  TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM'),  TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM')
    , 2, NULL, NULL, NULL);
    INSERT INTO TEMPLATE_COMPONENT_NESTING ( TEMPLATE_COMPONENT_NESTING_ID, TEMPLATE_COMPONENT_ID_IN,
    TEMPLATE_COMPONENT_ID_CONTAINS, EFFECTIVE_DATE, DATE_CREATED, USER_CREATED, EXPIRY_DATE,
    DATE_UPDATED, USER_UPDATED ) VALUES (
    61, 269, 198,  TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM'),  TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM')
    , 2,  TO_Date( '08/29/2007 02:49:32 PM', 'MM/DD/YYYY HH:MI:SS AM'),  TO_Date( '08/29/2007 03:02:14 PM', 'MM/DD/YYYY HH:MI:SS AM')
    , 2);
    INSERT INTO TEMPLATE_COMPONENT_NESTING ( TEMPLATE_COMPONENT_NESTING_ID, TEMPLATE_COMPONENT_ID_IN,
    TEMPLATE_COMPONENT_ID_CONTAINS, EFFECTIVE_DATE, DATE_CREATED, USER_CREATED, EXPIRY_DATE,
    DATE_UPDATED, USER_UPDATED ) VALUES (
    62, 271, 198,  TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM'),  TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM')
    , 2,  TO_Date( '08/29/2007 02:49:32 PM', 'MM/DD/YYYY HH:MI:SS AM'),  TO_Date( '08/29/2007 03:02:14 PM', 'MM/DD/YYYY HH:MI:SS AM')
    , 2);
    INSERT INTO TEMPLATE_COMPONENT_NESTING ( TEMPLATE_COMPONENT_NESTING_ID, TEMPLATE_COMPONENT_ID_IN,
    TEMPLATE_COMPONENT_ID_CONTAINS, EFFECTIVE_DATE, DATE_CREATED, USER_CREATED, EXPIRY_DATE,
    DATE_UPDATED, USER_UPDATED ) VALUES (
    63, 273, 198,  TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM'),  TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM')
    , 2,  TO_Date( '08/29/2007 02:49:32 PM', 'MM/DD/YYYY HH:MI:SS AM'),  TO_Date( '08/29/2007 03:02:14 PM', 'MM/DD/YYYY HH:MI:SS AM')
    , 2);
    INSERT INTO TEMPLATE_COMPONENT_NESTING ( TEMPLATE_COMPONENT_NESTING_ID, TEMPLATE_COMPONENT_ID_IN,
    TEMPLATE_COMPONENT_ID_CONTAINS, EFFECTIVE_DATE, DATE_CREATED, USER_CREATED, EXPIRY_DATE,
    DATE_UPDATED, USER_UPDATED ) VALUES (
    65, 59, 199,  TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM'),  TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM')
    , 2, NULL, NULL, NULL);
    COMMIT;Now, is there a way to display the tree for component_id 197?
    I want the PARENT (197) to be displayed first then all the children (NODES). I'm using this query to populate the tree in my form, it works but the PARENT (197) is not displayed:
    SELECT  1 NODE_STATE, LEVEL NODE_DEPTH, nvl(tc2.template_component_id,tc.template_component_id)||':'||nvl(tc2.TEMPLATE_COMPONENT_NAME_EN,tc.TEMPLATE_COMPONENT_NAME_EN) CHILD_NODE_VALUE,
    NULL NODE_ICON, tc.template_component_id||':'||tc.TEMPLATE_COMPONENT_NAME_EN PARENT_NODE_VALUE
    FROM template_component_nesting tcn, template_component tc, template_component tc2
    where tc.TEMPLATE_COMPONENT_ID = tcn.TEMPLATE_COMPONENT_ID_CONTAINS
    and   tc2.TEMPLATE_COMPONENT_ID(+) = tcn.TEMPLATE_COMPONENT_ID_IN
    START WITH tcn.TEMPLATE_COMPONENT_ID_CONTAINS = 197
    CONNECT BY PRIOR tcn.TEMPLATE_COMPONENT_ID_IN = tcn.TEMPLATE_COMPONENT_ID_CONTAINSPlease Help,
    Marc.

  • FORMS FTREE restrictions ?

    (Forms 9i )
    hi, I use a dynamic record group to populate a tree.
    In one node of my tree, i use larges strings (over 30 chars).All is ok on screen these strings display correctly. But any times i try to select this node, the system.tree_node_selected value is always 'FALSE' ( unselected ). So i suppose, that it exists a maximum length of 30 chars for labels using an item Tree.
    Question : How is it possible to over the limit of 30 chars : I know it's possible to change forms limitation for variables names and other forms id .. But i don't know how !!!!

    Hi,
    didn't find anything about this issue, but what about using the WHEN-TREE-NODE-SELECTED trigger
    DECLARE
    htree ITEM;
    node_label VARCHAR2(200);
    parent_node NODE;
    BEGIN
    -- Find the tree itself.
    htree := Find_Item('tree_block.htree3');
    node_label:= Ftree.Get_Tree_Node_Property(htree, :SYSTEM.TRIGGER_NODE, Ftree.NODE_LABEL);
    END;
    Possible properties to query for are:
    NODE_STATE
    =============
    Returns the state of the hierarchical tree node. This is either EXPANDED_NODE, COLLAPSED_NODE, or LEAF_NODE.
    NODE_DEPTH
    =============
    Returns the nesting level of the hierarchical tree node.
    NODE_LABEL
    ==============
    Returns the label
    NODE_ICON
    ==============
    Returns the icon name
    NODE_VALUE
    ==============
    Returns the value of the hierarchical tree node.
    Frank

  • Hierarchical Tree cannot populate

    Hi all senior and expert,
    Im new in oracle forms 10g and now im trying to develop system using hierarchical tree,but when im run for testing my tree cannot populate..Please help me...
    My program Units:
    PROCEDURE run_tree IS
    BEGIN
    DECLARE
    htree ITEM;
    v_ignore NUMBER;
    rg_emps RECORDGROUP;
    a varchar2(300):=' ';
    startmenu varchar2(100):=' ';
    node FTREE.NODE;
    state varchar2(100):=' ';
    cursor aa is
    select distinct menu_name from menu_master_user
    where nvl(FORM_NAME,' ') = ' '
    and user_key = :global.user_key
    and nvl(menu_name,' ') <> ' '
    and seq <> 0;
    BEGIN
    -- Find the tree itself.
    htree := Find_Item('tree4');
    -- Check for the existence of the record group.
    rg_emps := Find_Group('menu');
    IF NOT Id_Null(rg_emps) THEN
    DELETE_GROUP(rg_emps);
    END IF;
    BEGIN
    select distinct menu_name into startmenu from menu_master_user
    where user_key = :global.user_key
    and seq=0;
    EXCEPTION
         WHEN NO_DATA_FOUND THEN
         MESSAGE ('This user has no accessible item setup in the user access module,Please report to CICT for accessible...');
         MESSAGE ('This user has no accessible item setup in the user access module,Please report to CICT for accessible...');
         raise form_trigger_failure;
    end ;
    rg_emps := Create_Group_From_Query('menu',
    'select 1,level,menu_name,:global.drive||icon_file,form_name
    from menu_master_user where user_key='''||:global.user_key||
    ''' connect by prior menu_name=root_menu and user_key='''||:global.user_key||
    ''' and acc=''Y''
    start with menu_name='''||startmenu||''' and user_key='''||:global.user_key||
    ''' order by seq');
    a:='select 1,level,menu_name,:global.drive||icon_file,form_name
    from menu_master_user where user_key='''||:global.user_key||
    ''' connect by prior menu_name=root_menu and user_key='''||:global.user_key||
    ''' and acc=''Y'' start with menu_name='''||startmenu||''' and user_key='''||:global.user_key||
    ''' order by seq';
    -- Populate the record group with data.
    v_ignore := Populate_Group(rg_emps);
    -- Transfer the data from the record group to the hierarchical
    -- tree and cause it to display.
    Ftree.Set_Tree_Property(htree, Ftree.RECORD_GROUP, rg_emps);
    -- Find the tree itself.
    htree := Find_Item('tree4');
    -- Find the root node of the tree.
    --node  := Ftree.Find_Tree_Node(htree,'Setup');
    -- Loop through all nodes and expand each one if it is collapsed.
    for aaa in aa loop
         node := Ftree.Find_Tree_Node(htree,aaa.menu_name);
    IF NOT Ftree.ID_NULL(node) then
    state := Ftree.Get_Tree_Node_Property(htree, node, Ftree.NODE_STATE);
    IF state = Ftree.EXPANDED_NODE THEN
    Ftree.Set_Tree_Node_Property(htree, node, Ftree.NODE_STATE, Ftree.COLLAPSED_NODE);
    END IF;
    end if;
    END LOOP;
    END;
    END;
    Any solutions or my code is wrong?
    Edited by: 995252 on Mar 21, 2013 12:17 AM

    Welcome to the Oracle Forums. Please take a few minutes to review the following:
    <ul>
    <li>Oracle Forums FAQ
    <li>Before posting on this forum please read
    <li>10 Commandments for the OTN Forums Member
    <li>How to ask questions the smart way
    </ul>
    Following these simple guidelines will ensure you have a positive experience in any forum; not just this one! ;-)
    Lets start with some of the basics. What is your Forms version, Client OS version; if web deployed, your browser and Java versions and any error messages you might be receiving.
    Craig...

Maybe you are looking for