Hierarchical Tree and keyboard navigation

Does anyone know how to use Hierarchical Trees with keyboards, or to disable keyboard actions? (forms 9.0.4)
My form has a tree which does processing in a When-Tree-Node-Selected trigger to populate some blocks depending on the selected node. If the user selects nodes with the mouse then all is fine, but if they move between nodes with the keyboard then the processing for each selected node is only run the next time a node is selected with the mouse. This means the data for each node will flash up in the blocks for a split second when the mouse is next used.
I've tried Key-Up/Key-Down triggers to prevent keyboard navigation, but they don't fire. Setting Keyboard Navigable to false doesn't fix it either.
Using the When-Tree-Node-Activated trigger doesn't help. The online help says this trigger fires when the user presses Enter or double-clicks a node. I find that each node for which Enter was pressed is processed only when the user next double-clicks a node, and the node they double-click is not processed.
Tree Query:select 1, level, ename, null, null
from scott.emp
connect by prior empno = mgr
start with mgr is NULLWhen-New-Form-Instance:ftree.populate_tree('B.T');When-Tree-Node-Selected (1st and 4th lines commented out when changed to WTNA trigger):if :system.trigger_node_selected = 'TRUE' then
  message(ftree.get_tree_node_property(
            'B.T',:system.trigger_node,ftree.node_label));
  pause;
end if;

Hi James,
We have got the same problem, after searching Metalink I found that this is a known bug. See Metalink Bug no 4565623 (base bug 4509399).
Sjoerd

Similar Messages

  • Hierarchical tree and interacting with data block

    I have a hierarchical tree that is used to pick records that are shown in another data block. I have a list item in the data block that changes the arrangement of nodes in the hierarchy. My problem is that after the update, I select the node, but the wrong data shows up in the other data block (eg. node x is selected, x becomes a child of y, the data for y still appears in the data block even though node x is selected in the tree). There seems to be something wrong with my triggers, but I can't figure out what.
    Here are the triggers that I am using.
    In the tree block, tree item:
    -WHEN-TREE-NODE-SELECTED
    set_block_property(v_data_block, default_where, 'global_id = ' | | v_org);
    go_block(v_data_block);
    execute_query;
    In the data block, list item
    -WHEN-LIST-CHANGED:
    -- find the tree node and select it
    node := Ftree.Find_Tree_Node(...)
    Ftree.set_tree_selection(v_tree,node,Ftree.SELECT_ON);
    -- update the data block to show data from the selected node
    set_block_property('GREENPAGES_DIR', default_where, 'global_id = ' | | :greenpages_dir.global_id);
    go_block('GREENPAGES_DIR');
    execute_query;
    Thanks for your help.

    hi
    i didn't try doing it.. i assume the the reasons can be:
    1.check the value of the variable 'v_org' because 'w-t-n-s' trigger fires twice..
    2. 'w-t-n-s' trigger is not firing eventhough u select it through ur code in the list item trigger.. if not firing, use execute_trigger('w-t-n-s') and remove the last set of code (update section) from the list item trigger..(assuming 'GREENPAGES_DIR' = v_data_block)
    hope this helps u
    ajith

  • Widgets and keyboard navigation

    Hi there. I can call the dashboard up using the keyboard but does anybody know how to move amongst the different Widgets using the keyboard, (like you do with Apps and +command tab+ )?
    Thanks.

    How about this.requestFocus() where this is the Applet

  • 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

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

  • Hierarchical tree - Data Entry Form

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

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

  • 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) ' &#0124; &#0124;
    'from emp ' &#0124; &#0124;
    'connect by prior empno = mgr ' &#0124; &#0124;
    '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.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Query for hierarchical tree

    I am trying to build a hierarchical tree and tried various option but is unable to show the tree. I have tried using record group and also query text. When I used
    Ftree.Set_Tree_Property(htree, Ftree.query_text, 'SELECT 1, hierarchy_level, hierarchy_code, '', hierarchy_desc FROM oms_cust_hierarcy_tree_vw
    connect by prior hierarchy_code = hierarchy_parent
    start with hierarchy_parent is null');
    I got following error:
    "FRM-47313: invalid query for hierarchical tree".
    I am stuck now. Any help will be appreciated.
    Thanks
    Brinder

    dear member try this query
    SQL>
    1 SELECT level, LPAD(' ',2*level-2)||emp.ename ename, emp.empno, emp.mgr, emp.deptno
    2 FROM Emp
    3 CONNECT BY PRIOR emp.empno = emp.mgr
    4* START WITH emp.empno = 7839
    SQL> /
    LEVEL ENAME EMPNO MGR DEPTNO
    1 KING 7839 10
    2 BLAKE 7698 7839 10
    3 MARTIN 7654 7698 10
    3 ALLEN 7499 7698 10
    3 TURNER 7844 7698 10
    3 JAMES 7900 7698 10
    3 WARD 7521 7698 10
    2 CLARK 7782 7839 10
    3 MILLER 7934 7782 10
    2 JONES 7566 7839 10
    3 FORD 7902 7566 10
    4 SMITH 7369 7902 10
    5 Ken 999 7369 10
    3 SCOTT 7788 7566 10
    4 ADAMS 7876 7788 10
    M Rizwan

  • 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

  • Feature Request:  Standard Keyboard Navigation in Media Browser and Project Panel

    It's been a while since I've had time to submit a feature request.  I've wanted to see this one for a while.  If you agree, please submit your own feature request here: http://www.adobe.com/go/wish/
    System Navigational Keyboard Shortcuts in Media Browser and Project Panel
    Windows (and I'm sure Mac) has a standard set of keyboard and mouse navigational shortcuts for keyboard and mouse.  I'm so used to using them in daily browsing (both in Windows Explorer and in any web browser) that missing them in the PPr Media Browser, or getting a different result in the Project Panel, is still very jarring and slows my workflow (even after having used Premiere Pro [again] since version CS4).
    I propose that the Media Browser and Project Panel should honor the OS defaults for keyboard and mouse folder/file navigation.  A few of the standard (Windows) keyboard and mouse navigational shortcuts are listed below (listed in order of most helpful to my own work):
    Moust Back Button = "BACK"
    ALT + LEFT ARROW = "BACK"
    UP, DOWN, LEFT, RIGHT = steps through the various folders within the view.
    UP, DOWN walks through the directory tree while RIGHT expands the currently selected folder and LEFT contracts that directory (twirl down, etc).
    ENTER opens a folder.
    ALT + UP = "Folder Above"
    ALT + RIGHT ARROW = "FORWARD"
    F2 Renames a folder
    ENTER "takes" that name to the clip. (current functionality used ENTER to rename a file/folder).
    ESC cancels the renaming operation.
    Pressing Enter on any piece of Media or Title, etc should take an "expected" action acording to it's context.  (i.e. ENTER on a video clip would load it inot the Source Monitor.  ENTER on a Title would open it in the Title Editor.  ENTER on a folder would take us into that folder).
    These functions exist in both Windows Explorer as well as most modern Web browsers.  When browsing files and Project folders, it's what I've come to expect.  It's muscle memory, if not intuitive.  I realize that many of these keyboard commands are already in use in other windows/panels of the application, therefore, these commands should be Panel-specific (i.e. ALT+LEFT works differently in the Media Browser and Project Panel than it does on the Timeline/Sequence).  And as always, when making such changes (i.e. changing the behavior of ENTER to F2), this set of keys should be highly configurable based on preference:
    Preference:
    checkbox:  Use OS-specific navigational keyboard and mouse commands in Media Browser and Project Panel
    checkbox:  Use the (very few) "classic" Adobe keyboard commands in the Media Browser and Project Panel
    The most common habit I find myself doing in the Media Browser is clicking the BACK button on my mouse—only to realize, yet again, it doesn't work that way in PPr.
    The most common habit I find myself doing in the Project Panel is pressing F2 to rename a folder/bin.  Of course that doesn't work.  And when I've renamed it, I press ENTER to save the name, but that only moves me to the next folder ready to rename it, too.  I also find, out of habit, I try to navigate the bins using the arrow keys and then open the bin/folder using ENTER.  Instead, my bin is asking for a new name and I hit ESC to avoid renaming it—now THERE's a shortcut that works the way it should. 
    I realize this feature may be controversial to some, since it's not the way we're used to doing things in PPr.  However, I'm sure there are just as many out there, like me, who are confounded as to why PPr has never worked with the "conventional" navigation shortcuts found throughout the rest of the operating system, be it Windows or Mac.
    If you agree with this feature request, please submit your own feature request here: http://www.adobe.com/go/wish/

    Nice ideas Jeff.
    There is a site - Flash Catalyst Wishlist/Ideas where you can post these ideas so that the community can vote on them.

  • Hierarchical Tree Style navigation

    Hi,
    Windows xp.
    Oracle 10g,
    database 10g
    I am using Tree style to navigate to my modules , when i navigate to specific Tree item by mouse is working fine
    without any problem . but when i use keyboard key-up or key-down the node selection behavior work fine with keyboard but when i double click on current
    selected node the form select wrong node.
    Code on block contain when - tree -node select trigger;
    </code>
    V_HTree_Item Item;
    V_S_Node FTree.Node;
    V_S_P_Node FTree.Node;
    V_S_N_Value Varchar2(32000);
    V_S_P_N_Value Varchar2(50);
    V_N_Of_Selected_Node Number;
    Begin
         V_HTree_Item := Find_Item(Pkg_1_Nvs_Oracle_ADF_HTree.V_HTree_Item_Name);
         V_N_Of_Selected_Node := FTree.Get_Tree_Property(V_HTree_Item, FTree.Selection_Count);
    If Nvl(V_N_Of_Selected_Node,0) != 0 Then      
         For J IN 1..V_N_Of_Selected_Node Loop
         V_S_Node := FTree.Get_Tree_Selection(V_HTree_Item,J);
         V_S_N_Value := V_S_N_Value ||','||FTree.GET_Tree_Node_Property (V_HTree_Item,V_S_Node,FTree.Node_Value);
         Pkg_1_Nvs_Oracle_ADF_HTree.V_Parent_Node := FTree.Get_Tree_Node_Parent(V_HTree_Item,V_S_Node);
         End Loop;
         Pkg_1_Nvs_Oracle_ADF_HTree.V_Selected_Node := V_S_Node;     
         P_1_Enable_Disable_HTree_BTNS(1);
         Pkg_1_Nvs_Oracle_ADF_HTree.V_H_Tree_Value_Selected := LTRIM(V_S_N_Value,',');
         P_1_HighLight_Display_Block(V_S_N_Value);
              Go_Item(Pkg_1_Nvs_Oracle_ADF_HTree.V_HTree_Item_Name);
    End If;
    <code/>
    Regards
    Edited by: kingadmin on Nov 19, 2011 10:21 PM
    Edited by: kingadmin on Nov 19, 2011 10:22 PM
    Edited by: kingadmin on Nov 21, 2011 7:18 PM
    Edited by: kingadmin on Nov 21, 2011 7:35 PM

    This is why full version numbers are important to mention. If memory serves there was a similar behaviour in 10.1.2.0.2 where the WHEN-TREE-NODE-SELECTED trigger did not fire upon Keyboard navigation and caused some weird behaviour afterwards. This problem was fixed in 10.1.2.3, so if you are not on this patchset you should apply it and retry.
    cheers

  • After login to the e-bank on line of the Eurobank EFG in Serbia error message: "Keyboard Navigation Disabled." appear and furthur work is not possible.

    This problem started about 10-20 days ago.
    After login to the e-bank on line service of the Eurobank EFG Serbia further work is not possible because the screen became gray and an error message appear: Keyboard Navigation Disabled.
    I run the laptop on Win 7 Professional - 64 bit Service Pack 1.
    My default web browser is Mozilla Firefox 21.0.
    Alternative is:
    - Internet Explorer 10
    Version: 10.0.9200.16576
    Update Versions: 10.0.5 (KB2829530)
    I have scanned my laptop and cleaned few fond viruses. Have uninstalled and installed again Java so now I have:
    - Java 7 Update 21
    - Java 7 Update 21 (64-bit)
    I have uninstall and reinstall Firefox.
    Result is that now I can run e-bank online in IE but not in Firefox.
    Customer support service from the bank told me that the problem is related to the browser...

    Problem still exist - looking for a solution.
    You may see how this appears on the screen at the attached picture.

  • 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

  • Forms Builder-hierarchical tree(expanding and collapsing nodes)

    hi friends,
    can anyone help me with populating my hierarchical tree form by using codes for collapsing and expanding?
    for instance when_button_pressed:
    tree_control.expand_all(tree_control.v_item_name); //this is for expanding all the nodes in the tree structure
    well, i have an sql statement in my record group which in turn defines the structure of the hierarchical tree.
    Is it possible to just use the codes 'tree_control.expand_all(tree_control.v_item_name);' like that in the when-button-pressed trigger?
    Thanks for any help :)

    Hi
    can anyone help me with populating my hierarchical tree form by using codes for collapsing and expanding?
    Pls have a look here ....
    Hope this helps...
    Regards,
    Amatu Allah.

Maybe you are looking for

  • Ad hoc connection doesn't work with my 3gs but works with my touch

    I setup an ad hoc connection on my laptop following a guide on the internet. I did this on windows 7 32bit, it worked for my ipod touch but for some reason it won't work with my iphone 3gs (upgraded with the latest updates) I connect to the wireless

  • How can i save and retrieve blob data through forms and reports...

    I have blob data type column and I want to save word, html, gif document in oracle database through forms 6 and retrieve the data into forms and reports. Details : I want to open .doc,.html,.gif file through a button and save it ..and i want retrieve

  • REQUIREMENT FOR ADOBE FORMS

    We are having adobe live cycle designer 8.2 version Sap gui 6.4 Acrobat reader 7 But we are unable to view the layout in the transaction SFP the error i am getting is "ERROR WHILE GENERATING DOCUMENT" IT WOULD BE VERY HELPFUL IF YOU COULD LET US KNOW

  • Vendor interest

    Hi guys, Let me know if someone had already worked with vendor interest. Is it possible to treat it using payment terms? For my understanding  we can't. Does someone know another way? Thanks

  • Order booking on one customer and invoicing a different customer

    Hi all, I have a requirement wherein I book a sales order on one customer C1. And I need to ship the goods to some C2, who is a customer for C1. I should invoice C2 and not C1. I get the payment from C2. how can I achieve this? plz help. Thanks in ad