Using hierarchical tree in developer 10g

Hi all
how can we use hierarchical tree in developer 10g any white paper will be helpfull
thanks

Hello
<p>Here is a first sample<br>You could probably find others on this forum or by Googling<p>
Francois

Similar Messages

  • How to call forms using Hierarchical Tree in Forms 10g?

    I know how to call forms from menu that attached to a top form.
    I would like to call forms using Hierarchical Tree. Does any one know how where I can find some instructions on using Hierarcical Tree to call other forms? Any discussion is welcome. Thanks.

    Thanks to Francois.
    The exampe with clear instructions and I can build tree that calls forms now.
    I add a OPEN_FORM statement in WHEN-TREE-NODE-ACTIVATED trigger
    Declare
         LN$I Pls_integer ;
    Begin     
    :Ctrl.Node_Activated := Ftree.Get_Tree_Node_Property('BL_TREE.MENU', :SYSTEM.TRIGGER_NODE, Ftree.NODE_VALUE) ;
    If :Ctrl.Node_Activated IS NOT NULL Then
         Set_Alert_Property( 'AL_CALL_FORM', ALERT_MESSAGE_TEXT, 'Calling module : ' || :Ctrl.Node_Activated ) ;
         LN$I := Show_Alert( 'AL_CALL_FORM' ) ;
         open_form(:Ctrl.Node_Activated);
    End if ;
    End ;
    Or call physical form path by:
         open_form('c:\tree\'||:Ctrl.Node_Activated ||'.fmx');
    I enter the VALUE of MENU as the Form fmx name and it works very well.
    Thanks so much.

  • Can I use Hierarchical Tree from Forms6.0 in Forms5.0

    Hello
    The Oracle Custumer Support tell me that it should be possible to
    use Hierarchical Trees also in Forms5.0
    I look for a possibility to build a Navigator in Forms5.0
    with Symbols. (look and feel like the Navigator in Forms6.0 if I
    use Symbols in the Record Group).
    I Description should be on
    http://developer.us.oracle.com
    but either i have no access to this side or
    the URL is false.
    Sure is that there is a description over this Problem.
    And i have to get this description ;-)))
    Thanks for Help
    JK
    null

    That is not recommended. The new code editing features do not play well with an old workspace.
    Please create a new workspace and import your projects into that.
    -Anirudh

  • How to use Oracle Help in developer 10g

    Hi!
    First i'm sorry for my bad english
    I'm a student in computer science and i have a projet to make with Developer 10g. My teacher want us to make a Help file for the user but he don't know how to do it with developer 10g.
    So i've made some research on internet and i found how to create my help file. I have downloaded Oracle Help and RoboHelp.
    Using RoboHelp i've create my help file and then i generate it in Oracle Help format. I generate it in a compressed and a uncompressed version(because didn't know which one i need). So now i have two folder one who containt a .jar file and another who containt a lot of files.
    What i want to know is how to execute my Oracle Help in a WHEN-BUTTON-PRESSED trigger with theses files.
    Thank and sorry for my bad english

    Hi Pierre,
    Showing an appropriate help topic when a "Help" button is pressed in an application or when the user presses the F1 key is what we call "context-sensitive help".
    In your Oracle Help help system there is an XML map file that contains topic-ids that map to help topics. You need to associate these topic-ids with your user interface (help button, etc).
    Is your project an extension to JDeveloper 10g, or are you just creating a Java application using JDeveloper? If you are just using JDeveloper to create your own Java application, then you can use the CSHManager class distributed with Oracle Help for Java to enable context-sensitive help (see the Oracle Help Guide documentation). If you are creating an extension to JDeveloper, then let me know and I'll give you information on how to set up help in that context.

  • Hierarchical tree in forms 10g

    dear member.
    i am a beginner. and want to know about that how to make hierarchical form
    i am using developer suit 10g.
    thanks
    mustafa
    lahore,pakistan

    Mustafa,
    the way u have marked the node_id and parent_node_id in the two tables, it is done at form level. or what... this is a little confusing to me, i have to apply that ht form at other schema.Yes, I create Record Group that populates the HT in the When-New-Form-Instance (WNFI) trigger. You can populate an HT from just about anywhere, but I use the WNFI to ensure the tree is populated when the form loads.
    To add a "Grandchild" node to your tree, you simply need to modify the WNFI trigger and add a Loop for these nodes. Using your data as an example, the code in the WNFI would look something like this (not tested):
    DECLARE
       CURSOR c_comp IS
          SELEC T compcode, name
            FRO M company;
       CURSOR c_div (p_comp NUMBER) IS
          SELEC T div_id, div_name, dept_id
            FRO M s_div
          WHER E compcode = p_comp;
       CURSOR c_dept (IS
          SELEC T dept_id, dept_name
           FRO M s_dept
         WHER E dept_id = p_dept;
       n_level NUMBER := 1;
       n_row NUMBER := 1;
       rg_id  RECORDGROUP;
       node Ftree.Node;
    BEGIN
       Tree_Control.v_item_name := 'MY_TREE_DATA.MY_TREE';
       rg_id := Tree_Control.Create_RG;
       <<parent>>
       FOR r_comp IN c_comp LOOP
          -- Add Parent Company
          Tree_Control.ADD_RG_ROW(rg_id, ftree.collapsed_node, n_row,
                  n_level, r_comp.name, null, r_comp.compcode);
          n_row := n_row + 1;
          n_level := n_level + 1;
          -- Add any child Department records
          <<child>>
          FOR r_div IN c_div(r_comp.compcode) LOOP
             Tree_Control.ADD_RG_ROW(rg_id, ftree.collapsed_node, n_row,
                  n_level, r_div.div_name, null, r_div.div_id);
             n_row := n_row+1;
             -- Now, add any Grandchildren
            <<grandchild>>
            FOR r_dept IN c_dept(r_div.dept_id) LOOP
               Tree_Control.ADD_RG_ROW(rg_id, ftree.collapsed_node, n_row,
                   n_level, r_dept.dept_name, null, r_dept.dept_id);
            END LOOP grandchild;
          END LOOP child;
       END LOOP parent;
       ftree.Add_Tree_Data(Tree_Control.v_item_name, ftree.ROOT_NODE,
                       ftree.PARENT_OFFSET, ftree.LAST_CHILD,
                       ftree.RECORD_GROUD, rg_id);
    END;You will still need to modify the Create_RG function in the Tree_Control package to support the above changes, but this code sample should get you started.
    Craig...

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

  • 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

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

  • 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 - Data Entry Form

    I am trying to make a data entry form for hierarchical tree. Any one help me to send a sample .fmb file.
    I created a table like
    create table master_ACTIVITY
    (INITIAL_LEVEL NUMBER (4) ,
    NODE_DEPTH NUMBER (4) ,
    NODE_LABEL VARCHAR2(160) ,
    NODE_ICON VARCHAR2(60) ,
    NODE_DATA VARCHAR2(160) ,
    NODE_PARENT VARCHAR2(160)
    1. How do i use hierarchical tree for adding and deleting item into it.
    2. In my other form i use the item from hierarchical tree. so how to get the return value of the selected item in a hierarchical tree. and which of filed in this table i need in other forms to connect to this table and get values.
    please send a sample form to [email protected]
    thank you
    saji daniel

    Andreas,
    It got worked.
    I have another problem now. I have 2000 records in my tree. when i populate it is taking time to populate.
    I want to display only parent trees ie Level 1 & 2 Items. But the Level 1 & 2 should have '+' symbol to display.
    When the user click on any items in level 2, only then the child of the selected parent should populate.
    By default all the items are displayed in collapsed mode (-1). But still it take time to populate.
    Any solution ?.

  • Hierarchical Tree control

    Dear all,
    Any body send me hints or sample codes about using Hierarchical tree control in forms

    Type that into google and you should get some stuff. The biggest thing to remember is the query MUST have (presuming you are populating a tree from a db) certain values.
    Check out this dicussion which I started when I was learning: Re: Creating a menu system (not a file menu)

  • Hierarchical trees

    Dear Sir,
    I need to know whether I can use hierarchical trees in Forms 6.0. If yes, please send me the instruction to do.
    And I need to know Client-Server architecture Application deployment.
    Thanks in Advance.

    This forum is for feedback about OTN services and content. Please post your question in the Oracle Forms forum:
    Forms

  • Hierarchical Tree Insert

    Hi All Is it possible to insert values into another table using hierarchical Tree Node values.Please give Methods
    Regards
    R.MaheshBabu

    hi
    try something like this.
    when-new-form-instance trigger.
    declare
         cursor dept_cur is
         select deptno , dname
         from   dept;
         cursor emp_cur (N number) is
         Select empno , ename
         from   emp
         where  deptno=N;
         Htree     item;
      parent_node varchar2(200);
      child_node  varchar2(200);
    begin
         Htree:=Find_item('tree');
         For dept_R in Dept_cur loop
    parent_node:=Ftree.Add_Tree_Node(htree,
    Ftree.ROOT_NODE,
    Ftree.PARENT_OFFSET,
    Ftree.LAST_CHILD,
    Ftree.EXPANDED_NODE,
    dept_r.deptno||' '||dept_r.dname,
    'insrec',
    dept_r.deptno);
         Htree:=Find_item('tree');
         For emp_R in emp_cur(dept_r.deptno) loop
    child_node:=Ftree.Add_Tree_Node(htree,
    parent_node,
    Ftree.PARENT_OFFSET,
    Ftree.LAST_CHILD,
    Ftree.EXPANDED_NODE,
    emp_r.empno||' '||emp_r.ename,
    'insrec',
    emp_r.empno);
    end loop;
    end loop;
    end;create tree and use this trigger for it.
    when-tree-node-selected trigger.
    declare
         Value_node  varchar2(50);
         htree  item;
    begin
         htree:=find_item('tree');
         Value_node := Ftree.GET_TREE_NODE_PROPERTY(htree,
                                            :system.trigger_node,
                                            Ftree.node_value);
         :val_from_tree:=value_node;
         set_block_property('emp',default_where,'empno='||:val_from_tree);
         go_block('emp');
         execute_query;
    end;create 3 blocks.
    1.control(Tree Block)
    2.emp (Table Block)
    3.value(create a item,named "VAL_FROM_TREE").
    i hope it will help u.
    sarah

  • Hierarchical Trees: Creating and populating

    How would I go about it if was to have hierarchical trees and populate them with dynamic data that changes at runtime with the occurence of an event such as clicking of a button?
    I use Forms version 6.0.8.8.0.

    Did you read the documentation? It explains how to use hierarchical trees.
    Regards,
    Robin Zimmermann
    Forms Product Management

Maybe you are looking for

  • Toshiba 40TL963 - no 3D possible

    Just tried my Tv to play 3d movie and cant get any setting to show up when i press the "quick menu" option on the remote. Been on the phone to Toshshiba support and reset TV but still no luck. The 3d player works fine as we have tested this on anothe

  • REG :FCC Receiver

    Hi Guys              My Sec is IDOC to File in CSV format .can anyboby send me details for receiver csv  format . i am using PI7.1 Thanks

  • File pathing

    I need to access batch files for my program. I can put those in my project folder to access them without a problem. But when I am done with this program, and i burn it on a cd and run it on a different computer, the filepath changes, how can i solve

  • Which expression for a condition is better?

    Given a variable, say, int var; Assaign var = ?; (assign var to some value); In a condition comparing this variable with some constant, which one of the following is better? and Why? if (var == 3) OR if (3==var) Thank you and Happy Thanksgiving!

  • I lost my cs4 me version cd, need a link for download

    I lost my cs4 me version cd, need a link for download