How to set Shortcut keys for button in Apex

Hi
Could anyone help me on how to set shortcut keys for buttons in Apex.
I need to use say ALT + S to submit the page.
The following thread pertaining to HTML DB refered to use ACCESS key. but that couldnt work in my case.
Re: operation of the app. with the keyboard
Any pointers on achieving this would be helpful.
Thanks
Vijay

Hi Vijay,
I’m afraid you must do it using javascript key listener. You can’t use action() on template based buttons because they are actually not HTML buttons but images with hyperlink.
Key listener checks which key has been pressed down and invoke some JS function. For example, write this code in page header:
<script>
document.onkeydown=keyCheck;
function keyCheck(e){
     var KeyId = (window.event) ? event.keyCode : e.keyCode;
     switch(KeyId){         
          case 113:
               doSubmit('SAVE');
               break;                    
          case 118:
               alert('Hello');
               break;
</script>
This script will submit page with request 'SAVE' if you press F2 or will show alert message if you press F7. Modify it to your issue.
Regards,
Przemek

Similar Messages

  • How to Add shortCut  key to  button or form In SAP BusinessOne

    Hi
    How to assign short Cut  key to  button or form ,in SAP BusinessOne using  VB.net.
    Thanks,
    Y.
    Edited by: Yughandar on Mar 10, 2011 9:32 PM

    Hi
    To set shortcut key for button , try this
    in your srf change the button caption like this
    caption="&amp;Del line"
    this will set shortcut key (Alt+d) for the button
    Regards
    Arun

  • How do i set Shortcut key for activating some operation for JButton

    while using the JButton component,one question is arising in my mind that is
    (1)how to set Shortcut key instead of using JButton actionPerformed event.
    I need a shortcut key for the similar operation has to be performed

    http://java.sun.com/docs/books/tutorial/uiswing/components/button.html

  • How to set primary key for a date column

    hello experts .,
    i need to set primary key for a column consists of the datatype date. how to solve this..?

    1008318 wrote:
    its my personal need..then it is a very bad personal need. DATE is not an appropriate type to be using for a primary key, as it cannot be guaranteed to be unique, especially when inserting multiple rows at once.
    You would be better working to business needs and implementing correct technical solutions to those needs, than to just do things based on your personal needs.

  • Robohelp Shortcut keys for styles

    RH8 HTML
    Just wondering if theres a way to set shortcut keys for styles, similar to how you can do it in MS Word.
    Just makes formatting etc so much faster, instead of having to use the mouse and click around.
    I see I can set shortcuts to do other RH functions, like create new topics etc....but nothing for text formatting.
    Thanks, Nick.

    Hi Nick
    RoboHelp has always offered the following:
    Ctrl+Alt+1 Applies Heading 1
    Ctrl+Alt+2 Applies Heading 2
    Ctrl+Alt+3 Applies Heading 3
    Ctrl+Shift+N Applies Normal
    Aside from that, perhaps use something like Macro Express to create a macro you could use.
    http://www.macros.com
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7 or 8 within the day - $24.95!
    Adobe Certified RoboHelp HTML Training
    SorcerStone Blog
    RoboHelp eBooks

  • How can configure shortcuts key like in CFstudio 5

    how can configure shortcuts key for CF tags (e.g. alt + o for
    cfoutput) like in CFstudio 5? With DW 8 it seems not possible
    unless you write a snippet of the cf tag which is time consuming.
    There must be a smarter way. Any feedbacks? Thanks

    Don't have DW8 in front of me (am at work, still using
    MX2004), but look in the edit menu for Keyboard shortcuts. It will
    open up a dialog box where you can re-assign
    M

  • How to set the short cut key for buttons

    Hi
    I dont know how to set the short cut keys for the button...can u pls help me out

    Do you mean a short cut key for buttons at client side (web browser)? If yes, you could do it with JavaScript~~~ ^o^

  • Shortcut key for Firefox icon won't start multiple sessions

    If is set up a shortcut key for the desktop icon to start firefox, it can start one but not multiple windows/sessions of firefox. I want it to start a new firefox window, just like I can with IE, even if firefox is already running. How can I fix this?

    Dear Q,
    Many thanks for your help!
    Didn't work straight up for a couple of times.
    Firefox(3.6.8) just wouldn't start,but did allow me to uninstall it.
    Which I did, removing all personal data. (second time)
    I then installed older version (3.6) , and is up and running again.
    Once again , many thanks , for your time and effort to help.
    journeyman.

  • Disable shortcut keys for Universal Access

    At our school we have a bit of an issue with students using keyboard shortcuts to set the Universal Access options (usually to Black on White, but also Zoom and VoiceOver), which freaks out the next student using the computer. I'd like to disable the shortcut keys for those settings. Are there ARD Unix commands that would do it?

    Hello Francois,
    Thank you for your fast reply!
    I tried your recommendation, but got the following result:
    When I have a label of "& OK" with the blank symbol as ALT-255, the Button in the Alert Box still has the focus. It seems as if there now is a blank in front of the OK (which is underlined). This does not really solve my issue, because the Button still has the focus and that should not be. The best solution for the user would be if he only could accept the message with a mouse klick.
    Is there an other suggestion?
    Thank you so much!

  • How to find function code for buttons on toolbar in oops alv

    Hi experts,
    I want to remove some buttons from toolbar in oops alv, i know the procedure like get function code and pass the value in a table and pass that table to IT_TOOLBAR_EXCLUDING of
    method set_table_for_first_display but I WANT TO KNOW HOW TO FIND FUNCTION CODE FOR BUTTONS ON TOOLBAR IN OOPS ALV

    Hi Prakash,
    -->First you have to set the pf status in your alv program by,
    {FORM pf_status USING rt_extab TYPE slis_t_extab.
      SET PF-STATUS 'FIRST'.
    ENDFORM.                    "PF_STATUS}
    -->Pass this Subroutine name in the Function module, Reuse_alv_grid_display's parameters i.e,
          i_callback_pf_status_set          = 'PF_STATUS'}
    *-->Then doble click on that pf status,
    From the menu bar, select Extras->Adjust Template->List Viewer,
    This will give you the existing statndard gui status of the program*
    ->Then catch that function codes in the User command Parameter of the Function module Reuse.. i.e,
          i_callback_user_command           = 'COMM'
    And make a subroutine of the name 'COMM'i.e,
    FORM comm USING ucomm LIKE sy-ucomm selfield TYPE slis_selfield.
      DATA: okcode TYPE sy-ucomm.
      okcode = ucomm.
      CASE okcode.
        WHEN 'REF'.
        CALL FUNCTION 'POPUP_TO_INFORM'
          EXPORTING
            titel         = 'MANSI'
            txt1          = 'CREATED BY'
            txt2          = SY-UNAME
          TXT3          = ' '
          TXT4          = ' '
    endcase.
    Hope it helps you
    Regrds
    Mansi

  • How to set background color for selected days in DateChooser

    How to set background color for selected days. I created
    checkbox for each day [Son,Mon,Tue,Wed,Thu,Fri,Sat] and a
    DateChooser, I want to change the background color for the selected
    day when i click on a button after selecting the desired checkboxs
    [ monthly wise/yearly wise]
    Thanks in advance

    There is no button involved in the following code, but it may
    be of use to you:
    <?xml version="1.0"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    creationComplete="init()">
    <mx:Script>
    <![CDATA[
    private var origColor:uint;
    private function init():void {
    origColor = dc.getStyle("selectionColor");
    public function setBackGrdColors(newColor:uint):void {
    dc.setStyle("selectionColor", origColor);
    if(dc.selectedDate){
    var dayOfWeek:Number = dc.selectedDate.day;
    else{
    return;
    switch(dayOfWeek) {
    case 0:
    if(sun.selected)
    dc.setStyle("selectionColor", newColor);
    break;
    case 1:
    if(mon.selected)
    dc.setStyle("selectionColor", newColor);
    break;
    case 2:
    if(tue.selected)
    dc.setStyle("selectionColor", newColor);
    break;
    case 3:
    if(wed.selected)
    dc.setStyle("selectionColor", newColor);
    break;
    case 4:
    if(thu.selected)
    dc.setStyle("selectionColor", newColor);
    break;
    case 5:
    if(fri.selected)
    dc.setStyle("selectionColor", newColor);
    break;
    case 6:
    if(sat.selected)
    dc.setStyle("selectionColor", newColor);
    break;
    default:
    break;
    ]]>
    </mx:Script>
    <mx:VBox horizontalAlign="center" verticalGap="20">
    <mx:DateChooser id="dc" textAlign="left"
    change="setBackGrdColors(cellColor.selectedColor)"/>
    <mx:HBox width="100%" horizontalAlign="center">
    <mx:CheckBox id="sun" label="Sun"/>
    <mx:CheckBox id="mon" label="Mon"/>
    <mx:CheckBox id="tue" label="Tue"/>
    <mx:CheckBox id="wed" label="Wed"/>
    </mx:HBox>
    <mx:HBox width="100%" horizontalAlign="center">
    <mx:CheckBox id="thu" label="Thu"/>
    <mx:CheckBox id="fri" label="Fri"/>
    <mx:CheckBox id="sat" label="Sat"/>
    </mx:HBox>
    <mx:HBox width="300" horizontalAlign="center">
    <mx:Label text="Background Color" />
    <mx:ColorPicker id="cellColor"
    selectedColor="#FF00FF"/>
    </mx:HBox>
    </mx:VBox>
    </mx:Application>

  • How to set Update Mode for DSO in BI7.0?

    Hi,
    As you know in bw3.5, in update rules we can set  the update mode for ods as Additive or overwrite functionality.
    But can anybody tell me where are these settings in bi7.0? or
    How to set Update Mode for DSO in BI7.0?
    Thanks and Regrards,
    Harshal

    Dear Harshal,
    GO to the tramsformations of your DSO..
    In the Rule Group..Click on any key Figure..
    this pops u a window..in which u will find  AGGREGATION ..Then u can select Either OVERWRITe or SUMMATION which suites ur requirement..
    Hope this helps u..
    Assign points if helpful..
    Best Regards,
    VVenkat..

  • Non numeric keyboard - I need the shortcut keys for Google Earth

    I need the shortcut keys for Google Earth - like Page Up, Page Down etc, but the new Apple wireless keyboard hasn't got the numeric keypad.
    Are there alternative shortcut keys for Page Up/Down? Or can I programme any of the Function keys to do that instead?

    You can create custom shortcuts pretty easily. Here is an article that explains how to do it:
    http://www.handpickedsoftware.com/tiger-tip-creating-custom-keyboard-shortcuts

  • Is There a Shortcut Key for Change/Find ?

    Hello and thanks in advance,
    Using the InDesign CS-5  Find/Change feature, I am always using  the Change/Find button.
    *** Is there a way to create a shortcut key for this option, Change/Find ? ***
    Since I use it so often, it would be good if it could be one of the "F" keys:  F1, F2 or whatever.
    I looked under "Edit --> Keyboard Shortcuts" ... but I could not find the option Change/Find there.  Did I miss it ?
    Thanks again,
    Zorba

    Here is what I have now done, based on the suggestions above:
    http://i150.photobucket.com/albums/s90/robinwhitman/tech_support/id-edit-keyboard-shortcut s.jpg
    As you can see from the screen shot above,
    I have opened up the Keyboard Shortcuts Menu,
    Product Area:   Text and Tables
    In the Commands window I have selected:
    =====================
    Grep Replace wth Change to text and Find next
    ==============
    Now at this point, suppose I want to make the shortcut to activate this, the F4 key.
    I click to put the cursor into the cursor into the box that says, New Shortcut
    and then if I press "F4", it seems to be already taken by the Snow Leopard OS ... on my screen appears the Weather, calculator, calendar and clock.
    So I cannot assign the key and create the shortcut.
    Am I close to the goal here, or am I on the wrong track ?
    Thanks ... Zorba

  • How to set primary key of the VO.

    I have a problem with the master detail search. The search works fine on the first search, all details can be seen fine, but in the second search I get this error.
    The number of displayed records, 1, exceeds the actual number of records, 0, in view object EgoItemAdvancedSearchAM.MYACCESSOR001_MYLINK001_DetailsOrderLinesVO. Some of the displayed records may have been deleted.
    Somwhere in another thread, someone had the same problem and the soultion was to set primary key of the master VO. I am not sure how to set primary key of a VO. In my case the master VO is dynamic. Is there a way I can set PK of a dynamic VO.
    Any help greatly appreciated.

    Hi
    Thanks for your reply...
    am seting the primary key to VO attribute in my controller(PR)...but its not mapping to the VO attribute..
    OAAttachmentImageBean Ibean = (OAAttachmentImageBean)webBean.findChildRecursive("OpAttachments");
    String[] pkvaule = {"ResAttribute15"};
    Ibean.setPkColumns(pkvaule);
    Regards
    Harrrry

Maybe you are looking for

  • Std report modifications.......................can anybody help me

    Hi , This is my first object of this type...... Can any body guide me... how to start...... Report i want to modify is RIIMR020 ( Tcode ik17 ). I want to add kostl Cost center field to output and i have to do sub totals and totals for cdiff field. Th

  • Not able to access schema from a Web Server

    I am not successful in using a schema from a web server. I am using j2sdk1.4.2_06, and JDOM-b10. I have been successful in accessing schema using a file path, but not with a web address. The server is Windows Server 2003, I create a virtual directory

  • Customer master-general data-attribute-creation

    Hi, I would like to use the attribute 1 to 10 fields in customer master general data to fill up relavant to customer . i have seen some SCN postings regarding activation of those fields technically. i want to create some data in the attribute same li

  • Loading Clob and Blob data using DBMS_LOB

    I am loading some data into a table that has five columns, two of which are defined as BLOB and CLOB respectively. I get the following errors after the pl/sql procedure that loads it has completed running : ERROR:ORA-21560: argument 3 is null, invali

  • Assassin's Creed2

    Hi I have  HP  Pavilion g6-1048se Notebook When i play Assassin's Creed2   A little slow   This is normal, with the ability of the device???