Problem with assigning function key to button

Hi
JHs:     11.1.1.3.35
JDev: 11.1.1.4
I have a button which I want to assign a function key to. I did based on the JHs tutorial and added the following lines:
1) #ADD_GROUP_ACTION(${JHS.page.group} "RefreshButton" "${JHS.current.item.id}") to TOOLBAR_BUTTON template
2) ${JHS.registerFunctionKey("shift F5","Shift+F5","Refresh","RefreshButton",true)} to REGISTER_FUNCTION_KEYS template
Now, the new function key appears in the list of function keys when I press ctrl+K but pressing ctrl+k doesn't have any effect. I have no idea why it doesn't work. What should I do to make it work?
Here is the attribute added to the page:
<f:attribute name="RefreshButton"
value="ReplyDepartmentQueuePC:ReplyDepartmentQueueRefreshBtn"/>
and here is the commandButton definition code:
<af:commandButton id="ReplyDepartmentQueueRefreshBtn"
textAndAccessKey="#{nls['REPLYDEPARTMENTQUEUE_REFRESHBTN']}"
icon="/jheadstart/images/refresh.gif"
actionListener="#{bindings.ExecuteQueryReplyDepartmentQueue.execute}"
shortDesc="#{nls['REPLYDEPARTMENTQUEUE_REFRESHBTN_HINT']}"
iconPosition="trailing"></af:commandButton>
Cheers,
Ferez

Hi Steven
Running the application in debug mode proved that the problem is not in FunctionKeyHandlerImpl.handleKeyCode and the function key was doing well but the results were not reflecting in the table. Setting the partialSubmit of the button to true and adding the id of button to the partial triggers of the table solved the problem.
Thank you so much about the hint on turning ADF logging on, it is very handy.
Regards,
Farzad

Similar Messages

  • I recently purchased some scripts and saved them as actions but wont work with assigned function key

    i could use some help ....i recently purchased some scripts to help automate things i do with scrapbooking.... i am using cs4 and have vista...i have made actions to make it easy to use the scripts.... i have assigned function keys to make it easy to use the actions... but it doesnt seem to work with the function keys...i can run the actions by pressing that arrow/button on the bottom of the action palette but when i hit the f key nothing happens..when i first got the scripts it did work.... but now it doesnt....i deleted the actions and made them again but still dont work with f keys...what could be the problem and what do you suggest i do...others who have purchased these same actions seem to be able to use them with the f keys.... thanks for any thoughts and suggestions

    think i may have solved it myself and passing this dum thing along....on my keyboard is flock...i mustve hit it and the keys were locked...so i hit it and now they work.... oh dear.

  • Problem with Keyboard function keys.

    Hey guys, let me start by saying I'm not a novice when it comes to computers, I'll be able to understand most of what you guys say here. My function keys are working perfectly fine... when I hold fn with F10 or any other button with controls it will move the desktop away in a quick and timely manner. However, if I try to use the key with just the speaker function it does not respond until MUCH later if at all.
    I have been having numerous headaches with Lion. This issue did not arise previously with Snow Leopard. Keyboard Setup Assistant also appears at bootup although I have nothing plugged in what-so-ever. Couple of things I've tried (I've found many threads about this and this seems to be the answer that is commonly given, but doesn't work for most of these people):
    1) I reset my PRAM a few times.
    2) I tried it with the Use function keys button checked and unchecked. This is happening straight from a fresh install.
    3) I deleted preferences and had them remade.
    This goes for Brightness, Keyboard Brightness, Dashboard, volume and track controls. Thanks for your help...

    Without knowing which verison of OS X is installed it's difficult to say what you have done. However in ML open System Preferences - Keyboard - uncheck Use all F1, F2 etc. keys as standard function keys

  • Problem with keyborad functionality, key pad doesn...

    i face a problem with my n81 2 gb.
    sometime not all time the right top, red and 'c' button not working properly, if i press red button it works as the down arrow button, the right top button works the 'c' button and 'c' button doesnt work..... it seems that somebody is clicking the button and the phone light is on at that time thogh i keep the phone untouched on my table.
    it happend several times, in the 7/8months of my phone's life.
    may i get any help from you. thank u in advance.

    Hi,
    the managed bean that handles the switch, can you try setting its scope to view instead of request ?
    Frank

  • Problem with assigning web url to button

    I have a decompiled swf which I've heavily modified consisting of two large buttons with identical behaviors. When I assign a url to the button layer after double clicking on the left button, then the right, the behavior are both applied to the same sprite which, when viewed in the library, only represents the left button ("url one"), while the second url is missing. There are two separate layers for each button on the scene, yet I can't get separate urls applied to them because of this.
    I could just create two separate files, but that would add to the amount of code.... Any suggestions?

    Hi kglad,
    Following what you said in an earlier post, when I insert the following code via the behaviors panel
    //Goto Webpage Behavior
    getURL("http://adobe.com","_self");
    //End Behavior
    my rollovers no longer function. This is why I was double clicking on each movie clip and applying the code to the actual button symbol.
    Flash gives me migraines...

  • I have problems with the function keys of my MacBook Air 13" Mid2011

    i have this problem, anybody can help me? THANKS!!!

    If the center portion of the monitor is flickering then your GPU on the logic is bad or (unlikely given this symptom) that your monitor cable is pinched/damaged.
    **Imediately backup ALL your important data while you can still see things on the monitor
    Contact Apple for appt. for in shop diagnostics for full examination and for parts replacement
    nobody can give you a cost on a repair that isnt fully diagnosed online and cannot be.
    perform SMC reset just to check:
    Shut down the computer.
    Plug in the MagSafe power adapter to a power source, connecting it to the Mac if its not already connected.
    On the built-in keyboard, press the (left side) Shift-Control-Option keys and the power button at the same time.
    Release all the keys and the power button at the same time.
    Press the power button to turn on the computer. 

  • Problems with assigning code to a button to process what is in a shuttle

    Objective: Have a user use a shuttle to pick out all of the different items from left to right then hit submit and it will spit out the information
    example of table
    tape Box crayon
    course101 X X
    course102 X
    course103 X X
    1. User chooses item on the left ex tape and box then tape and box will go in the following code when the user hits the button.
    select course_name from my.COURSE where tape is not null and box is not null
    Result: the page spits out courses that are in the table where tap and box are not null
    So the result would be
    course101
    course102
    HELP i cant figgure out how to move the code from the right side of the shuttle into the code and spit out the courses. I am a definate noob for this software.

    Hi,
    This might help
    How to enable user to pick which row without using filter in interact. rpt?
    Sample here
    http://actionet.homelinux.net/htmldb/f?p=100:53
    Regards,
    Jari

  • Hello i have a problem with onfocus function on ipad. i am trying to bring my cursor on a text box on a button click. It works fine with safari web browser but not on ipad. Need a solution.

    Hello i have a problem with onfocus function on ipad. I am trying to bring my cursor on a text box on a button click. It works fine with safari web browser but not on ipad. Need a solution.

    I don't think that a software update from Apple will solve the issues that you are having. You have a rogue installation. After you posted I have just done the following:
    Disk Utility can verify  my partitioned Volume (including my boot disk) AND REPAIR the non-boot disks on the same Volume without a glitch. It repairs the non-boot disks containing data smoothly.
    I have used Mail to send some mails from some Yahoo and Hotmail accounts to my Thunderbird client containing GMail accounts - absolutely normal.
    I have iLife '09 but my iMovie '09 and iPhoto '09 open in a jiffy and I see no issues here. I have 6GB RAM (Maximum) on an early 2008 Macbook Pro with a 750GB hard drive partitioned with 120GB reserved for the Boot Drive.
    I am sorry that I cannot help further but I am sure there must be a way to reinstall the software without having to revert to restoring your ML backup. I have two clones and if you have such I would attempt to do that through that rather than through Time Machine - that is of course if you have a cloned drive.
    Good luck!

  • How to assign Function key in Module Pool Program

    Dear all,
             I have created the program in MPP.  I have to assign function key for this program.  How to assign it?
    With Regards,
    Baskaran

    HI
    Double Click on your Screen and then Elements Tab, give OK_CODE of OK_CODE.
    Now in Click on Flow Logic Tab , uncomment MODULE STATUS_YOUR_SCREEN_NUMBER. Create this.
    Here you find SET PF_STATUS Just Double click on this this will enable you to Assign Function Keys.
    If you want to Assign Function Key to the Push Buttons that you created Double Click on the Push Button then on the Attributes Screen you can enter the Funciton Code for this Push Button,
    Hope this is Very Clear to you.
    Cheers
    Ram

  • Problem with BAPI_SALESORDER_CHANGE function module

    I know lot of posts have been done about problems with this function module. However I was not able to find the answer to my problem. Hence posting a new thread
    I have the following code which changes the reason rejection (if required to 'ZF') and also updates the sales order quantity.
    The code works absolutely fine as long as the PGI date of the order item is either today or in the future. However if the PGI date of the order item is in the past. I get an error in the t_return table with error type 'E' saying 'PGI date is in the past hence could not update the item'.
    If I try to update the same order quantity in VA02 for the item with PGI date in the past it does so without any problem.
    Can someone please suggest what the problem might be. Or if there is some other way I can update the quantity. (I dont want to use BDC)
    FORM change_sales_order_item USING value(r_rtb_posnrs) TYPE zpsd_ztsdrtb_ro_track
                                 CHANGING r_return TYPE type_t_bapiret2.
      DATA: v_order_header_in TYPE bapisdh1,
      v_order_header_inx TYPE bapisdh1x,
      t_schedule_lines TYPE bapischdl OCCURS 0 WITH HEADER LINE,
      t_schedule_linesx TYPE bapischdlx OCCURS 0 WITH HEADER LINE,
      v_temp_rtb_vbeln TYPE vbeln,
      v_temp_rtb_posnr TYPE posnr,
      wa_old_rtb_posnrs TYPE ztsdrtb_ro_track,
      t_item_in TYPE bapisditm OCCURS 0 WITH HEADER LINE,
      t_item_inx TYPE bapisditmx OCCURS 0 WITH HEADER LINE,
      v_rtb_old_vbeln TYPE zrtbvbeln,
      v_rtb_old_posnr TYPE zrtbposnr,
      v_ro_old_vbeln TYPE zrovbeln,
      v_ro_old_posnr TYPE zroposnr,
      v_rtb_count TYPE i,
      v_next_row_index TYPE i,
      v_update_order_flg TYPE char1, "Update the sales order flag
      v_rtb_record_counter TYPE i,
      v_original_vbeln TYPE vbeln,
      t_bapiret TYPE STANDARD TABLE OF bapiret2.
      FIELD-SYMBOLS: <wa_r_rtb_posnrs> TYPE ztsdrtb_ro_track,
                     <wa_r_rtb_posnr_next> TYPE ztsdrtb_ro_track.
      CONSTANTS: c_updateflag TYPE bapisditmx-updateflag VALUE 'U'.
      v_order_header_inx-updateflag = 'U'.
    Get rid of the duplicate records for the same RTB order. Just use
    the last record quantity in the internal table
      LOOP AT r_rtb_posnrs ASSIGNING <wa_r_rtb_posnrs>.
        v_rtb_record_counter = v_rtb_record_counter + 1.
        <wa_r_rtb_posnrs>-seqnr = v_rtb_record_counter.
      ENDLOOP.
      SORT r_rtb_posnrs DESCENDING BY zrtbvbeln zrtbposnr seqnr zrtbconsumedflg.
      DELETE ADJACENT DUPLICATES FROM r_rtb_posnrs COMPARING zrtbvbeln zrtbposnr.
      DESCRIBE TABLE r_rtb_posnrs LINES v_rtb_count.
      v_rtb_record_counter = 0.
      v_update_order_flg = space.
      LOOP AT r_rtb_posnrs ASSIGNING <wa_r_rtb_posnrs>.
        v_rtb_record_counter = v_rtb_record_counter + 1.
        v_update_order_flg = space.
    Popluate the item quantity update flags for schedule lines
        t_schedule_linesx-itm_number = <wa_r_rtb_posnrs>-zrtbposnr.
        t_schedule_linesx-sched_line = '0001'.
        t_schedule_linesx-updateflag = c_updateflag.
        t_schedule_linesx-req_qty = 'X'.
        APPEND t_schedule_linesx.
        CLEAR t_schedule_linesx.
    *Item (Order QQuantity Field to be changed "KWMENG")
        t_schedule_lines-itm_number = <wa_r_rtb_posnrs>-zrtbposnr.
        t_schedule_lines-sched_line = '0001'.
        t_schedule_lines-req_qty = <wa_r_rtb_posnrs>-zrtbchgqty.
        APPEND t_schedule_lines.
        CLEAR t_schedule_lines.
    If fully consumed then set the rejection flag
        IF <wa_r_rtb_posnrs>-zrtbconsumedflg = 'X'.
          t_item_inx-itm_number = <wa_r_rtb_posnrs>-zrtbposnr.
          t_item_inx-updateflag = 'X'.
          t_item_inx-reason_rej = 'X'.
          APPEND t_item_inx.
          CLEAR t_item_inx.
          t_item_in-itm_number = <wa_r_rtb_posnrs>-zrtbposnr.
          t_item_in-reason_rej = 'ZF'.
          APPEND t_item_in.
          CLEAR t_item_in.
        ELSE.
          t_item_inx-itm_number = <wa_r_rtb_posnrs>-zrtbposnr.
          t_item_inx-updateflag = 'X'.
          t_item_inx-reason_rej = 'X'.
          APPEND t_item_inx.
          CLEAR t_item_inx.
          t_item_in-itm_number = <wa_r_rtb_posnrs>-zrtbposnr.
          t_item_in-reason_rej = ' '.
          APPEND t_item_in.
          CLEAR t_item_in.
        ENDIF.
    If you have reached the last line of the RTB intern table update the sales order
    *Index pointing to the next row
        v_next_row_index = v_rtb_record_counter + 1.
        IF v_rtb_record_counter = v_rtb_count.
          v_update_order_flg = 'X'.
        ELSEIF v_rtb_record_counter < v_rtb_count.
    Get the next row data
          READ TABLE r_rtb_posnrs INDEX v_next_row_index ASSIGNING <wa_r_rtb_posnr_next>.
          IF sy-subrc = 0.
            IF <wa_r_rtb_posnrs>-zrtbvbeln <> <wa_r_rtb_posnr_next>-zrtbvbeln.
              v_update_order_flg = 'X'.
            ENDIF.
          ENDIF.
        ELSE.
          v_update_order_flg = space.
        ENDIF.
    update the rtb orders with quantities and the rejection flag (if required)
        IF v_update_order_flg = 'X'.
          CALL FUNCTION 'BAPI_SALESORDER_CHANGE' STARTING NEW TASK 'SOUPDATE'
            PERFORMING callbk_bapi_salesorder_change ON END OF TASK
            EXPORTING
              salesdocument    = <wa_r_rtb_posnrs>-zrtbvbeln
              order_header_in  = v_order_header_in
              order_header_inx = v_order_header_inx
            TABLES
              return           = t_return
              schedule_lines   = t_schedule_lines
              schedule_linesx  = t_schedule_linesx
              order_item_in    = t_item_in
              order_item_inx   = t_item_inx.
          WAIT UNTIL t_return[] IS NOT INITIAL.
          READ TABLE t_return INTO wa_return WITH KEY type = 'E'.
          IF sy-subrc <> 0.
          ELSE.
            r_return[] = t_return[].
            MESSAGE ID 'ZSD' TYPE 'E' NUMBER 613.
           RAISE errorinorderupdate.
          ENDIF.
          REFRESH t_schedule_linesx.
          REFRESH t_schedule_lines.
          REFRESH t_item_in.
          REFRESH t_item_inx.
          REFRESH t_return.
        ENDIF.
      ENDLOOP.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
       IMPORTING
         return = t_bapiret.
    ENDFORM.                    "Change_Sales_Order

    see the following example and try to do this:
    i_hdrx-updateflag = 'U'.
    *" Fill required SCHEDULE_LINES data.
    i_sched-itm_number = p_posnr.
    i_sched-sched_line = p_etenr.
    i_sched-req_qty = p_reqqty.
    i_schedx-updateflag = 'U'.
    i_schedx-itm_number = p_posnr.
    i_schedx-sched_line = p_etenr.
    i_schedx-req_qty = 'X'.
    APPEND i_sched.
    APPEND i_schedx.
    CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
    EXPORTING
    salesdocument = p_vbeln
    order_header_in = i_hdr
    order_header_inx = i_hdrx
    TABLES
    return = i_ret
    schedule_lines = i_sched
    schedule_linesx = i_schedx.

  • Problem with the volume keys on my keyboard.

    Hey everybody,
    I have a problem with the volume keys on my keyboard. This started a couple days ago and I can't seem to figure out how to fix it. When I press the volume up or down buttons, the graphic appears on the screen as it normally would, but has no effect on the volume of the sound coming out of my speakers.  Therefore, the only way to change the volume of music or whatever I am listening to is to use the volume control within the program/website itself (itunes, youtube, etc.) Even changing the volume on the volume icon at the menu bar on top of the screen does nothing.  If anyone has an idea of how to go about solving this issue, I would greatly appreciate it. Thanks!

    First look into the Preference > Sound > Outpur whether internal Speakers are choosen.
    The only Preference to delete I can discover is com.apple.systempreferences.plist in your home Library folder. You can try to move it out to the desktop for example, not to loose all your settings. Restart and see whether the problem still persists. If you don't know how to do this here some Terminal (Applications > Utilities) commands. Enter them by copy and paste followed by <enter>
    mv ~/Library/Preferences/com.apple.systempreferences.plist ~/Desktop/
    restart
    to get it back:
    mv ~/Desktop/com.apple.systempreferences.plist  ~/Library/Preferences/
    confirm with "y" if you are asked to replace this file.
    marek

  • Assign function key in mail to automate steps

    One of my most frequent steps in Apple Mail is moving mail that has been read to different mailboxes. I have, until now, simply dragged the mail to its destination mailbox on the sidebar. But I would prefer to do this using just the keypad. There is a 'Move to...' action on the Messages menu. But there is no pre-defined shortcut. How do I create a shortcut to this function? For example, how could I assign the F14 key to trigger the =move to function?

    HI
    Double Click on your Screen and then Elements Tab, give OK_CODE of OK_CODE.
    Now in Click on Flow Logic Tab , uncomment MODULE STATUS_YOUR_SCREEN_NUMBER. Create this.
    Here you find SET PF_STATUS Just Double click on this this will enable you to Assign Function Keys.
    If you want to Assign Function Key to the Push Buttons that you created Double Click on the Push Button then on the Attributes Screen you can enter the Funciton Code for this Push Button,
    Hope this is Very Clear to you.
    Cheers
    Ram

  • Keyboard problems with the "z" key

    Hello everyone, I have problems with my "z" key.Recently, it is sufficent to touch the key without pressing to write the z.Unfortunately that happens also when I want to use the "t" or "u" next to it. I hope you can help me with this problem and can tell me what to do.Thanks in advance for your answers (and sorry for my bad english). greetings, bina90

    Try to reset the device by pressing hold of the home and power button for 15-20 seconds and letting of when the Apple logo appears.

  • Error when trying to assign Function Key as Service menu shortcut

    When I try to assign Control-Option-F15 to a Service Menu item in System Preferences > Keyboard > Keyboard Shortcuts I get the following error in the Console:
    9/14/09 10:09:27 AM System Preferences[878] * Assertion failure in +[NSKeyboardShortcut shortcutWithKeyEquivalent:modifierMask:], /SourceCache/AppKit/AppKit-1038.11/Menus.subproj/NSMenu_KeyEquivalents.m:37
    9/14/09 10:09:27 AM System Preferences[878] Invalid parameter not satisfying: c != nil
    Is it possible to assign function keys as keyboard shortcuts to Service menu items?

    I have the same problem (though I didn't look in the Console): I try to assign F8 to one of my services and the shortcut just stays blank. However, I have found a work-around:
    1. Leave the shortcut for the service blank, but make a note of the name -- in my case, "iTunes- PlayPause".
    2. Go to "Application Shortcuts" on the left of the Keyboard Shortcuts preference pane.
    3. Add an item under "All Applications" giving it the name of your service (eg. "iTunes- PlayPause") and you can then assign a function key as the shortcut (eg. F8).
    Since the service appears in the application's "Services" menu, it will now have the shortcut assigned uner "All Applications". An annoying bug, but at least there's a workaround.
    Cheers,
    Jolin

  • Problem with Assigning more than one value to GROUP dynamically

    Hi,
    I have a problem with assigning more than one value to GROUP varible dynamically.
    I am able to assign only one value dynamically through Initialization block
    I have even tried with the ROW-WISE initialization blocks..
    using this query..
    SELECT 'GROUP', G.GROUP_NAME
    FROM GROUP_MAP G
    WHERE G.USER_NAME = ':USER'
    if GROUP_1, GROUP_2 are two groups to be associated,
    through this, i'm getting " GROUP_1;GROUP_2 " into GROUP variable ( seen from Narative view )
    And the properties and securities of this Groups are not inherited.
    Please let me know if there is any other way to Populate the GROUP variable dynamically with more than one value.
    Thank you.,

    Hi,
    i finally got in this way..
    i had created a function which takes USER_NAME as input and returns a string that contains the GROUP names with semicolon delimeted..
    Though it is same as that of ROW-WISE initialization,
    the properties of those groups are also being inherited..
    Now, i can assign more than one groups and its properties to a user dynamically.

Maybe you are looking for

  • HP Pavilion Elite e9280t Desktop PC power on/start windows issue

    HP Pavilion Elite e9280t Desktop PC, Windows 7 Pro.  When powered on (using the power switch), the blue power light and amber hard drive lights on the front illuminate, but monitor shows no signal and the keyboard lights do not come on.  F10 on the k

  • Installing Jdeveloper 11g on MAC OS 10.4.11?

    Has anyone successfully installed Jdeveloper 11g on MAC OS 10.4.11? I've found examples Jdeveloper 11g on MAC OS 10.5 but nothing on 10.4.11.

  • Dtmf RFC2833 issue

    Hi All,    I got problem with dtmf RFC2833 in interconnecting with Nextone using SIP. Nextone----------------->AS5300XM (acting as IPIP GW)------------>AS5400-------E1------->PSTN When Nextone call in and press 103 to reach extention at my staff, my

  • Data Manager Locking

    Data manager is getting locked up every time we switch from taxonomy mode to record mode?  has anyone else experience this issue?

  • Mail shows just my first name. Please help me

    Hello, if I write an email with my MAIL program, everybody can just see my first name. This is very unprofessional. In the Mail settings is in the Account information my full name stated. But it still shows just my first name. How can I change it, th