Set default focus on pushbutton (dynpro not ALV)

Dear all
I created a popup showing a table control and 2 buttons (confirm / abort).
The user simply wants to push the confirm button to proceed by pressing enter but unfortunatly I see no way to set the focus on that element by default.
Any help is appreciated.
Thank's in advance and best regards
Benno

Use this in PBO:
* BUT_CONF is the button for the Confirm
SET CURSOR FIELD 'BUT_CONF'
Regards,
Naimesh Patel

Similar Messages

  • When ever i have set default search engine It is not constant It changes . It should Not change

    Actual :-
    I have set default search engine it changes every time when i restart Firefox 9.1 .
    Expected :-
    The search engine should be the same which was set previously

    A new tab opens by default as a blank tab (about:blank).
    If that isn't the case then an extension has changed that behavior.
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.org/kb/Safe+Mode

  • How to set default file path while downloading alv output

    Hi,
    Can anyone tell me that how to set default file path while downloading the ALV output to system using Local file button on tool bar.
    Please look below screenshots:
    Kindly help me resolve it.
    Thanks in advance.
    Regards,
    Ashutosh Katara

    This information initial value is (maybe) stored in Windows Register (register.exe) at Software\SAP\SAPGUI Front\SAP Frontend Server\Filetransfer -> PathDownload, you can read it thru class CL_GUI_FRONTEND_SERVICES method GET_UPLOAD_DOWNLOAD_PATH and update it thru method REGISTRY_SET_VALUE. (Else there may be some parameter ID to force data, but I'm no longer sure)
    Regards,
    Raymond

  • Is there a default focus Method ?

    I would like to have a button to be focused by default within a dialog such that user can easily fire the button's action. Is there a method to set default focus on a button ? Thanks !!!

    That's actually very helpful. I can now set a default focus button on a dialog. But then for some reason I can not set it for other dialogs initiated by this dialog. Since I have an opening dialog with a number of buttons, and those buttons will open up a new dialog. Right now I can only set the default focus to the opening dialog. The other dialogs that opens up from firing the buttons did not have the same effect as the opening dialog. Is there a way to fix it ? Thanks

  • Can someone explain how to set the focus to a component

    Hello,
    What is the best way to ensure that a component gets the focus with code. I have tried requestFocus and requestFocusInWindow and none of them seems to do there work. The frame containing the components that should get the focus is displayed, the component is focusable so that is not the problem. What I found out is that if the component is deep in a nesting of panes (where the top pane is in the frame) is that calling requestFocus or requestFocusInWindow does not give the component where this focus is called on the focus but either the pane that contains it, one of the parent panes of this pane or one of the components in these panes, in almost all cases the component requesting the focus does not get the focus at all. I always have to write a work around in defining a focus listener for all these panes that transfer the focus back to the component that requested the focus originally, I can't believe that this is the way to ensure that a component has the focus via code. I have searched for documentation but found nothing on what requestFocus(inWindow) is actually dooing (a lot about focus traversibility but I don't want to control this, just make sure that a component gets the focus).
    Again I'm pretty sure that the toplevel window is activated and that the component that requested the focus is focusable (I had created a derived version of the DefaultFocusManager that showed who has focus). Personally I think (and I'm not alone if you do a search in this forum on focus management) that there is either a big problem in the documentation of focus management or that it is still not possible to even try to set the focus on a component in a easy way.
    Marc

    Hello,
    thanks for your reply, here is some example code that illustrates the problem I have (the actual code is to big to show here, which is the raison why I did not posted it here). The code wil create a frame with a JPanel with a JTextField, a 'New' Jbutton and a 'Delete' Jbutton, a tabbed pane in the center ('New' will create a new JPanel, add it to the tabbed pane and set the focus on it, either by calling RequestFocusInWindow() directly or by calling it via InvokeLater (someone on this forum suggested to use this). I changed also the focusmanager to show the component that has the focus when you type something. To test compile and run the program (either with a call to requesteFocusInWindow directly or indirectly (by changing the comments), on my system I get the following behaviour:
    1. requestFocusInWindow called directly
    Start program en type, the tabbed pane has the focus
    Press New and type something, a button has the focus not the created panel
    Press New again and type something, a button has the focus not the created panel
    2. requestFocusInWindow be called indirectly
    Start program and type, the tabbed pane has the focus
    Press New and type, the created panel has the focus (I thought at one moment that I had found the solution there, but alas ...)
    Press New again and type something, a button has again the focus.
    Note that with my real program it is not always a button that will have the focus, sometimes it is a combobox or a TextField (I tried to get this with the example code (the JTextField) but did not succeed.
    Hopes this clarify the problem a little bid, what I want is when the window is visible to set focus on newly created panes (or in the real program on the panel that is selected via the tabbed pane or via a key combination to shift the focus between the panels) but requestFocusInWindow seems to behave unpredicatable. I can't imagine that what I see is a bug so I must make some assumptions which are not valid but I don't see them, btw listening on the WindowListener is I think not the solution because the frame is already displayed when I want to set the focus and I do not use a modal dialog box.
    The example code follows here
    Marc
    * Main.java
    * Created on December 21, 2004, 8:58 AM
    package testfocus;
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    * @author marc
    public class Main
    static int counter;
    /** Creates a new instance of Main */
    public Main()
    * @param args the command line arguments
    public static void main(String[] args)
    JFrame frm=new JFrame();
    JPanel content=new JPanel();
    frm.setContentPane(content);
    final JTabbedPane paneContainer=new JTabbedPane();
    JPanel bar=new JPanel();
    JButton create=new JButton(new AbstractAction("New")
    public void actionPerformed(ActionEvent ev)
    counter++;
    final JPanel pnl=new JPanel();
    pnl.setName("test"+counter);
    paneContainer.add(pnl);
    pnl.setFocusable(true);
    pnl.requestFocusInWindow();
    /* Either use this or the previous line
    SwingUtilities.invokeLater(new Runnable()
    public void run()
    pnl.requestFocusInWindow();
    JButton delete=new JButton(new AbstractAction("Delete")
    public void actionPerformed(ActionEvent ev)
    int i=paneContainer.getComponentCount()-1;
    if (i>=0)
    paneContainer.remove(i);
    JTextField dummy=new JTextField("Test");
    bar.add(dummy);
    bar.add(create);
    bar.add(delete);
    content.setLayout(new BorderLayout());
    content.add(bar,BorderLayout.SOUTH);
    content.add(paneContainer,BorderLayout.CENTER);
    frm.setSize(300,400);
    FocusManager.setCurrentManager(new DefaultFocusManager()
    public void processKeyEvent(Component component,KeyEvent ev)
    System.out.println("Focus owner"+getFocusOwner());
    super.processKeyEvent(component,ev);
    frm.setVisible(true);
    }

  • Default Focus on textInput ?

    Hi everybody !
    How set default focus on form element ?

    Hi Rustam -
    I believe that you'll need to write a bit of JavaScript to do this. You can set the default focus in your body's onLoad handler. Here is a sample uiXML page which sets the focus to a text input control when the page is loaded:
    <?xml version="1.0" encoding="UTF-8"?>
    <page xmlns="http://xmlns.oracle.com/uix/controller"
          xmlns:ui="http://xmlns.oracle.com/uix/ui"
          xmlns:data="http://xmlns.oracle.com/uix/ui"
          xmlns:ctrl="http://xmlns.oracle.com/uix/controller">
    <content>
      <body onLoad="form1.text2.focus()" xmlns="http://xmlns.oracle.com/uix/ui">
      <contents>
        <form name="form1">
        <contents>
          <stackLayout>
          <contents>
            <textInput name="text1"/>
            <textInput name="text2"/>
          </contents>
          </stackLayout>
        </contents>
        </form>
      </contents>
      </body>
    </content>
    </page>Andy

  • How to set the focus on the new added line in ALV list (OO)

    Dear Friends,
    I have an ALV list based on OO(using alv_grid->set_table_for_first_display), when I click the 'new' button to add a new line, the mouse arrow is always pointing to the first line - not the new created line for user to input!!.
    So how to set the focus (mouse arrow) on the new added line in ALV list for user to input it friendly?
    Thanks a lot!!

    Hello,
    To get the selected line row first we have get all the rows in the internal table.
    When u click on the button when it is creating the new line we have to pass the row number to the call method
    CALL METHOD <ref.var. to CL_GUI_ALV_GRID > ->get_selected_rows
       IMPORTING
          ET_INDEX_ROWS  =   <internal table of type LVC_T_ROW > (obsolete)
          ET_ROW_NO      =   <internal table of type LVC_T_ROID > .
    CALL METHOD<ref.var. to CL_GUI_ALV_GRID>->set_selected_rows
       EXPORTING
          IT_ROW_NO  =  <internal table of type LVC_T_ROID>
       or alternatively
       IT_INDEX_ROWS  =  <internal table of type LVC_T_ROW>
          IS_KEEP_OTHER_SELECTIONS  =  <type CHAR01>.
    http://help.sap.com/saphelp_erp2004/helpdata/EN/22/a3f5ecd2fe11d2b467006094192fe3/content.htm

  • How do I set the zoom at a particular level as the default to ensure pages are not too small and that i don't have to change the zoom for each page? in English

    How do I set the zoom at a particular level as the default to ensure pages are not too small and that i don't have to change the zoom for each page? in English
    == This happened ==
    Every time Firefox opened
    == From the beginning

    Some add-ons:
    Default FullZoom: https://addons.mozilla.org/en-US/firefox/addon/6965 (I use this one)
    No Squint: http://urandom.ca/nosquint/
    Also:
    http://support.mozilla.com/en-US/kb/Page+Zoom
    http://support.mozilla.com/en-US/kb/Text+Zoom
    http://kb.mozillazine.org/Browser.zoom.siteSpecific

  • Setting default value to columns on tabular form is not working.

    Hi,
    I created a tabular form and i want to set some default values to columns based on the values in page items.
    so i set the page item to column value in tabular form attributes by selecting the Default type as PLSQL Expression & Function DEFAULT value &P24_ISSUE_ID. it worked fine but
    in the similar way i tried for the another column by selecting the default type as pl/sql expression & function and default value &P24_CASE_NAME.
    but it throwing an error for this like failed to parse SQL query:    ORA-00904: "C254DB": invalid identifier
    i don't understand where i gone wrong even i checked for the data types of the columns, everything is fine.
    so please help me out of this problem.

    Tulasi 1243 wrote:
    for the first column
    i selected
    DEFAULT TYPE as PL/SQL Expression & FUNCTION
    Default as *&P24_ISSUE_ID.* This is a number data type column
    2nd column
    Default Type as PL/SQL Expression & Function
    Default as *&P24_CASE_NAME.* This is Varchar2 data type column.The appropriate options for a default value from a page item are Item (application or page item name) for Default Type and the item name ( P24_ISSUE_ID, P24_CASE_NAME etc) for Default.
    *&P24_ISSUE_ID.* is not a "PL/SQL Expression or Function".
    but it throwing an error for this like failed to parse SQL query: ORA-00904: "C254DB": invalid identifierWhat you are doing results in the APEX engine substituting the P24_CASE_NAME value "C254DB" into the default value and then trying to evaluate this string as a piece of PL/SQL. Outside of a block in which it is defined as a variable, constant or function "C254DB" is not a valid PL/SQL expression.

  • How to set default font in presenter notes ?

    How can I set the default font in the presenter notes ?
    Dual 1.8GHz G5   Mac OS X (10.4.4)  

    Fix Your Fonts in Safari 6
    Some Safari 6 stuff
    TextExpander shell script snippet to set Safari 6 default fonts
    Safari 6 on Lion, text much smaller?
    Quickstyle - Canisbos
    Safari 6 default font way too small?

  • How to set the default focus to  a particular jtextfield

    hi,
    i'm trying to set the focus to the specified Jtextfield by default.
    i tried with reqestFocus() method,grabFocus() method,getCursor() method
    but all in vain.
    can anyone suggest me a solution please.
    very urgent request please
    thanks in advance
    regards
    Ravi teja

    If I understand the question correctly then this thread will help:
    http://forum.java.sun.com/thread.jsp?forum=57&thread=290339

  • Alerts in delegate iCal 6.0 in Mountain Lion not allowing to set default

    I'm using iCal 6.0 with OSX 10.8.2
    When syncing iCal with my Google calendars all is well. However, when I add an event in any one of the delegate calendars in switches the default alert from "None" to "9 a.m. the day before" etc.
    I have logged into my calendar online and all the calendars have NO alerts set. At all.
    I do not have this issue on my iPad or iPhone. Only on my Macbook Pro running Mountain Lion as stated above.
    I’ve called support, no help there so far.
    I’ve done everything except uninstall iCal itself.
    Any ideas?

    Found this on another discussion. So far it's seems to solve issue:
    IBB12
    Re: iCal on iPad or iPhone setting default alerts 
    Sep 26, 2012 7:02 AM (in response to IBB12)
    ok got it, had to be from my ipad settings, go to settings, go to mail,contacts,calendars, and then scroll down to calendar settings and tick off new invitation alerts as well as shared calendar alerts. cheers
    NOTE: Make sure this is done on all devices. I had it off on my iPad but on on my iPhone. Turned them all off seemd to work so far.

  • Can not set default page

    I cant set default page. It keeps reverting to: http://search.jzip.com/

    #Uninstall jZip (or Windows jZip or Windows jZip Toolbar) from Control Panel > Add or Remove Programs.
    #Open Windows Explorer
    #*Navigate to the C:\Program Files\jZip Toolbar folder
    #*Double-click uninstall
    #*Delete the Windows jZip Toolbar folder.
    #In Firefox, remove the Add-on if it is there
    #*Choose Add-ons > Extensions.
    #*Select the jZip Toolbar entry '''''if it's there''''' and click the Uninstall button.
    #*Close the Add-ons Manager tab/window
    #In Firefox, reset preferences
    #*Type '''about:config''' in the address bar and press Enter.
    #*If you see a warning, accept it (promise to be careful)
    #*Filter = jzip
    #*In results in the bottom panel, right-click each entry and choose Reset.
    #Restart Firefox.
    There should have been options during the jZip installation; see image below.
    An excellent free application to replace jZip (and the one that I have used for a very long time) that does not install all the "extras" is 7zip:
    *http://www.7-zip.org/
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''
    Not related to your question, but...
    You need to update some plug-ins:
    *Plug-in check: https://www-trunk.stage.mozilla.com/en-US/plugincheck/
    *Shockwave Flash (Adobe Flash or Flash): [https://support.mozilla.com/en-US/kb/Managing%20the%20Flash%20plugin#w_updating-flash Updating Flash in Firefox]

  • My iPhone calendar default is set to "calendar" and it's not an option with my iPad. How to I sync my iPhone calendar to my iPad?

    My iPhone calendar default is set to "calendar" and it's not an option with my iPad. How to I sync my iPhone calendar to my iPad?

    Using iCloud or another sync service like Google. This may help: iCloud: Using iCloud Calendars with Calendar and iCal

  • KDE 4.11 not set default application

    I search to add vlc as default viewer for .mkv file, not work.
    Seem 4.11 cant set default program for file type, on net i found this:
    https://bugs.kde.org/show_bug.cgi?id=321706
    Is possible add patch ? ..thx excuse my english.

    https://bugs.archlinux.org/task/36627

Maybe you are looking for

  • Fields in FICO

    Hi, can any body tell me what fields (in FICO),  i have to take for the Invoice details like Invoice date, Invoice amount, Payer detaails etc..         Thanks,         Ram.

  • Archive logs are missing in hot backup

    Hi All, We are using the following commands to take hot backup of our database. Hot backup is fired by "backup" user on Linux system. ======================= rman target / nocatalog <<EOF CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK T

  • Adobe Reader X freezes while enumerating disk drives to save

    Dear all, We experience a problem with Adobe Reader X. Some users, after opening a pdf, they choose "Save as" and when they click on the drop down arrow, that contains the save locations on the local PC, Adobe Reader freezes and we have to use task m

  • I can'nt turn on my iphone

    The logo apple is on the screen and I can'nt turning on or off

  • I updated to F.F.6 and I no longer can use my back or forword buttons?

    I can no longer use my forward/back button after updating to F.F.6 it worked fine before doing this. Please Help! Thank You