cancel
Showing results for 
Search instead for 
Did you mean: 

InputField events

Former Member
0 Kudos

Hello SDN'ers,

I have a request from our Users that they would like the following

1.when they are enter into a inputfield using a tab key they would like the exisiting value get selected or when they start typing it gets overwritten from left to write.

Current situation is that

InputField having a maximum length 5.Initial value as 00000.

When the user enter into that field cursor is positioned in the first char.If you start typing,nothing happends.You have to manually select the 00000 and then start typing or position the cursor to last position and use backspace..etc.

Is there any solution for this ?

Any SAP members know about this or when will it be available ?

Thank and regards

Senthivel

Accepted Solutions (1)

Accepted Solutions (1)

lajitha_menon
Contributor
0 Kudos

Hi,

If the user clicks on tab and comes to an input field where a value has been entered(or default 00000), it should be selected automatically. The user can start typing and it will get overwritten.

If you want the field to get the focus so that it is selected when the user comes for the first time, put the following code in wdDoModifyView

IWDInputField Fld =

(IWDInputField)view.getElement("FieldId");

Fld.requestFocus();

Hope it helps,

LM

Answers (1)

Answers (1)

Former Member
0 Kudos

Baskaran,

This is not available in current WD versions (either NW04s or NW04). Only OnEnter (ENTER key) event is supported.

When (and whether) focus move/key binding will be available later is another question. Probably someone from WD team will answer here, stay tuned.

Valery Silaev

SaM Solutions

http://www.sam-solutions.net

Former Member
0 Kudos

Thanks L.M and Valery.

I am Curious if anyone from SAP WD team would answer this.