Hierarchical tree on web

hy everyone,
i've got a really strange problem with a hierarchical tree. it runs fine with C/S, i can expand and collapse as much branches i like.
but when i put it on the web (9iAS Server and MSIE 5.01 as client) and expand some tree nodes the complete web application looses its database connection.
so i can't even navigate to the "show errors" in the navigation bar, everything dead.
do you have any idea why this happens only on the web and not on C/S ?
if you have more questions relating to this problem or need a test case, please contact me.
thanx for replys, martin
null

this is a bug of FORMs 6i and is fixed with patch 8?
martin

Similar Messages

  • Hierarchical tree in web forms 10g - form freezing

    I have an application with an hierarchical tree on one of the forms - the application worked fine as client/server back in forms 6 but now that it is web enabled in 10g there are problems with the tree causing the form to freeze, then the entire application has to be closed. It doesn't seem to matter if you are selecting a node or creating a new node both have caused the form to freeze. It doesn't happen all of the time but it seems that the longer the application has been in use the more it starts to freeze. Any ideas? Is there a known problem with trees in web forms? Thanks
    Joanne

    At the root of my tree is a patient (I work in the health care industry) and then for that patient there are clinic visits, surgeries, etc (there are 16 nodes at this level). and under each of these are dates when the visits occured (there can be an unlimited number of nodes at this level). This is some of my code for populating the tree:
    if :GLOBAL.patient_seq is not null then
    -- turn the tree on
    set_item_property('tree_block.tree_item', ENABLED, PROPERTY_TRUE);     
    set_item_property('tree_block.tree_item', NAVIGABLE, PROPERTY_TRUE);          
    lv_tree_id := find_item('TREE_BLOCK.TREE_ITEM');     
    --refresh the tree back to it's original state from the database                          
    Ftree.Set_Tree_Property(lv_tree_id,
         Ftree.RECORD_GROUP,
         FIND_GROUP('TREE_GROUP'));
    -- create the clinic visits branch
    wcchn_tree_items_pkg.get_visits(lv_visit_table, :global.patient_seq);
    for lv_counter in 1.. lv_visit_table.count loop
    lv_site := wcchn_locations_pkg.get_location_code(lv_visit_table(lv_counter).site);
    create_visit_node( lv_visit_table(lv_counter).visit_date || ' - ' || lv_site,
         lv_tree_id,
    lv_visit_table(lv_counter).seq_nr);
    end loop;
    Below is the procedure referred to in the above segment of code:
    PROCEDURE CREATE_VISIT_NODE (pi_date IN VARCHAR2, pi_tree_id IN ITEM, pi_seq IN NUMBER) IS
    lv_return_value NUMBER;
    lv_node_value varchar2(100);
    lv_search_node FTREE.node;
    BEGIN
    lv_search_node:=FTREE.Find_Tree_Node(pi_tree_id,                              'CLINIC VISITS',                         FTREE.FIND_NEXT,                         FTREE.NODE_LABEL,                         FTREE.ROOT_NODE,                         FTREE.ROOT_NODE);
    lv_node_value:='G' || to_char(pi_seq);
    if :GLOBAL.ACTION_INDICATOR = 'INSERT' then
              lv_return_value:=FTREE.Add_Tree_Node(pi_tree_id,                    lv_search_node,                         FTREE.PARENT_OFFSET,                          1,                                    FTREE.LEAF_NODE,                          pi_date,                                   NULL,                                    lv_node_value);
    else
              lv_return_value:=FTREE.Add_Tree_Node(pi_tree_id,                              lv_search_node,                          FTREE.PARENT_OFFSET,                          FTREE.LAST_CHILD,                          FTREE.LEAF_NODE,                          pi_date,                                   NULL,                                    lv_node_value);
    end if;
         FTREE.Set_Tree_Node_Property(pi_tree_id,                              lv_search_node,                              FTREE.NODE_STATE,                         FTREE.EXPANDED_NODE);
    END;

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

  • Hierarchical tree with iconic nodes

    hi i'm using database - 10g, developer suite - 10g; created a hierarchical tree and the icons are displaying along side the nodes when they are being selected or activated.
    problem - i've stored the icons in g:\ICONS (all gif icons). but when i run the form it is picking up the icons from the following location - C:\Documents and Settings\development\Oracle Jar Cache\frmall_jinit.jar-63ace618-1160d49b\oracle\forms\icons. I've a button in the same form and the icon showing on it is from the location G:\ICONS(as desired); but in case of tree it's from the location which is not desirable.
    any help.

    Hello,
    You need to change the imagebase parameter to be documentbase instead of codebase.
    When imagebase is set to codebase forms looks for Images in the jar files and then in the absolute path, otherwise it check direct path.
    For details in deploying the Images please check:
    http://docs.oracle.com/cd/B14099_19/web.1012/b14032/configure009.htm
    Clear the Java cache and browser cache after the above changes!
    Regards,
    Alex
    If someone's answer is helpful or correct please mark it accordingly!

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

  • Folder icon in a hierarchical tree

    Hello, I don't know how can I put a folder icon in a hierarchical tree.
    I have this query, and I know I have to change the 4th column, but I don't know how to do it.
    SELECT -1,level,d_carpeta, null, id_carpeta
    FROM DOCUMENTUM.doc_carpetas
    START WITH id_carpeta_padre is null
    CONNECT BY id_carpeta_padre = prior id_carpeta
    and in the trigger (WHEN-TREE-NODE-SELECTED) I have this code
    declare
    htree ITEM;
    n_selected NUMBER;
    current_node FTREE.NODE;
    begin
    htree := Find_Item('blk_arbol_detalle.arb_carpetas');
    n_selected := Ftree.Get_Tree_Property(htree, Ftree.SELECTION_COUNT);
    FOR j IN 1..n_selected LOOP
    current_node := Ftree.Get_Tree_Selection(htree, j);
    if Ftree.Get_Tree_Node_Property(htree,
    :SYSTEM.TRIGGER_NODE,Ftree.NODE_DEPTH) > 0 then
    :blk_detalle.id_carpeta := Ftree.Get_Tree_Node_Property(htree,
    :SYSTEM.TRIGGER_NODE, Ftree.NODE_VALUE);
    else
    :blk_detalle.id_carpeta := null;
    end if;
    END LOOP;
    end;

    Jesús,
    just give it the name of an icon without the '.ico' extension. If you run it on the Web then the icon must be available in a gif format. Just the name nothing else. Make sure that in c/s the icon is in a directory mapped by the UI_ICON variable in of the Window Registry. For configuring icons on teh Web, have a look at this paper
    http://otn.oracle.com/products/forms/pdf/webicons.pdf
    If you need different folder icons on different tree levels, then instead of using a query, use a record group to populate the tree.
    Frank

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

  • 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

  • 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

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

  • Add checkbox on the nodes of Hierarchical tree in oracle forms 9i

    Hi,
    I am working on oracle forms 9i.I have to add checkbox at the place of node(+/-) in Hierarchical tree so,
    that user can select or deselect the Tree.That can do in oracle forms but how i don't know.
    can anybody help me.....
    Regards,
    Hemant

    You can't change this aspect of the Tree Control in Oracle Forms using built-in functionality. You might be able to extend the Tree Control using Java, but you have to do this yourself. : (
    Craig...

  • 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

Maybe you are looking for