Hierachical Tree in developer2k

Hi,
I want to create a hierarchical tree, but unable to do that. I tried do that with the help of forms help but there is some mistakes and its showing err frm-47321 "Data used to populate tree is invalid".
Can any one help me in this regard??
Regards,
Shyam

Thanks thats what i thought but hoped i was wrong.

Similar Messages

  • HTMLDB - Support HGrid or Hierachical Tree Table Grid?

    When is HTMLDB going to support
    more advanced GUI controls such
    as the HGrid or "tree table grid"?
    I want to display a hierarchy of
    objects in a tabular format.
    Thanks!
    -Kathryn

    When is HTMLDB going to support
    more advanced GUI controls such
    as the HGrid or "tree table grid"?
    I want to display a hierarchy of
    objects in a tabular format.
    Thanks!
    -Kathryn

  • SEARCH item in MULTI-SELECT LOV (Hierachical Tree)

    I have created a multi-select LOV using a hierarchical tree; providing the query for the tree in the Functional/Data Query property.
    The Multi-Select LOV works fine. As you would suspect some LOV's have long lists that one must scroll through.
    I would like to implement a SEARCH field (as seen in Forms standard LOV functionality) that will search through my Tree Node values and highlight the item searched (again as the standard LOV functionality works). Thus, allowing the user to quickly find the values in the list.
    How do I go about referencing the Tree Node values to the value in the search (field) item?

    Hello,
    Search, through the FTree package's functions, those that allows to navigate through the leaves.
    http://www.oracle.com/webapps/online-help/forms/10g/state?navSetId=_&navId=3&vtTopicFile=designing_forms/objects/manip_ht_runtime.html&vtTopicId=
    Francois

  • Hierachical Tree node(help me please)

    Hi experts,
    JDEV 11.1.2.0.0
    i hav 3 tables say category_1 ,category_2(FK - cat1_code), & category_3( FK - cat1_code&cat2_code)......
    I created a BC from these tables and also created a view link from category_1 to category_2 & another view link from category_2 to category_3....
    then i made a hirearchical tree stucture to display database items....i converted all node to a Command link....
    My usecase is follows.......
    when i click each hierarchical link(data fetched from table) it should navigate to its master form for creating a new master a record.....means , if i clicked a category_1 data , it should navigate to category_1 master form to create a new record.....
    I almost done for my use case.....but i dnt knw how we can get corresponding iterator binds from tree definition ......this my page data binding definition
    <?xml version="1.0" encoding="UTF-8" ?>
    <pageDefinition xmlns="http://xmlns.oracle.com/adfm/uimodel" version="11.1.2.60.17" id="categoryPageDef"
    Package="pages">
    <parameters/>
    <executables>
    <variableIterator id="variables"/>
    *<iterator Binds="Iascat1View1" RangeSize="25" DataControl="AppModuleDataControl" id="Iascat1View1Iterator"/>*
    *<iterator id="Iascat2View1Iterator" Binds="Iascat2View1" DataControl="AppModuleDataControl" RangeSize="25"/>*
    *<iterator id="Iascat3View1Iterator" Binds="Iascat3View1" DataControl="AppModuleDataControl" RangeSize="25"/>* </executables>
    <bindings>
    *<tree IterBinding="Iascat1View1Iterator" id="Iascat1View1">*
    *<nodeDefinition DefName="inv.EntityVO.Iascat1View" Name="Iascat1View10"*
    *TargetIterator="${bindings.Iascat1View1Iterator}">*
    <AttrNames>
    <Item Value="Cat1Code"/>
    <Item Value="Cat1Name"/>
    </AttrNames>
    <Accessors>
    <Item Value="Iascat2View"/>
    </Accessors>
    </nodeDefinition>
    *<nodeDefinition DefName="inv.EntityVO.Iascat2View" Name="Iascat1View11"*
    *TargetIterator="${bindings.Iascat2View1Iterator}">*
    <AttrNames>
    <Item Value="Cat2Code"/>
    <Item Value="Cat2Name"/>
    </AttrNames>
    <Accessors>
    <Item Value="Iascat3View"/>
    </Accessors>
    </nodeDefinition>
    *<nodeDefinition DefName="inv.EntityVO.Iascat3View" Name="Iascat1View12"*
    *TargetIterator="${bindings.Iascat3View1Iterator}">*
    <AttrNames>
    <Item Value="Cat3Code"/>
    <Item Value="Cat3Name"/>
    </AttrNames>
    </nodeDefinition>
    </tree>
    </bindings>
    </pageDefinition>
    *how can i achieve this? OR*
    *Suggest any Other Way?*
    PMS
    Edited by: pms on Jan 30, 2012 3:49 PM
    Edited by: pms on Jan 30, 2012 4:07 PM
    Edited by: pms on Jan 30, 2012 4:13 PM
    Edited by: pms on Jan 30, 2012 4:49 PM
    Edited by: pms on Jan 30, 2012 4:58 PM

    Hi john,
    Im sorry , if i did against rules of the forum....
    Actually i stucked on my work , thats why i did like this to get response from forum members.....
    PMS

  • Hierachical tree - Highlight particular node's in Tree

    Is there any way to bold or change the colour of particular nodes in a tree?
    We know and use the node icon to distinguish between them but ideally would want to bold some to highlight areas
    I can not see how to do this looking at the documentation but may be wrong.
    Thanks

    Thanks thats what i thought but hoped i was wrong.

  • Click on the searched  hierachical tree node

    Hi,
    when i search the hierarchical tree for a string then all the matching nodes come selected.Then when i click on any of the search result nodes it does not work and otherwise i have to click on a non selected node and then click on the desired node .
    For example i have created a tree for material used for manufacturing purpose.i want to display the related suppliers names in an adjacent grid by clicking on the node in the tree. how can i do that directly after getting the search node.??

    Bibekananda wrote:
    Hi,
    when i search the hierarchical tree for a string then all the matching nodes come selected.Then when i click on any of the search result nodes it does not work and otherwise i have to click on a non selected node and then click on the desired node .
    For example i have created a tree for material used for manufacturing purpose.i want to display the related suppliers names in an adjacent grid by clicking on the node in the tree. how can i do that directly after getting the search node.??hi
    i hope i get you
    i think you have a form contain a block for tree and another block build on a database table and you want to execute query on the block when you select a node
    and you have a search item to seach for a node and want to go to the block record when you clock on search without go to the node and select
    try this in search button or when-validate-item of the search key
    -- create a pkg specifiaction called tree_pkg and define the follwing variable
    --node ftree.node;
    PROCEDURE select_node IS
         node ftree.node;
         htree item;
         node_label varchar2(3000);
    node_val varchar2(3000);
         state varchar2(3000);
    begin
         htree := find_item('BLOCK.TREE_ITEM');
         node := Ftree.Find_Tree_Node(htree, '');
    ftree.set_tree_selection(htree,node,ftree.select_on) ;
    WHILE NOT Ftree.ID_NULL(node) LOOP
         state := Ftree.Get_Tree_Node_Property(htree, node, Ftree.NODE_STATE);
    node_label := Ftree.Get_Tree_Node_Property(htree, node, Ftree.NODE_label);
    node_val := Ftree.Get_Tree_Node_Property(htree, node, Ftree.NODE_value);
    if upper(node_label) like <your search item> then
    ftree.set_tree_selection(htree,node,ftree.select_on) ;
    tree_pkg.node := node;
    exit;
    end if;
    node := Ftree.Find_Tree_Node(htree, '', ftree.find_NEXT,Ftree.NODE_LABEL,'', node);
    END LOOP;
    ---- now you have the node number that result from search
    node_val := Ftree.Get_Tree_Node_Property(htree, tree_pkg.node, Ftree.NODE_value);
    -- then use this value in execute query on the supplier block
    END;
    try and respond

  • Using a Heiarchical Tree with data that can be grouped

    Hello Forum
    I have been tasked with coming up with a selector for one of our applications that uses a tree. I have built a mock-up using the example provided at Craigs Oracle Stuff (https://sites.google.com/site/craigsoraclestuff/oracle-forms---how-to-s/forms-how-to-create-a-hierachical-tree-form) that subsuitutes our data in the SQL for his, and I have successfully added another loop as the data is located in 3 tables, but have come across a few issues. I have been searching the forums and google, but cannot find anything to solve the issues that I am having. Any help is appreciated. This is being developed in 10g. The data is structured as follows.
    Category(root)
    ID, Name
    1, A
    2, B
    3, C
    SubCategory (Level 2)
    ID, Name, CatID
    1, A, 1
    2, B, 1
    3, C, 1
    Codes (Level 3 and beyond?)
    ID SubCatID Description
    1, 1, 'The, quick'
    2, 1, 'The, quick, brown'
    3, 1, 'The, quick, brown, fox, jumps'
    4, 1, 'The, quick, brown, fox, jumps, over, the lazy, dog'
    5, 2, 'Wafting, zephyrs, quickly, vexed, Jumbo'
    6, 2, 'Wafting, zephyrs, quickly'
    As you can see the codes table has a lot of repeating values that are delimited by ',' (commas). I can produce a tree out of the 3 tables but...
    Problem:
    The description in the codes table can be as many as 255 characters. The tree seems to truncate the values around 60 characters. I am not sure what the maximum data lenghts in the tree are, or if the max lengths are limited by the node or the entire tree. Although the Category and Subcategory names can be as much as 120 characters, they are more typically around 25 characters.
    Could this problem be remedied buy deepeing the levels of the tree by grouping the values in the codes table on the comma delimiters? The max number of commas in the description is 9, so that would make the tree up to 11 levels deep. I know how to get the text between the commas, but am unsure how to link the data back to the parent
    Ex. The tree would be
    A
    ->A
    ->->The
    ->->->quick
    ->->->->brown
    Thanks for any Assistance
    Mike
    EDIT: I found the reason that the label of the node is being limited in length. The limit is actually 50char because of this line in Craig's code in the Create_RG function:
    gc_id := Add_Group_Column(rg_id, 'label', CHAR_COLUMN,50);
    I changed the limit to 255 and now all of the data displays.
    Although working now, I would still like to know id there is a way of grouping the data into the tree view, as this would make the tree much more readable.
    Mike
    Edited by: saskcivic on Feb 5, 2013 7:36 AM

    hi,
    In BI CONTENT,, v can just install any Object,,for that, matter,,just to make that object Active. So by Default it vll nt have any data. Install any Query data flow before and after, then select some master characteristics, and transaction data,,schedule them, Load the data,, then Ur Report Data vll display.
    Cheers
    Thanks

  • Tree in oracle 10g

    i want a tree node at run time
    i have this query
    select 1,
    level,
    e.ename ,
    null,
    e.empno
    from emp e
    connect by prior e.empno = e.mgr
    start with mgr is null
    in this query the king is first node after that jones under the jones node the scott node layed now i want to add new node under the scott node ...scott is parent of new
    how i can do this??

    this might help
    https://sites.google.com/site/craigsoraclestuff/oracle-forms---how-to-s/forms-how-to-create-a-hierachical-tree-form

  • Problem creating a hierarchical tree in forms builder[issue with the query]

    Hi all,
    I have 2 tables.
    box (box_id, box_name)
    item(item_id, item_name, box_id)
    In a box there are several items.
    I want to create a hierachical tree to display items that are present in each box.
    LIKE:
    |---BOX1
    | |----ITEM 1
    | |----ITEM 2
    |
    |---BOX2
    | |----ITEM 1
    | |----ITEM 2
    Currently i am trying this query:
    SELECT -1 state, box_name, 'icon' icon, box_id val
    from box b, item i;
    I don't know what value to put for level, i don't know how to code the 'connect by prior' part.
    Could you please advise me?
    Michaël.
    PS. Then i will eventually use this query in forms builder.

    Hi MichaelR
    i get the FRM - 47321 error in forms builder ..
    Hence In order to populate a tree, the Select order must retrieve 5 columns:
    STATUS, LEVEL, LABEL, ICON, VALUE u should notice this orders in ur Query this will solve the error and pls notice that the...
    My advice is to use the On Line help in ur forms builder to help u in this ...
    Initial state : number
    Node tree depth : number
    Label for the node : varchar2
    Icon for the node : varchar2
    Data : varchar2This should be in WHEN-NEW-FORM-INSTANCE-trigger in order to populate ur tree...
    another thing why don't u think of building ur tree as i did here in the following example...Pls have a look here ....
    Hope this helps...
    Regards,
    Amatu Allah.

  • Hierarchy tree in oracle forms problem

    Hello Experts,
                         I am new in oracle forms.I am using oracle forms 11g with weblogic server 10.3.5 at windows 7.I have two table as tbl_country and tbl_state.I have to make a hierarchy tree in oracle forms.My table structure as:
    tbl_country
    CREATE TABLE "SCOTT"."TBL_COUNTRY"
       (    "CNTRY_CODE" NUMBER NOT NULL ENABLE,
        "NAME" VARCHAR2(80 BYTE),
         CONSTRAINT "TBL_COUNTRY_PK" PRIMARY KEY ("CNTRY_CODE")  
    tbl_state:
    CREATE TABLE "SCOTT"."TBL_STATE"
       (    "SATE_CODE" NUMBER NOT NULL ENABLE,
        "COUNTRY_CODE" NUMBER NOT NULL ENABLE,
        "STATE_NM" VARCHAR2(80 BYTE),
         CONSTRAINT "TBL_STATE_PK" PRIMARY KEY ("SATE_CODE")
         CONSTRAINT "FK_CNTRY_STATE" FOREIGN KEY ("COUNTRY_CODE")
    Table Date as:
    insert into tbl_COUNTRY values(0,'country ');
    insert into tbl_COUNTRY values(91,'HHH');
    insert into tbl_COUNTRY values(72,'III');
    insert into tbl_COUNTRY values(83,'JJJ');
    insert into tbl_state values(1,'state',0);
    insert into tbl_state values(2,'BH',91);
    insert into tbl_state values(3,'CI',72);
    insert into tbl_state values(4,'DI',72);
    insert into tbl_state values(5,'EH',91);
    insert into tbl_state values(6,'FI',72);
    insert into tbl_state values(7,'GJ',83);
    insert into tbl_state values(8,'HJ',83);
    insert into tbl_state values(9,'IH',91);
    Desired Output in oracle forms tree:
    |__Country
             |____HHH
                       |____BH
                       |____EH
                       |____IH
             |____III
                      |__CI
                      |__DI
                      |__FI
             |____JJJ
                       |__GJ
                       |__HJ
    I Have tried but got no output
    select
    1 ,level, esm.name,NULL,to_char(esm.CNTRY_CODE)
    from   (SELECT c.name,c.cntry_code from TBL_COUNTRY c union all select s.STATE_NM,s.COUNTRY_CODE from tbl_state s) esm
    connect by prior esm.CNTRY_CODE = esm.CNTRY_CODE
    start   with esm.code=0
    what is going wrong here.
    thank you
    regards
    aaditya

    If you have never worked with a Forms Tree control, I recommend you look at this tutorial: How To Create a Hierachical Tree form.
    Craig...

  • Problem Creating a query for a hierarchical tree. [using connect by prior]

    Hi all,
    I have 2 tables.
    box (box_id, box_name)
    item(item_id, item_name, box_id)
    In a box there are several items.
    I want to create a hierachical tree to display items that are present in each box.
    LIKE:
    |---BOX1
    | |----ITEM 1
    | |----ITEM 2
    |
    |---BOX2
    | |----ITEM 1
    | |----ITEM 2
    Currently i am trying this query:
    SELECT -1 state, box_name, 'icon' icon, box_id val
    from box b, item i;
    I don't know what value to put for level, i don't know how to code the 'connect by prior' part.
    Could you please advise me?
    Michaël.
    PS. Then i will eventually use this query in forms builder.

    Note the name of this forum is "SQL Developer *(Not for general SQL/PLSQL questions)*" - so only for issues with the SQL Developer tool. Please post these questions under the dedicated SQL And PL/SQL forum.
    Regards,
    K.

  • Error 7343 when delete a recordin database and hierarchical tree

    I got this error after delete a record and call the procedure to refresh the hierarchical tree.
    This is my code:
    PROCEDURE LOAD_TREE IS
    htree ITEM;
    rg_id RecordGroup;
    errcode number;
    BEGIN
    rg_id := find_group('RECORD_GROUP_POPULA_TREE');
    errcode := populate_group(rg_id);
    -- Find the tree itself.
    htree := Find_Item('HIERARCHICAL_TREE.TREE');
    -- Populate the tree with data.
    Ftree.Set_Tree_Property(htree, Ftree.RECORD_GROUP, rg_id);
    END;
    I put a code at the trigger KEY-COMMIT to refresh the hierarchical tree always the button F10 is pressed. Look:
    begin
    commit;
    LOAD_TREE;
    end;
    When I insert records that´s ok...the problem is when I delete records.
    Thanks!
    Sabrina

    I found the solution after read this thread: Hierachical tree delete node
    Thanks
    Sabrina

  • Tree Node In Oracle Forms

    Hell ow my dear Fiends
    I am the beginner in oracle forms
    I want to create a tree node below
    For example
    Purchase order
      Forms
              POM1010
      Reports
              Pom2010
      Queries
              POM3010
    Human Resource Management
       Forms
              POM1010
      Reports
              Pom2010
      Queries
              POM3010

    Hi,
    You can see
    https://forums.oracle.com/thread/512425
    or
    https://sites.google.com/site/craigsoraclestuff/oracle-forms---how-to-s/forms-how-to-create-a-hierachical-tree-form

  • Tree view in Oracle forms

    Hello experts,
                         I am new in oracle forms and i am using oracle forms 11g with weblogic server 10.3.5 at windows7.I have a problem to make a tree item in oracle forms based on two tables.
    I have 2 tables as:
    TBL_ARTICAL_MSTR
    ARTICLE_ID
    ATRTICLE_TYPE
    1
    MAN
    2
    Women
    TBL_ARTICLE_DTL
    ARTICLE_NO
    NAME
    ARTICLE_ID
    1
    Jeans
    1
    2
    Skirts
    2
    3
    T-Shirt
    1
    Now I want a tree view as:
    |
    |___MAN
    |       |______JEANS
    |       |______T-Shirt
    |
    |___WOMEN
            |______Skirts
    For this I have made a Record group  with a sql query as:
    SELECT 1 , level , TBL_ARTICAL_MSTR.ATRTICLE_TYPE,TBL_ARTICLE_DTL.NAME , NULL , to_char( TBL_ARTICLE_DTL.ARTICLE_NO)
    FROM TBL_ARTICAL_MSTR LEFT JOIN TBL_ARTICLE_DTL ON TBL_ARTICAL_MSTR.ARTICLE_ID=TBL_ARTICLE_DTL.ARTICLE_ID
    CONNECT BY prior TBL_ARTICLE_DTL.ARTICLE_NO = TBL_ARTICAL_MSTR.ARTICLE_ID
    START WITH TBL_ARTICAL_MSTR.ARTICLE_ID=1
    But There is no any output,Please help me to know that how can i solve it.
    Thank You
    regards
    aaditya.

    how to create hierarchical tree form
    https://sites.google.com/site/craigsoraclestuff/oracle-forms---how-to-s/forms-how-to-create-a-hierachical-tree-form

  • Hierarchical Tree Items question, in Oracle9i forms builder ^^;

    Hi,I'm kind of new to using the Hierachical Tree item in Oracle9i Forms builder. so anyway,in the book it was explaining how it's done clearly,but, what I want to do using that item is kind of different;
    in the book it has the way of making it like a navigator for the items/fields/tables in the database,either by creating a view for those fields by using Select Statements or using the whole table itself.
    however,what I'm trying to do is to have that tree list the names of Forms I have already created and probably the list of Reports I got,so it would sort of like a Menu and I could add a trigger to open the form/report once an item in the tree is double clicked on
    here's an example of what I'm talking about :
    http://i7.photobucket.com/albums/y264/_Crzy_Chck_/Htree.jpg
    sorry the screen shot isn't the best ^^;
    that's from a company my friend works at,they have that tree as a menu for their forms and reports,once u double click on a form name or a report,it opens up ^^;
    I tried google/yahoo,I got the same info I found on the book.

    Or you may want to check out this code:
       PROCEDURE next_menu(
          menu_in                                        IN OUT   NUMBER
        , master_menu_in                                 IN       NUMBER
        , master_name_in                                 IN       VARCHAR2
        , context_menu_in                                IN       VARCHAR2
        , node_in                                        IN       ftree.node
        , no_rows_out                                    IN OUT   BOOLEAN )
       IS
          CURSOR c_menu(
             b_master_menu                                           NUMBER
           , b_prev_menu                                             NUMBER
           , b_context_menu                                          gba_tpivmnu.kmenu%TYPE )
          IS
             SELECT   p.ofnk MASTER
                    , m.ofnk
                    , m.napp || m.kfnk_sub napplus
                    , m.rid
                    , m.rid_mas
                 FROM gba_tpivmnu p                                             -- parent menu
                    , gba_tpivmnu m                                                    -- menu
                WHERE m.rid_mas = p.rid
                  AND m.kmenu = b_context_menu
                  AND (
                          m.rid_mas = b_master_menu
                       OR (    b_master_menu IS NULL
                           AND m.rid_mas IS NULL ) )
                  AND (   m.rid > b_prev_menu
                       OR b_prev_menu IS NULL )
             ORDER BY m.rid;
          r_menu                                       c_menu%ROWTYPE;
          l_prev_menu                                  tmenu.kode%TYPE;
          l_teller                                     PLS_INTEGER := 0;
          new_node                                     ftree.node;
          this_node                                    ftree.node;
          tree_itm                                     item := FIND_ITEM( tree_item );
          l_top_node_name                              VARCHAR2( 512 );
       BEGIN
          IF master_menu_in IS NOT NULL
          THEN
             IF node_in IS NULL
             THEN
                /* eerste keer, dus dit wordt de bovenste node */
                l_top_node_name := master_name_in;
                glob.set_current_menu( context_menu_in );
                new_node :=
                   ftree.ADD_TREE_NODE(
                      tree_itm
                    , ftree.root_node
                    , ftree.parent_offset
                    , ftree.last_child
                    , ftree.expanded_node
                    , master_name_in
                    , 'favorites'
                    , master_menu_in );
             END IF;
             LOOP
                r_menu.rid := NULL;
                OPEN c_menu(
                       master_menu_in
                     , l_prev_menu
                     , context_menu_in );
                FETCH c_menu
                 INTO r_menu;
                CLOSE c_menu;
                l_teller := l_teller + 1;
                l_prev_menu := r_menu.rid;
                EXIT WHEN r_menu.rid IS NULL;
                this_node :=
                   ftree.ADD_TREE_NODE(
                      tree_itm
                    , NVL( node_in, new_node )
                    , ftree.parent_offset
                    , ftree.last_child
                    , ftree.expanded_node
                    , r_menu.ofnk
                    , NULL
                    , r_menu.napplus );
                next_menu(
                   menu_in                                 => menu_in
                 , master_menu_in                          => r_menu.rid
                 , master_name_in                          => r_menu.ofnk
                 , context_menu_in                         => context_menu_in
                 , node_in                                 => this_node
                 , no_rows_out                             => no_rows_out );
             END LOOP;
             IF l_teller = 0
             THEN
                no_rows_out := TRUE;
             END IF;
             IF l_top_node_name IS NOT NULL
             THEN
                set_tree_item_top_node( l_top_node_name );
             END IF;
          END IF;
       END next_menu;tree_item contains the name of the tree item you are using. the select statement is based on a table that is like EMP, where one EMP van be another EMP's manager. In this table a menu-option can be another menu-option's master.
    this is a recursive function that keeps calling itself untill the query finds no more record.
    Good Luck!

Maybe you are looking for

  • Cube creation & Data loading from Flat file

    Hi All, I am new to BI 7. Trying to create a cube and load data from a flat file. Successfully created the infosource and Cube (used infosource as a template for cube) But got stucked at that point. I need help on how to create transfer rules/update

  • Why is there no AT&T service in Skagway at the moment

    Super frustrating season this year with our cell service.  Every tuesday, wednesday, thursday, our community can count on calls being dropped, delayed messaging, or no service available at all!  As a small business owner that uses Square and relies o

  • IPhone calendar colors not there

    I updated my iPhone to 2.0 and had colors on the day view in calendar. Had syncing problems and once resolved, I have no colors at all, only gray scale. Any suggestions or am I just missing a setting somewhere?

  • Warehouse

    I have a s.loc assigned to inventory mgmt..I need to assign a warehouse to it.What implications should be taken into account for extending to WM?

  • HT4970 Any way to sync Reminders with a Mac running 10.6.8?

    I have a new iPhone with "Reminders" and an older Mac running 10.6.8. There is nothing in iCal that seems to corresponds to "Reminders" - only a very lame "to do" list. Is there anything in 10.6.8 that syncs with "Reminders"? Same with Notes, btw. -