cancel
Showing results for 
Search instead for 
Did you mean: 

Usage of key listeners like F1 F2 ESC in WebDynpro for Java

Former Member
0 Kudos

Hi,

we plan to start a development for mobile transactions/handhelds.

the business logik needs to use keylisteners like F1 F2 ESC etc.

Can anybody tell me if this is now possible to contol/use these key listeners in combination with web dynpro for java.

I read in old thread (2005) that this was not possible so far but that is was planned to be possible in future releases.

Thanks for a soon reply as this matter is very urgent.

Rgds.

Jörg

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi

Dont know how much it will help you but can have a look at this but still u can have a look at this

1 . http://help.sap.com/erp2005_ehp_02/helpdata/en/b1/968ddbded811d3b561006094b9440a/frameset.htm

2 . http://help.sap.com/erp2005_ehp_02/helpdata/en/b1/968dd8ded811d3b561006094b9440a/frameset.htm

3 . https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/c29a4d25-0c01-0010-50ae-e69...

also go through the following

Using the FunctionKey

Use

The FunctionKey allows you to trigger a Web Dynpro action using a specific key on the mobile device. In the following example, this UI element is used to navigate to another view via a specific key.

Prerequisites

● The SAP NetWeaver Developer Studio is installed on your computer, and you can use it to create your mobile Web Dynpro application

● You have access to a SAP NetWeaver Application Server, where you are running the Web Dynpro application

● You are using a Pocket PC with special scanning equipment manufactured by Intermec Technologies or Symbol Technologies

● You have created two views in a Web Dynpro project and called them StartingView and TargetView.

Procedure

...

1. Navigate to the StartingView and double-click the view or choose Edit from the context menu.

2. Insert the mobile UI element FunctionKey.

3. Switch to the Plugs tab, create an outbound plug with the name fromFunctionKey and define the navigation link to the TargetView.

4. Switch to the Actions tab page and define an action called NavigateToAnotherView.

5. Assign the value IBrowse_OnKey49 to the keyCode property of the FunctionKey.

6. Assign the NavigateToAnotherView action to the onAction event of UI element NavigateToAnotherView.

7. Switch to the Implementation tab and add the following source code to the implementation of the view controller. The read data is passed to the context and the relevant context attribute is set.

public void onActionNavigateToAnotherView(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )

{

//@@begin onActionNavigateToAnotherView(ServerEvent)

wdThis.wdFirePlugFromFunctionKey();

//@@end

}

Result

By pressing press key 1 on the mobile device, you navigate to the TargetView.

Regards

Abhijith YS

SRudra
Contributor
0 Kudos

HI,

As per Webdynpro u associate a method name to inbuilt UI elements. There is no place toi map or associate function keys to action methods.

regds,

Sukanta Rudra