WHEN-TREE-NODE-EXPANDED not fire with keyboard in FORMS 10G

I have a Hierarchical Tree. When i click in any node with mouse, works fine.
When i use the key rigth and left of the keyboard, the tree expanded, but not fire the WHEN-TREE-NODE-EXPANDED.
In FORMS 6i works fine.

It's a bug 4509399. There is a oneoff patch on Metalink:
https://metalink.oracle.com/metalink/plsql/f?p=130:14:4034066994841324251::::p14_database_id,p14_docid,p14_show_header,p14_show_help,p14_black_frame,p14_font:NOT,331369.1,1,1,1,helvetica

Similar Messages

  • When-tree-node-selected not fire while navigating through keyboard(Urgent)

    i am using treeview for displaying chart of account and fires the above said trigger in the form, but the trigger has no effect whilt navigating tree view with keybpard arrow keys until user explicitly select the node through mouse help me out plzz
    i want that trigger also fires when user navigate and select node through keyboard or through mouse thanks
    its urgent

    Stop duplicating your threads!!!
    when-tree-node-selected (Urgent)
    You posted the same question 2 days ago and I've answered you, you didn't even provide an exact version of your forms.
    Posting again will not change your problem.
    Do not waste space on the forum.

  • WHEN-TREE-NODE-SELECTED Action required..!

    Hello all,
    i am using a tree for the first time, i want to reflect the value of the node's id and desc in it's database item where they r inserted.
    The problem is the desc is not displayed NOT.
    But the node id is working just fine..Why ?
    Can anyone help me pls..?
    i am using the following code:
    WHEN-TREE-NODE-SELECTED Trigger:
    :EQUIPMENT_TYPE_D := :SYSTEM.TRIGGER_NODE;
    --The above returns the item_id of the node.
    BEGIN
           SELECT EQUIPMENT_TYPE
           INTO :EQUIPMENT_TYPE
           FROM INSP_EQUIPMENT_TYPE
           WHERE EQUIPMENT_TYPE_D = :EQUIPMENT_TYPE_D ;
    Exception
    When No_Data_Found THEN NULL;
    When Others THEN
                                     Message ('OTHERS' || SQLCODE || ' And ' || SQLERRM);
                                     Message ('OTHERS' || SQLCODE || ' And ' || SQLERRM);                          
    END;Regards,
    Abdetu..

    The WHEN-TREE-NODE-SELECTED trigger fires twice, it fires when selecting the node and when deselcting the node.
    First make sure that you SQL works in SQL*Plus, Handle your EXCEPTION correctly, remove the NULL from your exception and put a message, maybe your SQL is not returning any rows.
    add the below if condition in your trigger. This will make your code to be executed only when you select the node and not when you deselect it.
    IF :SYSTEM.TRIGGER_NODE_SELECTED = 'TRUE' THEN
      ...    --Your execution code
    END IF; If your item name is the node's label itself you can easily do this:
    IF :SYSTEM.TRIGGER_NODE_SELECTED = 'TRUE' THEN
      :your_block.your_item  := FTREE.GET_TREE_NODE_PROPERTY(HTREE$, :SYSTEM.TRIGGER_NODE, FTREE.NODE_LABEL);
    END IF; Tony
    Edited by: Tony Garabedian on Sep 11, 2008 12:29 PM

  • Tree item when-tree-node-selected fires differently from 6i to 10g.

    In forms 6i, when you keyboard navigate between tree nodes, the wtns trigger will fire. In 10g it does not. In 10g, it will fire if you press the tab key or mouse click on a node.
    Anyone know if this was done on purpose?
    I ran into this after finally trying my props.fmb in 10g. It works fine in 6i, but not in 10g
    copy of my form is here:
    http://www.tailboom.com/oracle.php
    Forms [32 Bit] Version 6.0.8.18.3 (Production) cleint server
    Forms [32 Bit] Version 10.1.2.0.2 (Production)
    I wrote most of the tree handling code for oracle apps APPTREE. This is the code that most if not all tree's in apps uses to build standard tree. So I have a pretty good understanding of the forms tree item. And know the wtns fired for web forms 6i on every node like 6i client server. This is very strange IMO.
    Thanks.
    --pat                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Oleg,
    thanks for the reference. Although the bug you identify deals with when-tree-node-activated, it is possible they fixed the when-tree-node-selected issue at the same time. With my test tree, i can currently duplicate both issues. I tried to download the patch, but it is only available for linux and unix. No windows patch. I don't have my linux env up and running to where I can test yet. So I can not confirm.
    --pat                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Hierarchical Tree: When-Tree-Node-Activated is not working

    I'm working Forms 10G rel.2.1 and also using application server 10G 2.
    my problem is in Hierarchical Tree [When-Tree-Node-Activated] is not working in Enter this is working in Enter+Tab
    I want to this trigger is working in only Enter.
    I'm waiting quick response

    node_value is only item which have transfer the form or report name
    Trigger Name : WHEN-TREE-NODE-ACTIVATED
    Declare      
         htree                Item ;
    Begin
         --clear_values;
    --           htree := Find_Item('tree.htree');
    -- Find the value of the node clicked on.
    :node_value := ftree.Get_Tree_Node_Property(htree, :SYSTEM.trigger_NODE, Ftree.NODE_VALUE);
    ----Above node value transfer the procedure and call the form with node_value(Form Name)
         Execute_CMD_PROC;
    Exception
         When Others Then Null;
    End ;
    when i enter then no value but when i enter+tab then show the form

  • TREE-NODE-EXPANDED

    Hi all
    i have a problem in the tree node. i was upgrading the application from forms9i to forms10g. but after the upgrade the tree node does not work as before.
    every time i try to expand the tree with the keyboard ( the arrow key - the enter key ) i need to press the (tab key) to expand the tree .
    also when i try to open any form from the tree by pressing the (enter key) i need to press the (tab key).
    but when i use the mouse (double click) it works well.
    Thanx.

    It's a bug 4509399. There is a oneoff patch on Metalink:
    https://metalink.oracle.com/metalink/plsql/f?p=130:14:4034066994841324251::::p14_database_id,p14_docid,p14_show_header,p14_show_help,p14_black_frame,p14_font:NOT,331369.1,1,1,1,helvetica

  • Htmlb:tree differentiate between nodeclick and tree node expander click

    Hi,
    how can i differentiate between nodeclick and tree node expander (to get to its children) click in my event processing in htmlb:tree element.
    <u><b>What i am trying to achieve?</b></u>
    Onload just load root node and its immediate children.
    On node expand get the children of the current node and modify htmlb:tree table2 with additional node inofs.
    on node click  call some client function.
    But my issue is that i am not able to differentiate between node expander click and node click in my event handling. Any help on this is appreciated.
    (I am not using MVC)
    Thanks in advance.
    Regards
    Raja
    Message was edited by: Durairaj Athavan Raja

    After reading your weblog I think I understand better. I did some testing with my example.  I am using the toggle = "true", so that the page returns to the server each time an expander is selected.
    <htmlb:tree id          = "myTree1"
                  height      = "75%"
                  toggle      = "true"
                  title       = "<b><otr>EQI Reporting Tree</otr></b>"
                  width       = "90%"
                  onTreeClick = "myTreeClick"
                  table       = "<%= application->selection_model->itview                             %>" >
      </htmlb:tree>
    However I have not added any coding in my event handler to respond to the expander event.  I only respond to myTreeClick (which loads some data for the given selection).  The BSP tree element itself must be doing the hard work for me. 
      if event_id cs 'tr_myTree1'.
        data: tree_event type ref to cl_htmlb_event_tree.
        tree_event ?= htmlb_event.
        if tree_event->server_event = 'myTreeClick'.
          clear appl->message1.
          appl->selection_model->get_chart_data( appl = appl
                                                 node = tree_event->node ).
        endif.
      endif.
    I pass my entire tree defintion to the element.  It appears that it only sends visible nodes to be rendered. When the expander is selected, I don't have to do anything, the tree re-renders with only the newly visible rows. 
    I tested and turned off the toggle (toggle = "false") and my page took forever to load because it was sending all the nodes to the frontend on the first load.

  • WHEN-TREE-NODE-SELECTED

    Hello alllll
    i have a master-detail block besides a tree block
    All i wanna do Simply and logically is to select a tree node then a Master-Detail records related to this tree node is to be retrieved...
    _i have the following code in the WHEN-TREE-NODE-SELECTED Trigger as follow:_
    DECLARE
      htree ITEM;
       node_value VARCHAR2(100);
    BEGIN
    IF :SYSTEM.TRIGGER_NODE_SELECTED = 'TRUE' THEN
    -- Find the tree itself.
    htree := FIND_ITEM ('BL_TREE.IT_TREE');
    -- Find the value of the node clicked on.
    NODE_VALUE := FTREE.GET_TREE_NODE_PROPERTY( htree, :SYSTEM.TRIGGER_NODE ,  Ftree.NODE_LABEL );
       GO_BLOCK ('STP_COMPANIES');  
    EXECUTE_QUERY;
        END IF;
    END;The above code retrieved data as a whole
    but i want 2 filter the data selected from the tree node as i said 2 be displayed as filtered by the tree selection.
    so i used the following code as follow:
    GO_BLOCK ('GL_COST_CENTERS');  
       set_block_property('GL_COST_CENTERS', DEFAULT_WHERE, 'COMPANY_ID ='||
       ftree.get_tree_node_property('BL_TREE.IT_TREE', :SYSTEM.TRIGGER_NODE, FTREE.NODE_VALUE));
    EXECUTE_QUERY;Any help will be appreciated...
    Thanks in Advance..
    Regards,
    Abdetu...

    Hello thanks for reply,
    STP_COMPANIES your detail block? no it's the master
    gets the "Label" of the tree node not the value of the selected nodei tried both but nothing retrieved...!
    i thought that the value is the serial of the node and the lable is the text displayed on the tree node no ?
    Is this code in the same When-Tree-Node-Selected trigger or a different trigger?yes WHEN-TREE-NODE-SELECTED as my post titled...
    is GL_COST_CENTERS the master block? no it's the detail ; every company --- has many <- cost centers
    are the tables related? yes
    just query the master table and the detail table will automatically be filter through the relationship?i did and it works filtering through the company_id, But what i wanna do is 2 filter the data displayed in the two block Master-Detail according 2 the selection of the tree
    Say i selected the ....
                               + Assets node
                               |
                               |------ - Furnitures    's node is selected so alll the related details of the furniture is displayed in the Master-BLock
                               |         |
                               |         +----chairs
                               |         |
                               |         +----tables
                               |        
                               +----- LAnds
                               |So the Tree is used 2 Query or retrieved the selected node's data accordingly...
    hope i well explained my issue ..!
    is it possible 2 do that ?!
    Thanks Again..
    Regards,
    Abdetu...

  • Tree Node selected not firing all the time

    I have a tree menu that calls other forms when the user selects a tree branch (see
    When-tree-node-selected trigger below).
    This works fine, but if the user closes the form and want to re-open it, the trigger doesn't fire unless the user clicks off the branch item and back on it. How can I make it work whenever the user clocks the branch item?
    if :SYSTEM.TRIGGER_NODE_SELECTED = 'TRUE' then null;
    node_value := Ftree.Get_Tree_Node_Property(htree, :SYSTEM.TRIGGER_NODE, Ftree.NODE_VALUE);
    open_a_form(l_form,l_module,l_form_code);
    end if;

    Have you tried setting the node the node to deselected programmatically?

  • OPEN FORM WHEN-TREE-NODE-SELECTED

    hello all...
    i have a tree and i wanna when i click on the node another forms open due to form name
    i have table includes form_if,form_name " as in H.D.D"
    when i present all nodes and i click on the node the form opened and when i click on other node from the tree
    " the last previous selected node also opened and when i close it the new form is opened and so on"
    the code in when-tree-node-selected is
    DECLARE
    node_value varchar2 (100);
    frm_name varchar2 (100);
    path varchar2 (100);
    BEGIN
    node_value := ftree.get_tree_node_property('block33.sub_TREE',:SYSTEM.TRIGGER_NODE, FTREE.NODE_VALUE);
    select FRM_NAME into frm_name
    from forms_list
    where FO_ID = node_value
    path :=(frm_name||'.fmx');
    call_form(path);
    path:=null;
    frm_name:=null;
    EXCEPTION
    WHEN NO_DATA_FOUND THEN NULL;
    END;

    Hi,
    >
    when-tree-node-selected
    >
    Fires when a node is selected or deselected.
    So your code is getting executed for selection and deselection
    use SYSTEM.TRIGGER_NODE_SELECTED to check
    IF SYSTEM.TRIGGER_NODE_SELECTED THENRegards
    Yoonas

  • Only one expression can be specified in the select list when the subquery is not introduced with EXISTS.

    hi all
    i have a table that name is:
    TiketsHeader 
    but i used this code
    SELECT TicketsHeaderId, Active, TH.PersonRef,P.Fname + ' ' + P.Lname AS NF, Serial, TicketsCnt, StartSerial, EndSerial, KindDate, StratDate, EndDate,
    MonthsRef1,(SELECT * FROM dbo.Months M WHERE M.MonthsId= MonthsRef1 ) AS MonthsName1 , MonthsRef2, MonthsRef3, WeekDaysRef,
    PoolTimesRef, TH.Descreption
    FROM dbo.TiketsHeader TH
    INNER JOIN Person P ON P.PersonId= TH.PersonRef
    i see this error:
    Msg 116, Level 16, State 1, Line 2
    Only one expression can be specified in the select list when the subquery is not introduced with EXISTS.
    how to solve it
    please help me
    Name of Allah, Most Gracious, Most Merciful and He created the human

    SELECT TicketsHeaderId, Active, TH.PersonRef,P.Fname + ' ' + P.Lname AS NF, Serial, TicketsCnt, StartSerial, EndSerial, KindDate, StratDate, EndDate,
    MonthsRef1,(SELECT * FROM dbo.Months M WHERE M.MonthsId= MonthsRef1 ) AS MonthsName1 , MonthsRef2, MonthsRef3, WeekDaysRef,
    PoolTimesRef, TH.Descreption
    FROM dbo.TiketsHeader TH
    INNER JOIN Person P ON P.PersonId= TH.PersonRef
    A Sub query like this can only return one column, not serveral like here with the star *. Replace the star by one column Name that you want to query.
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • Msg 116, Level 16, State 1, Line 6 Only one expression can be specified in the select list when the subquery is not introduced with EXISTS.

    Hello,
    Can anyone help me?
    select year(po.rdata) as 'Ano', 
    sum(etotal) as 'Valorp' ,
    (select year(fo.data),Sum(etotal) 
    FROM fo (nolock) 
    where  not exists ( select 1 from pl (nolock) where pl.adoc = fo.adoc and pl.cm = fo.doccode ) 
    group by year(fo.data))as 'Valorap'   
    from po 
    group by year(po.rdata)
    order by year(po.rdata)
    Error 
    Msg 116, Level 16, State 1, Line 6
    Only one expression can be specified in the select list when the subquery is not introduced with EXISTS.
    Consultora

    Hi Prashanth,
    select year(po.rdata) as 'Ano',
    sum(etotal) as 'Valorp' ,
    (select Sum(etotal)
    FROM fo (nolock)
    where not exists ( select 1 from pl (nolock) where pl.adoc = fo.adoc and pl.cm = fo.doccode )
    group by year(fo.data))as 'Valorap'
    from po(nolock)
    group by year(po.rdata)
    order by year(po.rdata)
    Gives me the error: 
    Msg 512, Level 16, State 1, Line 1
    Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression.
    Thanks
    Consultora

  • WHEN-TREE-NODE-SELECTED want to return parent_id ?

    Hello all,
    In WHEN-TREE-NODE-SELECTED Trigger
    i want to return the parent_id from the database
    i have already returned the pk as follows:
    DECLARE  
           pk               INSP_EQUIPMENT.EQUIPMENT_ID%TYPE;
          PARENT_PK   INSP_EQUIPMENT.PARENT_ID%TYPE;
    BEGIN 
       IF  :SYSTEM.TRIGGER_NODE_SELECTED  = 'TRUE' THEN   --node selected
        pk := ftree.get_tree_node_property(
            'TREE_BLOCK_TEST.TREE13',
            :system.trigger_node,
            ftree.node_value);
           message('pk: '||pk);  -- works fine
            message('pk: '||pk);
    {code}<br /><br /><br /><br />The Questiuoin is how could i returned the parent_id <br /><br />i used the same code as follows:<br /><br /><br /><br /><br /><br />{code:java}
    BEGIN 
       IF  :SYSTEM.TRIGGER_NODE_SELECTED  = 'TRUE' THEN   --node selected
        PARENT_PK := ftree.get_tree_node_property(
            'TREE_BLOCK_TEST.TREE13',
            :system.trigger_node,
            ftree.node_value);
           message('PARENT_PK : '||PARENT_PK );  -- works Wrond it returns the same pk
            message('PARENT_PK : '||PARENT_PK );
    {code}<br /><br /><br /><br /><br /><br />i tried also tried <br /><br /><br /><br />{code:java}
      PARENT_PK := ftree.Get_Tree_Node_Parent(
            'TREE_BLOCK_TEST.TREE13'
            ftree.node_value);
            message('PARENT_PK: '||PARENT_PK); -- returns rubbish number
            message('PARENT_PK: '||PARENT_PK); 
    {code}<br /><br /><br /><br />Quick Help will be appreciated..<br /><br /><br /><br />Regards,<br /><br /><br /><br />Abdetu..                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Thanks Tony for reply,
    Getting the folowing error:
    FRM-47307: Cannot get the properties of the tree root node.Cause:  GET_TREE_NODE_PARENT or GET_TREE_NODE_PROPERTY attempted to obtain information from the root node.
    Action:  Only invoke the built-ins against valid nodes.
    Level:  99
    Type:  ErrorRegards,
    Abdetu..

  • WHEN-TREE-NODE-SELECTED need 2 Execute-Query on Master-Detail data block

    I optimize tree using this link
    http://andreas.weiden.orcl.over-blog.de/article-29307730.html_+
    For huge amount of data (Accountings)
    All i need for now is
    WHEN-TREE-NODE-SELECTED need 2 Execute-Query on the data block
    DECLARE
    htree ITEM;
    node_value VARCHAR2(100);
    BEGIN
    IF :SYSTEM.TRIGGER_NODE_SELECTED = 'TRUE' THEN
    -- Find the tree itself.
    htree := FIND_ITEM ('BL_TREE.IT_TREE');
    node_value := FTREE.GET_TREE_NODE_PROPERTY( htree, :SYSTEM.TRIGGER_NODE ,  ftree.node_value  );
       GO_BLOCK ('GL_ACCOUNTS');
       set_block_property('GL_ACCOUNTS', DEFAULT_WHERE , 'ACCOUNT_ID ='|| node_value  );
    EXECUTE_QUERY;
    END IF;
    END;The above code is working fine 4 the detail block which is *'GL_ACCOUNTS'*
    when i substitute is Master block which is 'GL_ACCOUNTS_TYPES' it doesn't display all data
    Help is Appriciated pls.
    Regards,
    Abdetu...

    Hello
    In WHEN-TREE-NODE-SELECTED i modified the following code :_
    DECLARE
            htree ITEM;
           node_value VARCHAR2(100);
           parent_node FTREE.NODE;
    BEGIN
      IF :SYSTEM.TRIGGER_NODE_SELECTED = 'TRUE' THEN
      -- Find the tree itself.
      htree := FIND_ITEM ('BL_TREE.IT_TREE');
      -- Get the parent of the node clicked on. 
                  parent_node := FTREE.GET_TREE_NODE_PARENT ( htree, :SYSTEM.TRIGGER_NODE );
           GO_BLOCK('GL_TYPES');
                set_block_property('GL_TYPES', DEFAULT_WHERE , 'TYPE_ID ='|| parent_node  );
                  EXECUTE_QUERY;
      -- Get the detail of the parent node
          node_value := FTREE.GET_TREE_NODE_PROPERTY( htree, :SYSTEM.TRIGGER_NODE ,  ftree.node_value  );
               GO_BLOCK('GL_ACCOUNTS');
               set_block_property('GL_ACCOUNTS', DEFAULT_WHERE , 'ACCOUNT_ID ='|| node_value  );     
                   EXECUTE_QUERY;
          END IF;
    END;
    FRM-40350 : Query caused no records to be retrieved but i have records in the data base ...!
    Well, Do u think that's because in ur package i retrieve only the detail block ?
    Regards,
    Abdetu...

  • What is the difference between WHEN-TREE-NODE-ACTIVATED and

    Hello
    Pls tell me, what is the difference between:
    WHEN-TREE-NODE-ACTIVATED Trigger and
    WHEN-TREE-NODE-SELECTED Trigger
    Best Regards,
    Abdetu..

    in the WHEN-TREE-NODE-SELECTED trigger:
    When selecting
    IF :SYSTEM.TRIGGER_NODE_SELECTED = 'TRUE' THEN
      :GLOBAL.VARIABLE := <a value>;
      :PARAMETER.PARAM1 := <a value>;
      GO_BLOCK('BLOCK_B');
      EXECUTE_QUERY;
    END IF;
    When deselecting
    IF :SYSTEM.TRIGGER_NODE_SELECTED = 'FALSE' THEN
      ERASE('GLOBAL.VARIABLE');
      :PARAMETER.PARAM1 := NULL;
      GO_BLOCK('BLOCK_B');
      CLEAR_BLOCK(NO_VALIDATE);
    END IF;Of course this is a simple example.
    Tony

Maybe you are looking for

  • Sending from Mail - email name

    I have my yahoo emails coming to my Mail software and also emails from my website directing to this. I want to be able to send emails with my website address rather than the yahoo name. How can I do this?

  • RAC interconnect and crossover

    Let assume that we have only 2 nodes in oracle cluster. What is better for interconnect: Crossover or network with switch and why? Thank you. ps. we have dispute with 2nd DBA.

  • Extension Manager 6.0.7-Update Installation fehlgeschlagen Fehlercode: U44M1P7

    Dieser Fehler wurde wahrscheinlich schon oft diskutiert. Aber ich verstehe kaum was davon, da ich kein Computer-Profi bin. Ich habe das Problem bei meinem iMac und MacBook Pro. Gibt es hier eine einfach Hilfe, für die man kein Studium braucht? Danke.

  • Scope of check

    Hi Once after creation SO, under Scope of check issue qty remaining qty is showing zero for one of the material. If i goto VA02 after clicking scope fo check values for issues showing Zero. Where as in VA03 its showing correct values. Any reasons for

  • Export Problem from Motion to FCP

    When I export an animation from Motion and import it into Final Cut, the clip plays faster than it did in Motion. It's as if it's playing at a higher frame rate. I know the project in Motion hasn't been rendered, but it plays too fast in the export.