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) ' | |
'from emp ' | |
'connect by prior empno = mgr ' | |
'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.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Similar Messages

  • It's possible to make Hierarchical Tree from multiple tables ?

    the famous example for Hierarchical Tree is about employee_id and manager_id field in employees table ............ so I was wondering it's possible to make[b] Hierarchical Tree from multiple tables ? and How ??
    if the answer associate with example that will be so kind of you :D
    and thanks in advance.

    HI
    use curose in when new form instance or procedure then u can got data more then one table like that
    DECLARE
    htree ITEM;
    top_node FTREE.NODE;
    new_node FTREE.NODE ;
    child_node ftree.node ;
    item_value VARCHAR2(30);
    cursor prime_cur is select main_desc mgr_name, main_code dept
    from pur_item_group_mst;
    cursor child_cur(v_dept number) is select sub_desc,sub_code
    from pur_item_group_dtl where main_code = v_dept ;
    BEGIN
    htree := Find_Item('tmp.tree4');
    for dummy in prime_cur loop
    new_node := Ftree.Add_Tree_Node(htree,
    ftree.root_node,
    Ftree.PARENT_OFFSET,
    Ftree.LAST_CHILD,
    Ftree.EXPANDED_NODE,
    dummy.mgr_name,
    'D:\ORYX_POLYBAGS\accept',
    dummy.dept);
    for child in child_cur(dummy.dept) loop
         child_node := Ftree.Add_Tree_Node(htree,
    new_node,
    Ftree.PARENT_OFFSET,
    Ftree.LAST_CHILD,
    Ftree.EXPANDED_NODE,
    child.sub_desc||' '||'('||child.sub_code||' '||')',
    'D:\ORYX_POLYBAGS\next',
    child.sub_code);
    end loop;
    end loop;
    END;
    Rizwan Shafiq
    www.rizwanshafiq.blogspot.com

  • 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's scrollbars

    Hi all,
    I've created a canvas with a hierarchical tree item. It displays correctly in web envinronment, whilst, when run at runtime, it shows always the scrollbars (both vertical and horizontal) also when the hierarchical structure fits perfectly the item's size.
    Do I missed something or I have to download some pacth for my Forms?
    My envinronment is: WIN2000, Forms 6i 6.0.8.13.0 - Production, Oracle RDBMS 8.1.7.1.0 - Production
    Thanks in advance,
    Marco

    Nothing you can do about this, the scrollbars ar a "feature" of the control that we use on Windows. You can't switch them off.
    As you note, on the web, the scrollbars come and go as required,

  • Hierarchical Tree Data Query/Record Group Question

    I need help with Hierarchical Forms right now. I'm currently trying to implement a hierarchical tree to display the different items in different categories. I have been reading up on it for the past few days, and i do not understand a few things.
    What is the difference between a data query and record group? they seem the same to me.
    How does the XX = prior XXX work? i understand that this is what connects the parent to the child.
    How do you determine what depth the node is? its done in the record group/data query, but how do i decide what level it is dynamically?
    Thanks a lot in advance!

    Thanks! I am unable to create a table specifically for the tree because i am using tables that have been ported live and are in use. My question about levels is how do I know which depth the node is. For example, i have a category called Information Technology and a category item called Business Informatics. I want to know how to decide that the Category(information technology) is on level 1 and the Item(business informatics) is on level 2.
    Information Technology
    |_
    Business Informatics
    And i do know how the Connect By XX = prior XXX works in the data query/record group.
    Thanks for your help!

  • 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 tree problem

    Hi,
    I have a hierarchical tree in one my forms that one branch of it has about 2000 nodes the hierarchical tree does not display all the values.
    I've tested with about 1500 and it show correctly.
    Any limitation? any workaround?
    regards

    Hi,
    Something like this:
    SCOTT@soti_9> CREATE TABLE Org(
      2    Org_Id INTEGER,
      3    Org_Name VARCHAR2(100),
      4    Parent_Org_Id INTEGER
      5  );
    Table created.
    SCOTT@soti_9> INSERT INTO Org(Org_Id, Org_Name, Parent_Org_Id) VALUES(1, 'Org_1', NULL);
    1 row created.
    SCOTT@soti_9> INSERT INTO Org(Org_Id, Org_Name, Parent_Org_Id) VALUES(2, 'Org_2', 1);
    1 row created.
    SCOTT@soti_9> INSERT INTO Org(Org_Id, Org_Name, Parent_Org_Id) VALUES(3, 'Org_3', 2);
    1 row created.
    SCOTT@soti_9> INSERT INTO Org(Org_Id, Org_Name, Parent_Org_Id) VALUES(4, 'Org_N', 2);
    1 row created.
    SCOTT@soti_9> COMMIT;
    Commit complete.
    SCOTT@soti_9> CREATE TABLE Members(
      2    User_Id INTEGER,
      3    Org_Id INTEGER
      4  );
    Table created.
    SCOTT@soti_9> INSERT INTO Members(User_Id, Org_Id) VALUES(1, 3);
    1 row created.
    SCOTT@soti_9> INSERT INTO Members(User_Id, Org_Id) VALUES(2, 3);
    1 row created.
    SCOTT@soti_9> INSERT INTO Members(User_Id, Org_Id) VALUES(3, 3);
    1 row created.
    SCOTT@soti_9> INSERT INTO Members(User_Id, Org_Id) VALUES(4, 4);
    1 row created.
    SCOTT@soti_9> INSERT INTO Members(User_Id, Org_Id) VALUES(5, 4);
    1 row created.
    SCOTT@soti_9> COMMIT;
    Commit complete.
    SCOTT@soti_9> WITH Branches AS (
      2    SELECT Org_Id
      3    FROM Org
      4    START WITH Org_Name = 'Org_2'
      5    CONNECT BY PRIOR Org_Id = Parent_Org_Id
      6  )
      7  SELECT COUNT(*)
      8  FROM Branches B
      9    JOIN Members M USING(Org_Id)
    10  ;
      COUNT(*)
             5
    SCOTT@soti_9> WITH Branches AS (
      2    SELECT Org_Id
      3    FROM Org
      4    START WITH Org_Name = 'Org_1'
      5    CONNECT BY PRIOR Org_Id = Parent_Org_Id
      6  )
      7  SELECT COUNT(*)
      8  FROM Branches B
      9    JOIN Members M USING(Org_Id)
    10  ;
      COUNT(*)
             5Regards,
    Dima

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

  • Problems with right click in hierarchical tree

    Hi,
    I create a popup menu in a hierarchical tree and want to call this referencing to a node in the tree.
    I can get the node in GET_TREE_NODE_SELECTION but the node need to be selected for this...
    How can I select a node with a right click?? and then call the popup menu??
    Am I clear??
    Why the trigger MOUSE_CLICK doesn't works for right clicks??? I know about the SYSTEM.MOUSE_BUTTON_PRESSED but to use this I need a RIGHT_CLICK_TRIGGER... that I don't know how to call...
    thanks!

    Hi,
    This is a bug(96289), the same as the Base bug 1477977 which has NOT been fixed in Release 9.0.2 (as Oracle anounced) or in any earlier releases.
    Bug 1477977 was currently scheduled for the 1st patchset of Forms 9.0.4
    I don't know if it was fixed. Contact Oracle about that.
    Right now, to achive what you want you must left click to select a node. This means that the use must do a left click and a right click to have an item selected.
    Monica

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

  • Hierarchical Tree error - fighting for over a year

    For over a year now, our Oracle forms have presented an elusive problem with Hierarchical Trees. First some core information:
    We are running Developer 6i, patchset 8, on a Sun host and an Oracle 8i database. Our forms are deployed over the web on the
    Oracle Application Server using J-Initiator 1.1.7.27.
    Now, only on our Production platform, and only during busy times of the day, we randomly get the error "Invalid Query for Hierarchical
    Tree" when one of our tree-based forms populates the tree. This error is sometimes followed by the infamous
    FRM-92100 "connection has been terminated" error. This happens whether building the tree with a single Selec and Populate Treet,
    or via a systematic series of Add Tree Node calls.
    We have tried rebuilding the form logic to eliminate form corruption, (form corruption - happens if you open a large FMB in the
    forms developer without first being connected to the database, manifests itself as random and odd form behaviour,
    or FRM-92100 errors, Oracle product support denies it really happens), we have added debug code, we've even tried generating
    the FMX on the Production platform as part of our deployment (normally we generate FMX files on our Integration platform
    which mirrors Production).
    We are not scheduled to upgrade for Forms 9i and the 9IAS for several more months, so upgrading isn't an immediate option for us.
    Any and all ideas welcome.
    Jeff Cline

    Hi Nigel,
    Two questions:
    1. When the publisher sends the access permission to the subcriber by:
    netStream.send("|RtmpSampleAccess", true, true)
    , on the subscriber side, what event or function can handle the guaranteed receipt of the access permission? Currently it is possible to draw the incoming stream video upon receiving NetStream.Play.Star and waiting for 5 seconds or so:
    public class MyWebcamSubscriber extends WebcamSubscriber {
    override protected function layoutCameraStreams():void
    // trying the event listener seems to work here.
    _streamManager.addEventListener(NetStatusEvent.NET_STATUS, onNetStatus);
    override protected function onNetStatus(e:NetStatusEvent):void
    super.onNetStatus(e);
    case "NetStream.Play.Start":
    setTimeout(function():void {
    // draw the video from the incoming stream here.
    }, 5000);
    The questions is, which event can let the subscriber know that it has the access permission to the video stream?
    2. In WebcamPublisher, why is that the access permission is sent 3 times?
    a. Once on receiving NetStream.Connect.Success with 0.5 second delay, as in below.
    b. Once immediately upon receiving NetStream.Connect.Success, as in below.
    protected function onNetStatus(p_evt:NetStatusEvent):void
    if (p_evt.info.code=="NetStream.Connect.Success") {
    setTimeout(sendSnapShotPermission, 500);
    _stream.send("|RtmpSampleAccess", true, true);
    protected function sendSnapShotPermission():void
    _stream.send("|RtmpSampleAccess", true, true);
    c. Once in onConnectionTypeChange() with 2 seconds delay:
    protected function onConnectionTypeChange(p_evt:StreamEvent):void
    if ( _streamManager.isP2P) {
    _stream= new NetStream(_connectSession.sessionInternals.session_internal::connection as NetConnection,NetStream.DIRECT_CONNECTIONS);
    setTimeout(sendSnapShotPermission, 2000);

  • How to set the control-on hierarchical tree nodes

    Hi,
    I have created form in which at the left it has hierarchical tree structure(BOM) and towards the right it brings up the query results for selected node.
    Now, I have a button upon clicking which I navigate to the root node by issuing
    "Ftree.set_Tree_selection(htree, 1, Ftree.select_on);".
    But, it cannot automatically run the ' when-tree-node-selected' trigger '.
    any solution???
    Its really urgent.I have a customer demo on monday.
    Please help me asap.
    regards,
    Nagadeep.

    Hello Nagadeep,
    couldn't you just put the code from the trigger into a procedure
    and run that after the navigation to the item?
    Just a thought,
    Bernd
    The docs state that:
    No programmatic action will cause the When-Tree-Node-Selected trigger to fire. Only end-user action will generate an event.
    Probably due to performance reasons.
    Bernd
    Message was edited by:
    Bernd Prechtl

Maybe you are looking for