Finding proper help on Hierarchical Trees

Have spent a couple of hours trying to navigate the sprawling website of oracle.com with the purpose finding and then downloading the appropriate help file. I downloaded
Oracle9i Developer Suite Release 2 Documentation Library
from
http://www.oracle.com/technology/documentation/ids.html
Its about 130Mb, installed it, but could i find comprehensive documentation on using Forms 9i (in particular Hierarchical Trees) no, but everything else it seemed yes. The original doc that pre-installed with the 9i DS 'online help' is reasonably helpful but like some others on this forum I could not find proper help on how to use Hierarchical Trees all i could find was few descriptive portions of text and believe me i have looked.
Others have said they found examples of Hierarchical Trees usage i can only assume they are using 10g. So this is a desperate plea to you. Can you point me to an online resource that deals with Hierarchical Trees in Forms 9i (intro, usage, examples, etc). If you can i would deeply appreciate it.
Mr Frustrated :)

Hi,
You have a lot of sample With the Forms Help.
If you search in the index with "htree."
The command hierarchical tree complete list appear.
L.

Similar Messages

  • Searching Hierarchical tree using Find tree node

    In hierarchical tree using find_tree_node when i search the value it is taking the search value as a string and returns the node that of previous node value. for example
    Suppose when i am searching for node value 18 ,but it takes the some other node value of (1883).
    The tree structure is
    1
    2
    1883
    3
    18
    The code used is
    p_node := ftree.get_tree_node_property ('tree_block.tree',:system.trigger_node,ftree.node_value);
    current_node := Ftree.Find_Tree_Node(htree,
         p_node,
         Ftree.FIND_NEXT,
         Ftree.NODE_VALUE,
         Ftree.ROOT_NODE,
              Ftree.ROOT_NODE);

    Hi!
    You can use your restricting subquery in a start with clause. Something like
    start with node_parent is null and some_field in (select ...)
    Or you can eliminate the join and use where clause.
    Hope this helps.
    Sergey.

  • Problem when selecting child node in Hierarchical Tree

    I have a hierarchical tree on a form populated thru a table query(form1). When I click on a child node, it opens form2 which contains a tab canvas. After closing forms, I return to the form1(containing Tree). At this point If I want to click on the same child node, I should be able to open form2 again. This doesn't happen.
    I have the following code in my When-Tree-node_selected trigger:
    Declare
    htree item;
    vnode_label varchar2(50);
    node_clicked FTREE.NODE;
    vnode_value number;
    vnode_depth number;
    v_type number;
    v_value varchar2(100);
    v_form_name varchar2(100);
    v_alert_return number;
    begin
    -- Find the tree itself.
    htree := FIND_ITEM('tree_block.tree');
    node_clicked := :SYSTEM.TRIGGER_NODE;
    vnode_value := FTREE.NODE_label;
    -- Find the value of the node clicked on.
    vnode_label := FTREE.GET_TREE_NODE_PROPERTY (htree,:SYSTEM.TRIGGER_NODE,FTREE.NODE_label);
    vnode_depth := to_number(ftree.get_tree_node_property(htree,:SYSTEM.TRIGGER_NODE,ftree.Node_depth));
    --Open form for node selected on tree and/or specific tab page
    if vnode_depth <> 1 then
    if :system.trigger_node_selected = 'TRUE' then CASE vnode_label
    WHEN 'Personal' then
    v_form_name :='HR_PERSONAL_INFO_UPDATE';
    WHEN 'Citizenship' then
    v_form_name :='HR_PERSONAL_INFO_UPDATE';
    WHEN 'Emergency Contact' then
    v_form_name :='HR_PERSONAL_INFO_UPDATE';
    if id_null(Find_form(v_form_name)) then
    open_form(:global.application_path || v_form_name,ACTIVATE,NO_SESSION,SHARE_LIBRARY_DATA);
    else
    go_form(v_form_name);
    end if;
    END IF;
    elsif vnode_depth = 1 then
    if :system.trigger_node_SELECTED = 'TRUE' then CASE vnode_label
    WHEN 'EMPLOYEE INFO' then
    v_form_name :='HR_PERSONAL_INFO_UPDATE';
    vnode_label := 'Personal';
    WHEN 'REPORTS' then
    v_form_name :='HR_REPORTS';
    vnode_label := '';
    if id_null(Find_form(v_form_name)) then
    v_form_name := :global.application_path || v_form_name;
    open_form(v_form_name,ACTIVATE,NO_SESSION,SHARE_LIBRARY_DATA);--,p_list);
    else
    go_form(v_form_name);
    end if;
    end if;
    end;
    Can anyone please help me? I don't want the user to double click. They should only click once.
    Thanks,
    Mercedes

    Right clicking does not change the current selection. The tree has no way to report what node was right clicked. Only work around is to left click the node you wish then right click it.
    --pat                                                                                                                                                                                                                                                                                                                                                                                                       

  • Hierarchical Tree and keyboard navigation

    Does anyone know how to use Hierarchical Trees with keyboards, or to disable keyboard actions? (forms 9.0.4)
    My form has a tree which does processing in a When-Tree-Node-Selected trigger to populate some blocks depending on the selected node. If the user selects nodes with the mouse then all is fine, but if they move between nodes with the keyboard then the processing for each selected node is only run the next time a node is selected with the mouse. This means the data for each node will flash up in the blocks for a split second when the mouse is next used.
    I've tried Key-Up/Key-Down triggers to prevent keyboard navigation, but they don't fire. Setting Keyboard Navigable to false doesn't fix it either.
    Using the When-Tree-Node-Activated trigger doesn't help. The online help says this trigger fires when the user presses Enter or double-clicks a node. I find that each node for which Enter was pressed is processed only when the user next double-clicks a node, and the node they double-click is not processed.
    Tree Query:select 1, level, ename, null, null
    from scott.emp
    connect by prior empno = mgr
    start with mgr is NULLWhen-New-Form-Instance:ftree.populate_tree('B.T');When-Tree-Node-Selected (1st and 4th lines commented out when changed to WTNA trigger):if :system.trigger_node_selected = 'TRUE' then
      message(ftree.get_tree_node_property(
                'B.T',:system.trigger_node,ftree.node_label));
      pause;
    end if;

    Hi James,
    We have got the same problem, after searching Metalink I found that this is a known bug. See Metalink Bug no 4565623 (base bug 4509399).
    Sjoerd

  • 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...

  • Call forms and reports from a hierarchical tree node.

    Hello,
    I am new in pl/sql programming and I have some dificulties. I have created a hierarchical tree, in order to use it as a menu in an application that I am trying to develope. The problem is that I do not know how can I make the last nodes to be either a form or a report and when somebody double clicks on these nodes the form or the report will run. What is more, should I use the when-tree-node-selected trigger or the when-tree-node-activated?
    Thank you in advance,
    Vag

    Hi ,
    In Oracle Forms , a hierarchical tree is developed through the use of a sql statement and column which defines the order of leaves...
    Visit the on-line help of Forms10g to find out the details , and the triggers as well...
    Something else...post this question to Oracle Forms to get more detailed answer...
    Regards,
    Simon

  • Scroll Event on a hierarchical tree

    Is it possible to intercept a scroll event on a hierarchical
    tree item, and how much the tree has been scrolled?
    many thanks in advance,
    Michele Pantaleo
    null

    Hello,
    I was able to reproduce your issue fast.I was able, also to find a solution to your issue, solution that came after performing several tests.
    What i found out:
    --the expansion begins from root and ends with the last leaf.That is why the scroll bar stays at the bottom.
    --if you click on leaf node and then click expansion(which after the while loop has the following code:
    node := Ftree.Find_Tree_Node(htree, '');
    Ftree.Set_Tree_Selection(htree, node, Ftree.SELECT_ON);)
    it will work to achieve what you want.
    Here is the full procedure for the expanded tree that lets the scroll bar at the top:
    PROCEDURE explose_tree IS
    node ftree.node;
    htree ITEM;
    state varchar2(30);
    state1 varchar2(30);
    BEGIN
    -- Search the tree identifiant --
    htree := Find_Item('block2.tree4');
    -- Search the root --
         node := Ftree.Find_Tree_Node(htree, '');
         --Ftree.Set_Tree_Selection(htree, node, Ftree.SELECT_ON);
    -- 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);
    elsIF state = Ftree.LEAF_NODE then --this is the key that help to solve your problem
         Ftree.Set_Tree_Selection(htree, node, Ftree.SELECT_ON);
    END IF;
    node := Ftree.Find_Tree_Node(htree, '', ftree.find_NEXT,Ftree.NODE_LABEL,'', node);
    END LOOP;
    -- Now go the root --
         node := Ftree.Find_Tree_Node(htree, '');
    --you need to select the root, otherwise the scroll bar will be at the bottom     
    Ftree.Set_Tree_Selection(htree, node, Ftree.SELECT_ON);
    end;
    Regards,
    Alex

  • About hierarchical trees

    Dear Oracle forum,
    I would be greatful if anyone could help me with this problem:
    For the first time i installed forms6i and used the HIERAARCHICAL item called htree3
    and In NEW_FORMS_INSTANCE include the code below
    DECLARE
    htree ITEM;
    v_ignore NUMBER;
    rg_emps RECORDGROUP;
    BEGIN
    /* Window controls */
    set_window_property(forms_mdi_window,window_state,maximize);
    set_window_property(forms_mdi_window,title,' Oraganization');
    -- Find the tree itself.
    htree := Find_Item('tree_block.htree3');
    -- Check for the existence of the record group.
    rg_emps := Find_Group('emps');
    IF NOT Id_Null(rg_emps) THEN
    DELETE_GROUP(rg_emps);
    END IF;
    -- Create the record group.
    rg_emps := Create_Group_From_Query('rg_emps',
    'select 1, level, ename, NULL, to_char(empno) ' &#0124; &#0124;
    'from emp ' &#0124; &#0124;
    'connect by prior empno = mgr ' &#0124; &#0124;
    'start with job = ''PRESIDENT''');
    -- 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);
    END;
    code work properly, but when I click anywhere in the tree, I am getting following internal error.(Anyway Visual c++ is not installed in my pc.
    Error what am i getting is
    - Assertion failed
    program: E:\forms6i\bin\FDBG60.exe
    file e:\f994w32\src\if\iff\ifztma.c
    line 607
    Please help me
    Thanks
    Chandana
    null

    Now my requirement is that before populating tree
    item i want to clean up the tree item,if any other
    soln. plz sugg.
    POPULATE_TREE Built-in: Description
    Clears out any data already in the hierarchical tree,
    and obtains the data set specified by the RecordGroup
    or QueryText properties.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Colourful Hierarchical Tree

    Hi,
    This is the first thread am posting. I searched ur discussions for "How to show the hierarchical tree in forms 10g with different colours and in different fonts weigth for different nodes". But i found nothing.
    Hopefully looking forward for your replies.

    You should use a less specific search string if you don't find anything first time but in this case it won't have helped you.
    You can set an icon for each node in the tree, which might be an acceptable alternative to writing lots of java.
    The icon can be set as a property
    http://www.oracle.com/webapps/online-help/forms/10g/topics/f1_help/builts/set_tree_node_property_built_in.html?tp=true
    or it can be built into the select statement that creates the tree (if your tree is query-driven).

  • Compiling error in Hierarchical Tree !!!!! Urgent attention!!!

    I have made the Hierarchical Tree as described in the resuable demo help as is but when ever i try to compile the form i gets error on the navigator."anything!". I guess the forms are not able to find the navigator package. I have attached the navigator.pll. I think there is nothing mroe to attach to a form
    Till now i have searched every documentation on the net and the files ships wiht DEV 6.0.5.2. But not ablet o find any thing regarding the installation of navigator package :( Is there any one can tell me how u remover the compiling error from the form which is dur to the navigator package!!!!
    null

    If you are using DEV 6.0.5.2 you should use the FTREE built-in package. Look under the Built-In package node. The Navigator.pll was a demo used in Forms4.5 before there was a hierarchial tree item type.
    Thanks,
    Candace Stover
    Forms Product Management

  • Hierarchical tree and interacting with data block

    I have a hierarchical tree that is used to pick records that are shown in another data block. I have a list item in the data block that changes the arrangement of nodes in the hierarchy. My problem is that after the update, I select the node, but the wrong data shows up in the other data block (eg. node x is selected, x becomes a child of y, the data for y still appears in the data block even though node x is selected in the tree). There seems to be something wrong with my triggers, but I can't figure out what.
    Here are the triggers that I am using.
    In the tree block, tree item:
    -WHEN-TREE-NODE-SELECTED
    set_block_property(v_data_block, default_where, 'global_id = ' &#0124; &#0124; v_org);
    go_block(v_data_block);
    execute_query;
    In the data block, list item
    -WHEN-LIST-CHANGED:
    -- find the tree node and select it
    node := Ftree.Find_Tree_Node(...)
    Ftree.set_tree_selection(v_tree,node,Ftree.SELECT_ON);
    -- update the data block to show data from the selected node
    set_block_property('GREENPAGES_DIR', default_where, 'global_id = ' &#0124; &#0124; :greenpages_dir.global_id);
    go_block('GREENPAGES_DIR');
    execute_query;
    Thanks for your help.

    hi
    i didn't try doing it.. i assume the the reasons can be:
    1.check the value of the variable 'v_org' because 'w-t-n-s' trigger fires twice..
    2. 'w-t-n-s' trigger is not firing eventhough u select it through ur code in the list item trigger.. if not firing, use execute_trigger('w-t-n-s') and remove the last set of code (update section) from the list item trigger..(assuming 'GREENPAGES_DIR' = v_data_block)
    hope this helps u
    ajith

  • Need Simple Hierarchical Tree Example

    Can someone e-mail me a simple, working hierarchical tree example, along with what tables i need to insert into the database? Like the car/airplane example, or employee/department example.
    I tried following the instructions in the Introduction to Hierarchical Tree example from metalink, but the tree still does not display on my form, even though the data query is valid. Nothing happens when i click the button.
    I need this pretty urgently, so any help will be appreciated! Thanks! My e-mail is [email protected]

    Thats what i don't understand, you see. There is no query error. I know when there is, because when i type the query wrongly, the error prompts. However, when the query is correct, nothing happens. When i go through in debug mode, it does enter the statement to populate the tree. This is my record group/data query(i tried putting it in both) :
    SELECT initial_level
    ,node_depth
    ,node_label
    ,node_icon
    ,node_data
    FROM MyTreeData
    START WITH node_parent IS NULL
    CONNECT BY node_parent = prior node_data
    This is my populate tree code :
    DECLARE
         htree ITEM;
         top_node FTREE.NODE;
         find_node FTREE.NODE;
    BEGIN
         -- Find the tree itself.
         htree := FIND_ITEM('mytreeblock.mytree');
         -- Populate the tree with data.
         ftree.Populate_Tree(htree);
    END;
    This is the format of data in the database :
    initial_level node_depth node_label node_icon node_data node_parent
    -1 2 Car Null CAR TRANSPORT
    -1 2 Plane Null PLANE TRANSPORT
    0 2 Bike NULL BIKE TRANSPORT
    1 1 Transport NULL TRANSPORT
    0 3 Honda NULL HONDA CAR
    0 3 Boeing 747 NULL 747-400 PLANE
    0 3 Mazda NULL MAZDA CAR
    I hope its not a problem with my Forms program, so i'm hoping that someone can e-mail me a working one to see. I've been reading up on this for a few days already, but i do not know why its not working.
    Thanks for your help again, Kevin! I really appreciate it.

  • Can i have a check box in the hierarchical tree in the icons place, urgent!!! please

    Hi,
    I'am working on the Hierarchical Tree structure which should have three levels, I need to have a check box in the place of the icon & if i select a node that node & the child nodes should get selected.
    After this when i say move selected ( i'am trying to use picklist class also) the entire checked tree has to move to the display area to the right & should display as tree structure & after this if i save then the checked records which are moved to another text area should get saved!!
    How to achieve this? I have the tree structure ready but the check box part is the worrying factor! & then moving the checked records to the right using picklist class is the second problem & finally saving records to database.
    Any help in this regard will be deeply appreciated:)
    If check box is not possible then i will have to look at other methods, will the tree structure allow checkboxes????
    Thanks
    Mahesh

    No the tree will not allow checkboxes

  • 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

  • URGENT *** Hierarchical Tree in Forms 9i *** URGENT

    Hello everybody,
    for my company I need to build a hierarchical tree item, that will display static data over three levels. Let's say: departments, employees and employee projects.
    How do I fill the Item?
    When do I fill the Item?
    Where do I fill the Item?
    What are the elements of the SQL query, that fills the hierarchical tree?
    Any help will be appreciated
    [email protected]

    Note:210663.1 helped a bit.
    I used the database column as the third element in the select part and put NULL as the fifth element. Then it worked.
    Now I am looking for the way to add the employees, when the user selects / activates a department node.

Maybe you are looking for

  • 4.3.2 update messed up my ipod touch... same issues peple complained about with 4.3.1

    So the last update 4.3.1 that everyone complained about worked fine with my ipod touch... it was working great actually. Then I did the update for 4.3.2 and crash and burn... now I am having all the issues that people were complaining about with 4.3.

  • Share Option in Photos 1.0 Not Working with Outlook

    Hello, I have recently done the OS X update to 10.10.3 (14D136). This brought in Photos Version 1.0 (209.52.0), which appears to have replaced my older iPhotos program apparently. I won't get into my thoughts on the new version, (which is not great)

  • How to open Zip Files in N900 ?

    Hi Guys, I wanted to know how to open Zip files in N900 ? is there a App available for it or what ? Thanks

  • Gettinfg error in RFC to Web Service scenario

    hi friends, I am getting the following error while configuring RFC to Web Service scenario. I have used the ws :http://webservices.imacination.com/distance/Distance.jwsPlease help me out. <!--  Inbound Message   --> - <SAP:Error xmlns:SAP="http://sap

  • Error X86 on I Tunes when doing update

    Tried doing I Tunes Update and got error message X86, could not load library.  Uninstalled and tryied reistalling and got same info.  Any resolution?