cancel
Showing results for 
Search instead for 
Did you mean: 

Assigning function-key to any control ( button,tabstrip...etc)

Former Member
0 Kudos

Dear all,

Please suggest how to assign function-key to any control ( button,tabstrip...etc) in an webdynpro application.

and also how to increase the size of any control in application( like table control, button, etc..)

Regards,

subhash

Accepted Solutions (1)

Accepted Solutions (1)

uday_gubbala2
Active Contributor
0 Kudos

Hi Subhash,

The Hotkeys have been added to UI elements (Button, ToolBarButton, LinkToAction, MenuActionItem, ToolBarLinkToAction, ToolBarLinkToURL, and LinkToURL) in the NetWeaver 7.0 Enhancement Package 1. So if you are on this particular package level you would be able to directly see new properties for the UI element wherein you can assign the desired hotkeys. You can control the size of your Table UI element by specifying its width & height properties.

The button assumes its dimensions basing on the length of the text that you are specifying for it. You can try specify a greater width if you wish by using the buttons "width" property but there isn't anything you can do to control the height of a button as there is no "height" property for a button.

Regards,

Uday

Answers (1)

Answers (1)

uday_gubbala2
Active Contributor
0 Kudos

Hi Subhash,

The additional property which you would find for the UI elements on SAP NetWeaver 7.0 EHP1 is "handleHotkeys". Here within this particular property you need to specify the Key combination by which you want to trigger the action. However keep in mind the fact that this particular UI element needs to be in focus for this hot key functionality to work. Say suppose you have 2 buttons and you have assigned the same keys combination in the handleHotkeys property. Then which of these button is in focus would determine as to which particular button would get pressed eventually. If neither of the 2 buttons is in focus then no action would be performed at all. Try go through this [link |http://help.sap.com/saphelp_nw70ehp1/helpdata/en/47/b951297a6d2d65e10000000a42189c/frameset.htm]where you can get to read more about this new added functionality.

Regards,

Uday