Key navigation

how can i use Key navigation ( Enter KeY)For two boolean ( Ok1,OK2)in one vi,because it work only for one when irun the program.
someone can help me with a sample
Attachments:
Key.vi ‏54 KB

Instead of using Key Navigation, try the event structure like in the attached example. I didn't use the Booleans in the example but you can add those as well.
Attachments:
Key_mod.vi ‏56 KB

Similar Messages

  • Key navigation in forms 10g

    During migration of forms 6i to 10g, we are encounterd the followng problem
    In 6i return key navigation is sink with up/down arrow keys.but in 10g up/down key is not sink with return key or tab key.

    I don't understand your problem. Could you give some more details?

  • Regarding Tab key Navigation in a page

    Hi,
    I have a requirement regarding the tab key navigation on a page.
    Suppose the focus is on the last field of a page, on clicking the tab key i should go to the first field in the page not the url. i tried using tab index, but the problem is that after coming back to the first field from the last field, on clicking on tab again it does not go on as usual, it suddenly jumps to the url from there.
    Regards
    Krishna

    OK Here is what I have ...
    public class MultipleEditorsPerColumnJTable extends JTable {
    /** Creates a new instance of MultipleEditorsPerColumnJTable */
    public MultipleEditorsPerColumnJTable( int the_column) {
    this.myColumn = the_column;
    this.rowEditors = new ArrayList();
    setFocusTraversalKeys(KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS, Collections.EMPTY_SET);
    setFocusTraversalKeys(KeyboardFocusManager.BACKWARD_TRAVERSAL_KEYS, Collections.EMPTY_SET);
    protected boolean processKeyBinding(KeyStroke ks, KeyEvent e,int condition, boolean pressed) {
    boolean isSelected = false;
    if (ks == KeyStroke.getKeyStroke(KeyEvent.VK_TAB,0)) {
    int selRow = getSelectedRow();
    int rowCount = getRowCount();
    int selCol = getSelectedColumn();
    if (selCol == 1) { isSelected= getCellEditor(selRow,selCol).stopCellEditing();}
    int targetRow = (selRow + 1) % rowCount;
    this.editCellAt(targetRow, 1);
    this.getComponentAt(targetRow, 1).requestFocus();
    return super.processKeyBinding(ks,e,condition,pressed);
    I think I know why the requestFocus() is not working. OK, I have a MultipleEditorsPerColumnJTable (sub of JTale), JTextPane, JButton and JLabel. The textpane, label and button have individual editors and renderers. Each time I want to display a new Row, I re-render these components and add it to the table.
    Now with the above code, it still navigates to the next component in the row/ first column in next row depending on the current column. What am I doing wrong?
    Thanks,
    Praveen.

  • Tab Key Navigation in JTable

    Hello All,
    Can anyone please help me with Tab key navigation in a JTable.I
    read all the messages in this group but couldn't implement one.It
    would be a great help if anyone can provide me a working example of how
    to control the tab key in the JTable. I have a JTable with some of the
    columns not editable, I want the focus to be in the first cell and
    whenever the TAB key is pressed, the focus should go to next editable
    cell and select the data in it.For example: if you take a simple table of 4 columns with column 2 not editable, The focus should begin with the first cell(1st column,1st row) and goto (3rd column,1st row) whenever TAB is pressed.It should work in reverse when SHIFT-TAB is pressed.
    I'm new to Java Swing.I would greatly appreciate if anyone can provide me a working example.
    Thanks in advance,
    siddu.

    OK Here is what I have ...
    public class MultipleEditorsPerColumnJTable extends JTable {
    /** Creates a new instance of MultipleEditorsPerColumnJTable */
    public MultipleEditorsPerColumnJTable( int the_column) {
    this.myColumn = the_column;
    this.rowEditors = new ArrayList();
    setFocusTraversalKeys(KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS, Collections.EMPTY_SET);
    setFocusTraversalKeys(KeyboardFocusManager.BACKWARD_TRAVERSAL_KEYS, Collections.EMPTY_SET);
    protected boolean processKeyBinding(KeyStroke ks, KeyEvent e,int condition, boolean pressed) {
    boolean isSelected = false;
    if (ks == KeyStroke.getKeyStroke(KeyEvent.VK_TAB,0)) {
    int selRow = getSelectedRow();
    int rowCount = getRowCount();
    int selCol = getSelectedColumn();
    if (selCol == 1) { isSelected= getCellEditor(selRow,selCol).stopCellEditing();}
    int targetRow = (selRow + 1) % rowCount;
    this.editCellAt(targetRow, 1);
    this.getComponentAt(targetRow, 1).requestFocus();
    return super.processKeyBinding(ks,e,condition,pressed);
    I think I know why the requestFocus() is not working. OK, I have a MultipleEditorsPerColumnJTable (sub of JTale), JTextPane, JButton and JLabel. The textpane, label and button have individual editors and renderers. Each time I want to display a new Row, I re-render these components and add it to the table.
    Now with the above code, it still navigates to the next component in the row/ first column in next row depending on the current column. What am I doing wrong?
    Thanks,
    Praveen.

  • How do I get key navigation to work in Labview PDA?

    I want to be able to press a key on my Windows CE device and toggle a boolean control on my application.  However, when I set the key navigation for the control to toggle with F1, it doesn't work?  What am I doing wrong?

    Key navigation and using tab to switch between front panel controls are not supported. You can find more information regarding this from the LabVIEW 8 Help under PDA Module >> Creating  PDA VIs >> Designing PDA VI Front Panels.
    If you would like to make a product suggestion that this be supported, I would encourage you to go to ni.com and click Contact NI.
    Jarrod S.
    National Instruments

  • Use spacebar to toggle in key navigation

    I want to use the spacebar as a start stop button in my application. It's not listed under key navigation is there a way to do it programmatically?
    Solved!
    Go to Solution.

    The terminals inside the event case have Char and Scan Code, you can read either one and compare it to the value for space (Char =32,  Scan Code = 57)

  • IECanvas browser + Tab key navigation

    When I embed IE into IECanvas bowser, does it support TAB key navigation?
    If not, How to achieve the same?

    See
    http://www.yourhtmlsource.com/forms/formsaccessibility.html
    Assign the tabindex attribute on the elements you want according to your desired navigation sequence.

  • Key navigation for JTable

    I have a JTable and i need to select its rows during key navigation.
    Say i have 23 columns in this table and just for test purposes everytime on keypressed i want to select 2nd row. I am doing it in following way within KeyPressed Event.
    int[] indexes = table.getSelectedRows();
    table.requestFocus();
    int[] cols = table.getSelectedColumns();
    for (int xx=0; xx<cols.length; xx++ )
    table.removeColumnSelectionInterval(cols[xx],cols[xx]);
    table.removeRowSelectionInterval(indexes[0],indexes[0]);
    table.setColumnSelectionInterval(0,22);
    table.setRowSelectionInterval(2,2);
    But this doesn't seem to work on keypressed event although it works fine if i call it from some other place like a button pressed. Any help gurus ???
    TIA

    Sorry i missed to mention what it actually seems to do. It only selected the 1st column when this piece of code is called from KeyPressed Event.
    But when the same code is called from any other place it selects all the 23 columns.
    I will appreciate any help on this bottleneck problem for me.

  • Key Navigation when window doesn't have focus

    Using key navigation I want to allow the user to instigate a program function by with a key sequence like Ctrl-F1. This works fine as long as the window has focus but does not work if another window is active. Is there any way to get my vi to respond to the key sequence when that vi does not have the focus?

    You can use the keyboard input VIs to continuously poll for that key combination. Not as good as an event, but will work without focus. The VIs can be found in the Advanced palette before 8.0 and in the Connectivity palette (I think) later.
    Try to take over the world!

  • Key navigation, defining own keys

    Hi,
    i want to control some buttons on the front panel with the keyboard.
    How can i use the cursors (up,down,left,right) for button control. In
    the menu key navigation are only the F1, F2... and some other keys.
    The question is how to customize the key navigation.
    I really hope you can help me.
    Jürgen

    You can't change the keys available to you for keyboard navigation. At least as far as I know. You can, however, make up your own using the keyboard functions that come with LabVIEW. There's an example that ships with LabVIEW that shows you how to do this. You will likely need to use an event structure-based architecture, or something similar.

  • Key Navigation LV8

    Hi,
    I have a program that I would like to programatically set key navigation. This is easily done with LV7 but I can not see how to do it with LV8. Any ideas?

    I can't provide an example - you have to follow the method. This is what I do:
    1. create a new vi
    2. place a system button on the front panel
    3. right click the button
    4. select the entry properties
    5. switch to the tab "Key Navigation"
    Now there should be an existing binding "Toggle" with return as assigned key.
    I do not want to have this binding if I place a new button. If I place a standard LV button, there is no binding.
    Is this a bug, a setting or maybe something NI wanted to work like this?
    Using LV8.0
    Don't be afraid to rate a good answer...

  • Use 'page up' & 'page dwn' key navigation

    I need to navigate a list box using the page up and page down keys (customer requirement). Is there a way to use dual key navigation on a control like this? They want the page up and page down keys to go up and down in the list box. How do I do that?
    Thanks,
    cdobis

    Hold on, I just realized I misread your question. The page up/page down keys already work inside a listbox. So, I don't understand what you're asking. Or, are you asking that the page up/page down work the same way as using the arrow up/arrow down keys? If so, tell your customer that is improper user interface principle. There's a reason why it's called page up.

  • Problem with tab-key navigation

    I am making chanegs to an existing form.
    I have a tab canvas with 3 tabs, each contains a data block, and other data blocks outside of the tab canvas.
    I wanted the tab key to move the cursor to the next record so I changed the navigation style from "Change Block" to "Change Record", but it did not help. When the cursor is a on a record of a multi-record block and I tab through the items to the last one, pressing the tab key leads me to another tab-page.
    I put in some debug code and noticed that the WHEN-TAB-CHANGED trigger did not fire. The WHEN-VALIDATE-RECORD trigger fired and the cursor block and record number were correct.
    After the tab key took me to another tab-page and I navigated back to the original tab-page. Even though it looks like I'm on the correct tab page, SYSTEM.cursor_block was NOT correct, it was pointing to another data block outside of the tab canvas.
    I checked other forms on our system and I'm pretty sure that changing the navigation style to "Change Record" would work. Perhaps there's something peculiar about this form.
    Any idea will be appreciated.
    Thanks.

    Found the problem.
    For some reason, the WHEN-NEXT-ITEM trigger of the last item of the record is hard-coded to go the another block.

  • JComboBox key navigation

    I have a JComboBox and iv added a few items into it. Now by default, when i press Up and Down arrow keys, user is able to navigate between the different entries of the combo, however i want that when user presses the up and down arrow keys, one item should be skipped. For eg: If following are the items in the Combo
    Australia
    Sydney
    Melbourne
    India
    Delhi
    Bombay
    I want that while navigating using arrow keys, items "Australia", and "India" to be skipped

    I want that while navigating using arrow keys, items "Australia", and "India" to be skipped Remove the items from the comboBox. As a user it would be frustrating to see an item and not be able to select it.

  • JTable tab key navigation with JComboBox Cell Editors in Java 1.3 & 1.4

    Hello - this is one for the experts!
    I have a JTable which has an editable JComboBox as one of the cell editors for a particular column. Users must be able to navigate through the table using the tab key. After editing a cell a single tab should advance the cell selection to the next column and then the user should just be able to start typing to populate the cell.
    However, i've come across some really frustrating differences between the Swing implementation of JDK1.3.1_09 and JDK 1.4.2_04 which means this behaviour is very different between versions!....
    1. Editing Cells and then advancing to the next column using tab.
    Using standard cell editors (based around JTextFields) in 1.3.1 the user has to press tab twice to traverse to the next column after editing. However, in 1.4.2 a single tab key is enough to move to the next column after editing.
    2. Editable JComboBox editors and and advancing to the next column using tab.
    Using JDK 1.3.1, having entered some text in the editable combo it takes 2 tabs to transfer the selected cell to the next column. With 1.4.2 a single tab while editing the editable combo ends editing and transfers the selection out of the table completely?!?
    With these 2 issues I don't know how to make a single tab key reliably transfer to the next cell, between java versions. Can anyone please help me?!??!
    (i've attached test code below which can be run in both 1.3 and 1.4 and demonstrates the above behaviour.)
    package com.test;
    import java.awt.*;
    import javax.swing.table.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    public class TableTest4 extends JFrame {
         private JTable table;
         private DefaultTableModel tableModel;
         public TableTest4() {
              initFrame();
          * Initialises the test frame.
         public void initFrame() {
              // initialise table
              table = new JTable(10, 5);
              tableModel = (DefaultTableModel) table.getModel();
              table.setPreferredScrollableViewportSize(table.getPreferredSize());
              table.setRowHeight(22);
              JScrollPane scrollPane = new JScrollPane(table);
              getContentPane().add(scrollPane);
              JButton dummyBtn1 = new JButton("Dummy Button 1");
              JButton dummyBtn2 = new JButton("Dummy Button 2");
              // initialise frame
              JPanel btnPanel = new JPanel(new GridLayout(2, 1));
              btnPanel.add(dummyBtn1);
              btnPanel.add(dummyBtn2);
              getContentPane().add(btnPanel, BorderLayout.SOUTH);
              // set renderer of first table column to be an editable combobox
              JComboBox editableCombo = new JComboBox();
              editableCombo.setEditable(true);
              TableColumn firstColumn = table.getColumnModel().getColumn(0);
              firstColumn.setCellEditor(new DefaultCellEditor(editableCombo));
         public static void main(String[] args) {
              TableTest4 frame = new TableTest4();
              frame.setDefaultCloseOperation(EXIT_ON_CLOSE);
              frame.pack();
              frame.setVisible(true);

    Run the above code in 1.3 and 1.4 and you can see that after editing a cell, the tab key behaviour works differently between versions.
    I don't believe by adding a key listener to the cell editors will have the desired effect.
    I've read other posts and from what i've read it looks like the processKeyBinding method of the JTable can be overridden to manually handle key events.
    Has anyone done this to handle tab key presses so that the same java app running under 1.3 and 1.4 works in the same way ??? I would really appreciate some advice on this as its very frustrating !

Maybe you are looking for

  • Delay between end of load to ODS and activation

    When I look in the monitor for the update of our ODS, there is a delay of about 20 minutes between the end of loading the last data package to the ODS and the start of the Activation.  Can anyone give me any ideas on the cause of this delay or any su

  • Multiple SSIS Packages into one single package

    Hello All, I have created 4 SSIS Packages. 1st package- To load data from FlatFiles to DB(MasterTable) 2nd package- split the MasterTable into 2 different tables(ChildTable1, ChildTable2). 3rd package- join the child table to another mastertable to g

  • Mysql query returns different number of records from coldfusion and navicat

    Hi I'm hoping that someone can suggest a basic strategy to debug this. I have a fairly large and complicated query that is executed by a function in a cfc. It returns (for example) 100 rows. If I use cfdump and then copy and paste the SQL of the quer

  • Global error handling

    I need to make sure I am handling all (my code and SDKs) errors in my Flex application. What's a way of global error management in Flex?  Thanks

  • Error when creating a STO DEL for material

    I am trying to find the reason why when my client creates a STODEL itgives them the error message "Not Possible to determine shipping data for material"  The Material type is Raw Material (ROH).  The gentlemen before me said he implemented note note