cancel
Showing results for 
Search instead for 
Did you mean: 

7.1 Mobile WebDynpro Request Focus

Former Member
0 Kudos

How can an element request focus in Mobile WebDynpro? We would like the focus to be in a specific Input Field, or on specific buttons depending on the screen. I know this is possible in regular WebDynpro, but the code to do so does not appear to exist in mobile WebDynpro.

Any help would be greatly appreciated.

Thanks

Brian

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

This functionality was delivered in SP6 P3

former_member568822
Active Participant
0 Kudos

Hi,

What sp that you using?? Please update the patch with the sp > 3. You can use the setfoucs at mobile webdynpro.

<viewname>View _view = null;

public void wdDoModifyView(<Viewname>View view, boolean firstTime)

{

_view = view;

}

After assign the view you can use the setfocus method inside you action method.

view.get<nameof_input_field>ViewItem().setFocus();

Hope it help.

Former Member
0 Kudos

Sorry, I should have been more clear. We are using Mobile 7.1 sp 6.0. Our project is a mobile Handheld project. This uses WDL libraries instead of standard WebDynpro libraries. The code mentioned works for projects using standard WebDynpro libraries.

Thanks

stefan_henke
Contributor
0 Kudos

Hi Brian,

you are not right. The mentioned code is intended to run in a Handheld project. The issue is that this "feature" has not been delivered yet as part of SP6. Therefore, this code will not completely work for you. I will internally check when this will be available.

Regards,

Stefan

Former Member
0 Kudos

Any word on the release of this? This has been requested by all of our users.

Thanks

Brian