cancel
Showing results for 
Search instead for 
Did you mean: 

How to set default cursor position for a page

Former Member
0 Kudos

Hi Expert,

In Java Dynpro,I need to set the cursor in an particular input field when the page loads,how to acheive that

Regards

Priya

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Within your wdDoModifyView, you have to get your input field as an IViewElement and then call method requestFocus()

I'm not at a computer at the moment sorry so this is from memory - hopefully it is correct.

Gareth.

0 Kudos

Hi

Please use the below code sample in wdDoModifyView() method of view created:

view.getElement( < put InputFiled element ID >). requestFocus();

Thanks

Abdul Raheem

Answers (0)