Changing cursor focus behavior

Hello colleagues,
I have some complex requirements like navigating (using tab) only between two certain columns, and not considering readonly fields.
I know one approach would be to use Javascript code on the views.
Other approach would be to enhance the UI tags (This seems to be very tough and will be adopted in worst case).
I would like to know if there are classes to handle this or any other approach?
Thanks.

Prabhojot,
what do you mean with "pull up a new instance of the form". Is it a call using open_form, call_form or new_form?
Frank

Similar Messages

  • The selected row and cursor/focus behavior of af table

    Hi,
    A selected row in the af table can be changed by clicking the row, then the background color of selected row will be changed.
    But if I navigate to another row by pressing TAB or ENTER, the 'selected row' will not change.
    Is there any way to change this behavior?
    That is, if I use TAB/ENTER to move the cursor to another row, the 'selected row' will change accordingly.
    Thank you~~

    Hi,
    actually I looked into this a while ago and the problem comes from the focus being in the input text field, not on the table. Using JavaScript I currently don't see how we can get a handle to the row to manually set it. I'll keep a note and file an enhancement request to see if the dev team has an idea
    Frank

  • Changing Tab Focus Behavior

    I have two machines running Firefox 4.0. Both have Tab Mix Plus installed. Each exhibits a different behavior when opening multiple tabs.
    To open multiple tabs, I simply highlight a number of links on a page, right click and select Open Links in New Tabs from the menu
    In both cases this action results in each link opening in a new tab. In both cases the focus stays on the current tab.
    However on one machine if I change focus by clicking on the tab next to the current one and then close it, the focus goes back to the first tab.
    On the other machine if I change focus by clicking on the tab next to the current one and then close it, the focus moves to the tab immediately to the right of the closed tab.. This is the desired behavior.
    What do I need to change on the first machine to get it to behave like the second one?
    I tried doing a visual compare of the configuration setting on each machine both for Firefox and Tab Mix Plus but couldn't find any difference in settings.

    You can set all other controls not to be tabbed through and the tab control to have its pages tabbed through. That way, when you use tab, only the tab control's pages will be on the tabbing list. This, however, is probably less straightforward.
    I'm not sure what's the problem with the method you outlined. In most cases, if you want something to happen, you will have to code it. This appeares to be one of those cases. You can make a subVI to do the tabbing for you, if you don't want to have to code all of it in your VI. Pass the reference of the tab control into the VI after you detect the event and use that to decide whether to increase or decrease the tab value. Be sure to cycle the number back to the first page when it reaches the end.
    Try to take over the world!

  • Changing cursor focus

    Hi,
    I have a custom 6i form. When I use the FIND button to pull up a new instance of the form, the when-new-block-instance trigger on the first block doesn't fire coz the cursor actually never left the focus on the block. How do I ensure that the trigger fires everytime I open up a new form.

    Prabhojot,
    what do you mean with "pull up a new instance of the form". Is it a call using open_form, call_form or new_form?
    Frank

  • When typing in a website after opening in a tab, the cursor focuses to the address bar and makes logging to things difficult, how do I change this?

    As stated in the question on any website I open regardless of whether it is a new tab or just a new destination, the cursor focuses on the address bar and makes logging in to sites very infuriating. Any help is much appreciated.

    Thanks for the help, it didn't help with this particular problem. I figured it out though, I had an issue with the AVG safe search. I had to just delete the file in the program files x86.

  • HELP!!!...Firefox 4...STOP cursor focus from going to Bing search box????

    I just installed Firefox 4....Now every time I open firefox the cursor will automatically jump to the bing search box.
    I want it to start and stay inside the address bar.
    A long time ago I had this same problem and searched online and found a solution. I don't remember exactly what it was, but it was something like going into about:config and switching some settings inside there. That fixed the issue and ever time I would open Firefox my cursor would START and STAY in the address bar.
    Can anyone help me figure this out again? I don't want any add ons or extensions, I want it back to the way it was this morning before I upgraded to version 4.
    Thanks in advance!

    ***SOLVED***
    I finally found the solution...
    I have a Windows 7 64bit laptop, but this should work for Vista users as well...possibly XP users too, if you switch a couple of the folders around, if you're an advanced user you shouldn't have a problem....
    add this code to your firefox '''''"prefs.js"''''' file, you can find pref.js here, just follow the steps...
    C:\Users\<you>\AppData\Roaming\Mozilla\Firefox\Profiles\f9cunhcx.default\prefs.js]]
    Now add this line to the bottom of the list. Keep in mind for changes to take effect you must have Firefox closed, otherwise it'll just over write any changes you attempt to make and nothing new will happen.
    '''user_pref("capability.policy.default.HTMLInputElement.focus", "noAccess");'''
    After adding the above line, save the pref.js file and reopen Firefox, you'll now notice your cursor won't be in the search box. You'll have to manually put the cursor to where you want it to be. I have my home page set to www.msn.com it would drive me nuts that as soon as I open the page my cursor focus would go to the bing search bar. It wouldn't be so bad if it went to the google search bar in the top right hand corner...but anyways I hope this helps someone else out. If it does please leave a comment on your experience for the next person.
    Thanks,
    James

  • Default focus behavior in Swing

    I have a JTabbedPane wherein every tab has a variety of fields, including buttons, text areas, text fields, tables, and so on. I wanted to tweak the default focus behavior such that the first text field or the first text area has the focus.
    I used requestFocusInWindow() to set the focus on the first text field I get. This, however, was being overriden at a later stage (I am working on a vast code) and the first component inside a tab is getting the focus.
    Is there any means to override the default focus behavior? I tried writing my own FocusTraversalPolicy but found that that is never used. How does the default focus behavior work? Does it set the focus on the first field it gets or what? And where can I find the code for the same?

    I used requestFocusInWindow() to set the focus on the first text field I get. The requestFocusInWindow() method only works when the GUI is already visible. So I would suggest that you add a ChangeListener to the tabbed pane and add your code to set the focus every time the tab is changed.
    For a slightly different approach the code in this posting will remember the last field for each tab that had focus and reset focus to that field when the tab is changed. The code is not completely off topic since it shows how to use a ChangeListener:
    http://forum.java.sun.com/thread.jspa?forumID=57&threadID=570369

  • Cursor focus bug(?) in v10.5

    Didn't notice this until 10.5. It makes it hard to switch to iTunes and use space bar to pause/play.
    1. Play something in iTunes. Note the cursor focus is in the songlist area of iTunes so that you can use spacebar to pause/play.
    2. Hide the app (via the dock or by cmd-tab and hitting 'h').
    3. Switch back to iTunes.
    4. Try using spacebar to pause/play. You can't. The focus is in the entire iTunes window, so you need to click into the songlist area to use spacebar.
    I am **pretty** sure this did not use to be the case as it is a common behavior for me and it's not working anymore.
    Anyone else notice this?
    -Matt
    Message was edited by: Matthew Grayson. Spelling correction.

    OK, I will post more pictures.
    So, I try to customize the standard waveform graph in LV, but right-clicking on the plot and select Advanced-> Customize or Edit->Customize Control form the menu.  Go into Customize mode.
    In 8.2 and before, you used to be able to just right-click on the decoration for the plot legend and replace it with something from the clipboard, etc.
    In 8.5, this functionality has been removed.
    However, you can select the item and go to Edit->Customize Control (I show it here for the cursor legend, as it works).  You get a new control window.
    (Continued in next post)
    Message Edited by Matthew Kelton on 11-06-2007 03:23 PM
    Attachments:
    cursors customize.png ‏15 KB
    customize dec 8.2.png ‏12 KB
    customize dec 8.5.png ‏11 KB

  • Cursor  Focus issue

    Hello Everyone,
    I have added a remember my username checkbox with login box.
    If somebody clicks the checkbox it remembers the username.
    However, the cursor remains with the first item ie. username.
    I want to change the cursor focus to password field if username
    field is not null.
    Can anybody help me in setting the tabindex property for password field.
    I want to set the tabindex in my plsql procedure.
    Thank You,
    Parveen

    You can do that in your page header Javascript code as follows:
    function first_item(){
    if (document.getElementById("PX_USERNAME") )
    document.getElementById("PX_USERNAME").focus();
    else
    document.getElementById("PX_PASSWORD").focus();
    }where PX_USERNAME and PX_PASSWORD are your username/pwd fields...and then in your page HTML body code put :
    onLoad=first_item();Thanks,
    Sam

  • ITunes "X" Clear Button in search bar loses cursor focus

    Not sure if this is just me, but for the past two or so versions of iTunes, when I hit the circle X button in the search bar to clear the search, the focus goes out of the search bar, so I have to click in it again. It used to be that when I hit the X the cursor would still be in the search for a new search. This is really annoying. Is this a known problem? Any fixes? Thanks.

    There is a search box focus problem in 8.0 and 8.0.1. Click on the "x" in the search box and unless the focus was already on the search box, it will be elsewhere. This happens if you type in the search box, change the focus to elsewhere (click on a tune, go to another iTunes window, or switch to another app), then click on the "X" in the search window. The focus won't be in the search box.
    You can "double-click" the "X" (which clears the field with the first click, then sets the focus in the box with the 2nd click), or click text (which should highlight it) and start typing. If you find that the text isn't highlighted and the focus is in the search box, the <ESC> key will clear the text.

  • How to change cursor when need to open a new dialog?

    Hi,
    I try to change cursor to WAIT when client open a new dialog, which it tell user the program was running to ready display new dialog.
    My code was like the following
    scene.setCursor(Cursor.WAIT);
    someclass.showMyDialog(); // The dialog was a new stage with StageStyle.UTILITY style
    scene.setCursor(Cursor.DEFAULT);
    But the cursor didn't be changed, I didn't know it why? Anybody know it? thank in advance!
    I had search the google, and didn't find the perfect answer, most of they was like to use setCursor(Cursor.WAIT) mode.
    the current ENV in my host was: windows 7 and Java
    java version "1.7.0_13"
    Java(TM) SE Runtime Environment (build 1.7.0_13-b20)
    Java HotSpot(TM) 64-Bit Server VM (build 23.7-b01, mixed mode)
    Best regards,
    Edited by: user13005878 on May 27, 2013 1:48 AM

    If you have a long running process ("long" means anything the user will notice), you need to run it in a thread other than the JavaFX Application Thread. In other words, you need to change the cursor to the wait cursor on the FX Application Thread, launch a user-defined thread for your long running process (connecting to the database), and once that thread is complete, show the dialog and change the cursor back on the FX Application Thread again. If you try to do everything on the FX Application Thread, you'll likely block that thread and prevent any changes from being visible to the user until the long process is complete (so you'll never see the wait cursor).
    All that said, and as jsmith said, there are some bugs in JavaFX 2.2 with the appearance of the cursor. So on my system (Mac OS X 10.7.5) the "correct" behavior is only observed with JavaFX 8.
    This is an example of doing things wrong. Here I don't see any change to the cursor, even on JavaFX 8:
    import javafx.application.Application;
    import javafx.event.ActionEvent;
    import javafx.event.EventHandler;
    import javafx.scene.Cursor;
    import javafx.scene.Scene;
    import javafx.scene.control.Button;
    import javafx.scene.layout.BorderPane;
    import javafx.stage.Stage;
    public class WaitCursorDemo extends Application {
      @Override
      public void start(Stage primaryStage) {
        final BorderPane root = new BorderPane();
        final Scene scene = new Scene(root, 600, 400);
        Button button = new Button("Do something time-consuming");
        button.setOnAction(new EventHandler<ActionEvent>() {
          @Override
          public void handle(ActionEvent event) {
            System.out.println("Starting...");
            scene.setCursor(Cursor.WAIT);
            try {
              Thread.sleep(2000);
            } catch (InterruptedException exc) {
              exc.printStackTrace();
            scene.setCursor(Cursor.DEFAULT);
            System.out.println("Done");
        root.setBottom(button);
        primaryStage.setScene(scene);
        primaryStage.show();
      public static void main(String[] args) {
        launch(args);
    }This works on JavaFX 8: after pressing the button I see the wait cursor for two seconds, then it reverts to the default cursor.
    import javafx.application.Application;
    import javafx.concurrent.Task;
    import javafx.concurrent.WorkerStateEvent;
    import javafx.event.ActionEvent;
    import javafx.event.EventHandler;
    import javafx.scene.Cursor;
    import javafx.scene.Scene;
    import javafx.scene.control.Button;
    import javafx.scene.layout.BorderPane;
    import javafx.stage.Stage;
    public class WaitCursorDemo extends Application {
      @Override
      public void start(Stage primaryStage) {
        final BorderPane root = new BorderPane();
        final Scene scene = new Scene(root, 600, 400);
        Button button = new Button("Do something time-consuming");
        button.setOnAction(new EventHandler<ActionEvent>() {
          @Override
          public void handle(ActionEvent event) {
            System.out.println("Starting...");
            scene.setCursor(Cursor.WAIT);
            Task<Void> task = new Task<Void>() {
              @Override
              protected Void call() throws Exception {
                try {
                  Thread.sleep(2000);
                } catch (InterruptedException exc) {
                  exc.printStackTrace();
                return null;
            task.setOnSucceeded(new EventHandler<WorkerStateEvent>() {
              @Override
              public void handle(WorkerStateEvent event) {
                scene.setCursor(Cursor.DEFAULT);
                System.out.println("Done");
                // Display your dialog now you have the data from the database...
            new Thread(task).start();
        root.setBottom(button);
        primaryStage.setScene(scene);
        primaryStage.show();
      public static void main(String[] args) {
        launch(args);
    }

  • Remove cursor focus

    I have a page with a bunch of checkboxes..
    (enough that the page has to be scrolled)
    at the bottom of all of the check boxes is a text field..
    when the page is run the cursor jumps to the text field at the bottom of the page..
    how do I keep it from setting the cursor focus to the text field so the page opens at the top instead auto scrolling to the bottom..

    In the page properties look for: Cursor Focus. What is it set to?
    If it's set to the first item and the page is still scrolling to the bottom, try changing the cursor focus to "Do Not Focus Cursor" and then write a JS function to set the cursor to your first checkbox.
    Martin

  • Change keyboard tab behavior

    This one is tough to search for, with so much duplicity of meaning in the words key, tab, navigate, etc.
    I have a tabular form where the optimal way to navigate is to go down each column instead of across each row; i.e. when the tab key is pressed, I want the focus to change from the current cell to the cell in the same column but immediately below the current cell.
    I looked at html tabindex, and I'm not sure how to make that work.
    So: can tabindex be used to change the navigation behavior of the tab key? Or, is there another way to change the tab key behavior to go column by column instead of row by row?
    TIA.
    Rick.

    Rick - I know that is possible (in theory) to trap the keystroke using JavaScript and replace it (or, do a focus() call or similar to move the focus to another element), but figuring out where you are in the table can get quite hairy.
    To be honest, it's one of these things we've been meaning to implement on one of our apps (our issue is moving to the next element when the user presses ENTER), but haven't got round to yet.
    I'd therefore be very interested to hear if you crack it (either using JS or some other method).
    Cheers,
    John.

  • Programati​cally change control focus to generate and Event.....​.

    I'm adding some user enhancement (anti-screw-it-up functions) to insure the desired process is executed.
    Primary question:  If I have an event that is handles by a value change in a text control, (event happens when you hit Enter or exit control with mouse) will the event also occur if you exit the control by programatically changing the focus to another control ?
    I'm going to try and set up a temp vi to test this but wanted to see if anyone had tried this and if it works or not.  My other option is to set up multiple event cases but I was hoping to use a single case to handle everything.
    A few details,  I have a test system that tests a product automatically when the product is placed in a cradle and the cradle is moved into position and activates a prox sensor.  At end of test, system waits for prox sensor to de-activate before resetting the system.
    If a unit fails, there are rework options and the unit can be retested.  When it fails, a label prints defining the failure modes and provides a failing serial number.  When the unit is retested, the failing serial number is entered into a text control. I want the re-test sequence (queued up in the Event) to occur when either 1, a failing serial number is entered or two a button is pressed (with mouse)  I'm pretty sure pressing a button would in turn automatically create the text control change event so my button can probably be a dummy button just for appearances.
    Where the hole is if the user enters a failed serial # and doesn't exit the control and then engages a pump to start the test.  I can use a 'Empty Path/String' function but the control will continue to show empty as if nothing was entered until the Enter key is pressed or the mouse is used to exit the control.
    If I can generate the event by changing the focus, then it will insure that if a failing s/n is entered, the re-test sequence occurs and if nothing exists in that field, it performs a first time test.
    A little long winded for sure but any thoughts are appreciated.
    Can't really post any simple code as this feature is in my top level vi and I have a really big app that doesn't warrant uploading.
    Doug
    Doug
    "My only wish is that I am capable of learning each and every day until my last breath."
    Solved!
    Go to Solution.

    Actually, changing the focus alone did not trigger the event but I was able to then utilize the Empty Path/String function to drive a Value(Signaling) node for the control.
    Doug
    "My only wish is that I am capable of learning each and every day until my last breath."
    Attachments:
    Event_Structure_Trials.vi ‏29 KB

  • Cursor focus during a PPR event

    Hi,
    I have two messageTextInput columns (lets say text1 and text2) inside a table region. When a user enters a value in text1 and do a tab out, I fire a PPR event and set some attributes in my VO. The problem is: after it is done, the cursor focus does not move to text2, even though the user did a tab out after entering a value in text1. Cursor focus returns again to text1.
    Also, I do not want to do a page forward, so that processRequest is called again. That would be a costly operation for us. Please let me know if there is a way to regain cursor focus to the right textInput bean.
    Note: This is IE 7.
    Thanks. Much appreciate your inputs.
    Raja

    Raja see this thread, i have replied this some time back:
    Re: How to set focus on a textinput/poplist using PPR
    --Mukul                                                                                                                                                                                                                                                                                                       

Maybe you are looking for

  • My MacBook Pro is suddenly running very slow

    I am running Lion and updated to the Safari 5.2.1 last month. About two weeks ago, when I woke up my MBP it started taking about two minutes to locate the WiFi signal (which used to be up and running in a few seconds.) Whatever I try to click on take

  • OSX RDP v8.0.24308 Default Resolution/No Fullscreen for new connections

    I would like to set defaults so that any new connection I create always are set to No Fullscreen, a specific Resolution, and a specif Color-Depth.  I should not have to change this for all new connections.

  • Camera lens now working

    BINGO - HAVE FOUND A WAY A WAY OF FIXING CAMERA PROBLEM. It is not a hardware issue, but a software issue. Somewhere the camera the settings, have been messed up. By re-setting from a back up, it only puts back the restored files etc, including the d

  • DC Stock rationing across multiple receiving sites

    Hi experts, We have a business requirement to ration available stock held at the DC across multiple orders in the situation of a shortage. The requirement is to do this rationing is based on the document type of the originating STO and Ordering Site

  • Problem with recovery partition

    I have HP DV6 6051ea laptop,my problem is when i try to recover my OS(win7 Home Premium ) to factory condition through recovery partition,it says use created recovery disk.I have created them but I realy ned to use recovery partiton to recover OS not