Newbie - Default Button behavior

I am trying to use HTML db to create a new application that will run on LYNX enabled scanners. When the user scans an item into a textbox there is a carriage return that is entered at the end.
I would like to do one of two things -
1) On the CR move to the next Text Item or
2) On CR fire the only button on the page. Kind of like default button behavior in Forms or other PL's.
Any hints that you could give me would be very helpful.

Can I automatically go to another page within the application? If so how and where.
I need to send an onchange from the text field then do I need to create a process to move to the next page?? I am a complete newbie to this so I have no clue. For an example lets say that I have Page1 and Page2 with Text1 on Page1 and Text2 on Page2. Here is the code that I am starting to put in the HTML Table Cell Attributes:
onchange = 'javascript.dosubmit()'
Now what do I need to do to change to page 2? Does it need to be a process? and if so what code do I need to put in it and where?
This is for a Proof of Concept project, we are just trying to see if we can use HTML DB to create RF Scanner application.
Thanks for your initial reply.

Similar Messages

  • Default button behavior not working with melting group

    Hi,
    I just realize that the default button behavior, i.e. fill out form and press enter without clicking on the actual button, does not work if one or more input form elements are in a melting group. This is a bug, right? I'm using CE7.1 SP5.
    Regards,
    Kevin

    Hi Dharmi,
    I define a button as default, fill out the inputfields  and press enter on the last one. As soon as I put this one in a melting group and press enter, the action of the default button is not triggered anymore. I can press enter in another field which is not in a melting group and the form is submitted correctly.
    I just noticed that if the button is in a melting group (with or without an input field) it doesn't work either.
    Can you reproduce this behavior?
    Best regards,
    Kevin

  • Default Button: switched to last focussed, but want Windows behavior, how?

    In a JDialog, if I add components and set one to be the default button, plus
    use the Windows L&F, I expect the Windows L&F behavior, that is, as long
    as I tab along buttons, an Enter will activate a button if it has focus, but if I
    tab to another component, the desired default button should be visually marked (darker edge)
    and an Enter should activate it.
    In Plugin's JRE 1.3.1, this is not the case. The default button is reset to the last button that had
    the keyboard focus.
    In a JVM 1.2.2, the same code produced the expected result!
    The bug db listed a few solutions, one of them was to use a Focus Manager to
    track focus and then "manually" reset the default button each time the focus is not on a button.
    Anyone out there with a more details on this solution?
    Or perhaps, there is a better solution than tracking focus events manually?
    Sylvia

    Found a solution myself, which at least works for windows l&f:
    make all buttons non-default capable (setDefaultCapable(false)), except for the one button, that is to be the default button. This has the unfortunate effect, that a non-default button, which has input focus, does not react to to ENTER, but the ENTER is sent to the default button instead.
    So must add a keyboard action to handle the ENTER:
    KeyStroke keyStroke = KeyStroke.getKeyStroke ("ENTER");
    ActionListener action = new ActionListener(){
    public void actionPerformed() {getMyButton().doClick();}};
    getMyButton().registerKeyboardAction (action, keyStroke, WHEN_FOCUSED);
    That did it for my case.
    Sylvia

  • Default buttons not defaulting

    Hello. I am on the tail end of a DVD project and just begain encountering some unusual behavior with certain menus. This is a multiple-menu, multiple-video clips promotional DVD.
    Up to last week, the DVD has been working as expected in the simulator, in DVD Player (from the Video_TS folder and from a formatted disc), and in several set top players. Yesterday, though, in DVD Player from a formatted disc, the menus appear with no buttons visibly defaulted. The menu still behaves, though, as if the default button was selected (ie., if pressing "enter" activates the default button, and pressing an arrow button sends the selected state in the designated direction.) Each video asset returns to its menu with another default button, and these behave in the same way.
    I have already double-checked the connections between the buttons, menus, and videos, and they are set the way they have always been.
    - Can the preferences in DVDSP get corrupted (like they can in FCP)?
    - Can the DVDSP porject file become "bloated" or corrupted from going through too many revisions? If so, is there an easy way to put the current project into a new file?
    I expect that some people that view this disc will do so on a Mac, and I would like to clear this up if it is possible. Any ideas?
    Thank you!
    Listening,
    Aaron Kruse
    PowerMac G5, Dual 2GHz   Mac OS X (10.4.6)   3GB RAM, FCStudio 5.0 (DVDSP 4.0.3), Logic 7.2

    Aaron:
    I would try deleting all PAR and MPEG folders that DVDSP created during your authoring (inside the folders where your source files live) and make a clean build without reusing any of the previous VIDEO_TS folders. Probably some file is corrupted. If you want a FCP analogy, is like deleting your render files!
    Trashing preferences is a common preocedure . . . but like in FCP, ussually don't resolve problems. But it's like an aspirin, it will don't hurt your system. You can keep a copy of the pref file to restore in case you need.
    You could repair permissions and restart . . . just to be sure everything is cleaned in your system.
    I would try deleting all PAR and MPEG folders that DVDSP created during your authoring (inside the folders where your source files live) and make a clean build without reusing any of the previous VIDEO_TS folders.
    Probably with the specific experience in your problem psot something in the meantime!
    Hope it helps!
      Alberto

  • OutlineField and the Default Button

    Hello all,
    We are currently using the Forte 3.0.G.2. I have recently come
    across the situation where I am unable to understand the behavior of the
    default button. The situation is this:
    Whenever I am including the Outline Field as one of the widgets in
    any of my windows that particular window will not respond to the default
    button. I am attaching the pex file so you can run the test windows and see
    the problem.
    Can someone please tell me if I am doing something wrong or is this a
    known/unknown bug?
    <<DefaultBtn.pex>>
    Thanks in advance.
    Kamran Shafi
    Systems Engineer
    EDS Medi-Cal XIX
    Phone: (916) 636-1093
    Email: [email protected]

    Hi Kamran!
    What happens is that when the focus is on outline fields, the enter key
    fires a doubleclick event and ignores the default button. So you need to
    capture the doubleclick event and do whatever you want your button to do.
    Here's a quote from Forte support
    "Unfortunately, this is a documentation issue. The IsDefaultButton only
    works when focus is on a simple DataField, because in all of the complex
    fields, including TextField, TextEditField, TreeView and ListView as well
    as OutlineField, the Enter key has a separate and defined action. On
    Tree/ListViews and OutlineFields that is DoubleClick.
    You COULD catch the DoubleClick on the OutlineField and post a click event
    on the default button, however I'd encourage caution with that, since this
    could cause some unexpected behavior if someone were counting on the Enter
    (or a mouse double-click) to behave in our standard way."
    Andrew Small
    Enterprise Distributed Solutions National Practice
    BORN Information Services
    [email protected] <mailto:[email protected]>
    -----Original Message-----
    From: Shafi, Kamran [mailto:[email protected]]
    Sent: Thursday, July 08, 1999 12:49 PM
    To: [email protected]
    Subject: OutlineField and the Default Button
    Hello all,
    We are currently using the Forte 3.0.G.2. I have recently come
    across the situation where I am unable to understand the behavior of the
    default button. The situation is this:
    Whenever I am including the Outline Field as one of the widgets in
    any of my windows that particular window will not respond to the default
    button. I am attaching the pex file so you can run the test windows and see
    the problem.
    Can someone please tell me if I am doing something wrong or is this a
    known/unknown bug?
    <<DefaultBtn.pex>>
    Thanks in advance.
    Kamran Shafi
    Systems Engineer
    EDS Medi-Cal XIX
    Phone: (916) 636-1093
    Email: [email protected]
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

  • 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

  • Wrong default button in alerts when using 64-bit JRE on Windows

    Hi guys,
    I'm facing a strange problem.
    My environment:
    Server:
    OAS 10.1.2.2.0 on Linux Suse (32-bit)
    Client:
    IE8 64-bit on Windows XP 64-bit and Java 1.6.0_18 also 64-bit
    When I run a form that opens an alert-window with a default-button (button that has the focus), it sometimes happens, that not the default-button, but another button is activated by default.
    I have to repeat:
    It only happens sometimes and is hard to reproduce. Within 50 attempts it may happen 5 times or just 1 time.
    I never saw that happening with 32-bit JVM.
    Anyone else seeing this?
    br
    Michael

    Ok... here is what I see:
    1. Create a form with an alert and set button 2 as the default
    2. Run the form and display the alert. Button 2 has focus (proven by the bold solid line (shadow) and dotted line that surround the button)
    3. Open any other app (Notepad, Explorer, etc) and move focus to that app
    4. Slide this other app out of the way so that you can see the running form under it.
    5. While the other app has current focus, the buttons on the form's alert appear to lose focus (this is expected). However, now button 1 has a bold line (shadow) surrounding it. This gives the appearance that button 1 has focus.
    6. Click on the alert box to move focus back to the form. Do not click on the alert buttons.
    7. Focus lines are now redrawn on the correct button (button 2).
    This is probably not the best behavior, but certainly not something that I would call an area of concern. If what I described here is what you are seeing and you feel that this is a significant issue, I would recommend filing a Service Request with Support (assuming you have a support contract) and request that a bug/defect is filed. You will need to provide a test case and I would recommend that you provide screen shots or a video of what you are seeing. If you have not already applied all the previously mentioned patches, I would not recommend contacting Support until you do so, as this will be the first thing they require you completed anyway.

  • Tab Bar Control and the Default "More" Behavior

    I've got a client who wants an app with 8 tabs. The only problem is that they don't like the default "more" behavior with the tableviewcontroller containing the extra tab content. What they want is to hit "more" to see the next four tabs replace the first four and then to toggle back if it's hit again.
    There are a few ways to do this, I guess. I could build a second viewcontroller/tabcontroller that comes on or leaves when "more" is touched. Is there a surer way of doing this? I'm sure I'm missing something basic, but I've googled my brains out on this one and just can't see it.

    You could use one TabbarController with 8 ViewControllers, and rotate them when the More tab is tapped:
    - (BOOL)tabBarController:(UITabBarController *)tbc shouldSelectViewController:(UIViewController *)vc {
    if (vc == tbc.moreNavigationController) {
    NSMutableArray *newVCs = [[NSMutableArray arrayWithCapacity:8] retain];
    for (int i = 0; i < 8; i++) {
    [newVCs addObject:[tbc.viewControllers objectAtIndex:(i + 4) % 8]];
    tbc.viewControllers = newVCs;
    [newVCs release];
    return NO;
    } else {
    return YES;

  • Snap mouse pointer to default button doesn't work

    Dear Community,
    I own a W520 with W7professional. My mouse is the ThinkPad bluetooth Laser Mouse.
    In the mouse properties window, I've activated the "Automatically move pointer to the default button in a dialog box" option but unfortunately it seems not working.
    Any idea?
    Best Regards,
    Marco

    hey calza_mc,
    try uninstalling the mouse drivers and reinstall it.
    also, do an update on your bluetooth drivers while you're at it
    WW Social Media
    Important Note: If you need help, post your question in the forum, and include your system type, model number and OS. Do not post your serial number.
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"!
    Follow @LenovoForums on Twitter!
    Have you checked out the Community Knowledgebase yet?!
    How to send a private message? --> Check out this article.

  • Pointer does not move to the default button in the dialog box

    example: when cleaning out trash the pointer does not go to the default button in the dialog box, you have to manually go there.
    This happens all the time.

    Hi Abhishek,
    In SAP this job shows completed till the 3rd step. and no error in the job log. but it does not execute the 4th and the 5th steps. And in Redwood, it shows completed for 1st and 2nd steps, 3rd step is in Error but has no error log. The 4th and 5th steps are in chained status. I have not amended the job chain after import. I have just scheduled it as it was running in the SAP system.
    Let me know if you need some further information on this.
    Regards
    madhu

  • Set default Button and provide a KeyEvent to a component with focus !!!

    What is to do ???
    I have following program:
    public class DefaultButton extends Frame implements ActionListener
         private Button close;
         public DefaultButton()
              super("Default-Button");
              setLayout(null);
              setSize(400, 200);
              setLocation(150, 100);
              setBackground(Color.lightGray);
              addWindowListener(new WindowAdapter()
                   public void windowClosing(WindowEvent e)
                        setVisible(false);
                        dispose();
                        System.exit(0);
              // CloseButton
              close = new Button("Close");
              close.addActionListener(this);
              close.setVisible(true);
              close.setSize(100, 30);
              close.setLocation(290, 160);
              add(close);
              setVisible(true);
         public void actionPerformed(ActionEvent e)
              String cmd = e.getActionCommand();
              if (cmd.equals("Close"))
                   setVisible(false);
                   dispose();
                   System.exit(0);
         public static void main(String [] args)
              DefaultButton wnd = new DefaultButton();
    }If I click on "Close"-button, the window will be closed. But, if the button "Close" has focus, it schold be possibile to close the window with a press on the Enter-Key? How to do it? How can I provide an KeyEvent to button "Close"?
    Tanks for any help.

    Hi pitalica!
    It is possible using KeyListener:
    public class DefaultButton extends Frame implements ActionListener, KeyListener {
    close.addKeyListener(this);
    public void keyPressed(KeyEvent e) {
    if ((e.getSource() instanceof Button)
    && (((Button) e.getSource()).getActionCommand == "Close")) {
    int kc = e.getKeyCode();
    if (kc == KeyEvent.VK_ENTER) {
    performs any action
    public void keyTyped(KeyEvent e) {}
    public void keyReleased(KeyEvent e) {}
    I hope it helps.

  • Default button in BOV should always be #1

    I have a number of Tracks with button overlay in a subtitle stream and Button Highlight activated (cyan/yellow marker).
    The buttons are used to change audio stream during playback.
    From a menu with 6 buttons I select a Track:
    Button 1 = Track 1
    Button 2 = Track 2
    and so on.
    What happens when I play the Track(s) is this:
    Track 1 > Button 1 selected
    Track 2 > Button 2 selected
    Track 3 > Button 3 selected
    etc.
    Is it possible to always select button #1 when starting to play a Track, no matter which menu button was used?
    As it is now, the user gets confused, since the Track is setup to play audio stream 1 in a pre-script (and this works fine).
    TIA
    Message was edited by: Niklas Wikman

    Problem solved. Double-click on the subtitle in the Track and set the Default button in the Button tab in the PI.

  • How to bring mouse cursor to the default button of a dialog, like in windows

    Anybody know how to achieve this in LV?
    Please see the attached screenshot.
    - Partha
    LabVIEW - Wires that catch bugs!
    Attachments:
    Automatically move mouse pointer to the default button.PNG ‏34 KB

    Dear partha,
    1) You can be able to trace out the location of the button
    2) You can be able to move the cursor to that location
    3) You can be able to automatically generate a click on that button
    Use user32.dll to achieve all this. when u use it in CLN(Call Library Node), u can c functions 4 that.
    Try and ask if further help needed!!!!!
    Thanks,
    Mathan

  • How to hide default buttons on WD selection screen

    Hi Experts,
    Is there a way to hide default buttons ( Cancel, Check, Reset, Copy ) on web dynpro selection screen ??
    Please let me know how can I achieve this..
    Thanks in advance !
    Anand

    By selection screen do you mean the select-options reusable component?  If so, then there is an API of the component that you can call to disable these fields. Use the SET_GLOBAL_OPTIONS method of the select-options API to acomplish this:
    data: l_ref_cmp_usage type ref to if_wd_component_usage.
      l_ref_cmp_usage =   wd_this->wd_cpuse_select_options( ).
      if l_ref_cmp_usage->has_active_component( ) is initial.
        l_ref_cmp_usage->create_component( ).
      endif.
      wd_this->lv_wd_select_options =
           wd_this->wd_cpifc_select_options( ).
    * init the select screen
      wd_this->lv_sel_handler =
           wd_this->lv_wd_select_options->init_selection_screen( ).
      wd_this->lv_sel_handler->set_global_options(
        EXPORTING
    *      i_display_btn_cancel  = ABAP_TRUE    " Displays "Cancel" Button
    *      i_display_btn_check   = ABAP_TRUE    " Displays "Check" Button
    *      i_display_btn_reset   = ABAP_TRUE    " Displays "Reset" Button
          i_display_btn_execute = abap_false    " Displays "Apply" Button

  • Default Buttons

    Hi,
    I've got a simple application that needs a custom "search" dialog.
    I've created a subclass of JDialog and it comes up just fine...
    Basically I have a JTextField for them to put in the search, a few checkboxes for the options, and two buttons at the bottom of the dialog. The buttons are named "find first" and "find next."
    I've seen in many programs that when a dialog comes up and has several buttons, i.e. "yes"/"no", then often it will have one of them selected for you and if you hit [enter] it'll just activate that one. I would like to do this to my "find next" button, but am not sure how to do so.
    How do I make my "find next" button be the default for the dialog?
    Right now, I have an ActionListener set up on the text field so that if a user hits [enter] in the search box, the "find next" is activated. I think that this isn't the right way to go, though, since the text box has to be focused.
    Thanks,
    Jared

    I add this code in the constructor of the JDialog to support a default button when no button has focus. (Note. when a button has focus it automatically becomes the default button)
    getRootPane().setDefaultButton( findNextButton );
    FocusAdapter resetDefaultButton = new FocusAdapter()
         public void focusLost(FocusEvent e)
              getRootPane().setDefaultButton( findNextButton );
    replaceButton.addFocusListener( resetDefaultButton );
    replaceAllButton.addFocusListener( resetDefaultButton );
    closeButton.addFocusListener( resetDefaultButton );

Maybe you are looking for

  • ChaRM Transaction Data Log Not Updating in 7.1

    Upgraded to 7.1 and still using 7.0 CRM_DNO_MONITOR and CRMD_ORDER to completed change requests in flight in existing projects.  The Transaction Data tab's Object and the Fast Entry tab's Overview show entries for action taken prior to upgrade.  Howe

  • Burn itunes purchased movie to dvd

    I want to know if it is possible to burn an itunes purchased movie to dvd to play on a stand-alone dvd player? If so, what is the quality of the burned dvd? Using itunes 8.01, i believe. Message was edited by: f0rgiven

  • Anchoring Objects in Report 6.0.8.18

    Tengo un frame dentro de otro. El frame hijo es de anchura (horizontalmente) variable y el frame padre tiene anchura fijo puesto que ocupa todo el ancho del report. Quisiera que el dentro del frame hijo se mostrase coincidiera con el dentro del frame

  • Is it possible to create views with parameters ?

    Hi, As MS-Access, is it possible to create views with parameters ? Ms-Access syntax : parameters [a] text; select * from table where code = [a] If yes, can you give samples ? Regards Pascal

  • Meta tag keyword

    Is there a limit to the number of words you can put within the keywords section of the meta tags? What other ways can I promote good recongition by search engines?