cancel
Showing results for 
Search instead for 
Did you mean: 

Cursor to fall in the first Input field

Former Member
0 Kudos

Hi,

When i open my Application i have a few elements like Input fields,Buttons,Text Area,Message Area,Drop-Downfields,etc.....

When a layman opens this page he should know where exactly he needs to enter upon .......

So i need 2 place the Cursor when i load/start my application.

So that it can be understood that one needs to enter the value first here.

How can it be done in WebDynPro?

Can anyone suggest me on this issue.

Thanks and regards,

Chandrashekar.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

wdThis.wdGetAPI().requestFocus(wdContext.currentContextElement(),wdContext.currentContextElement().getAttributePointer("use attribute name which you have bind to inputfield").getAttributeInfo());

Regards,

Naga

Former Member
0 Kudos

Hi,

Did this work for you? It does not show the cursor , only the field is hightlighted.Did i miss something?

Thanks,Uma.

Former Member
0 Kudos

Hi,

Its worked fine for me. Are you using inputfield or textedit?

Regards,

Naga

Former Member
0 Kudos

Hi,

Use the following in the wdDoModify

if(firstTime)

view.requestFocus(nodeElement, attribute)

Regards

Ayyapparaj