on 01-16-2013 1:54 PM
Hi Experts,
is there any possibilty to set the Cursor to a specific field in my table control within my webdynpro application?
My idea is: if a user fills in the fields in a line of the table control, to check if all fields, which have to be filled, are filled. and if not, to jump to the first field where something is missing. I want that the Cursor is set in this field, so the user can immediatelly start to fill the field without first clicking in that field.
I hope you understand what my idea is?
I tried already the command:
SET CURSOR FIELD lv_column LINE lv_index.
lv_column = 'TABLE-TABLE_MATNR'
lv_index = 1.
TABLE is the Name of my Table-Control and TABLE_MATNR is the Name of the column like it is named in the layout Editor.
i think the code is working, but the Cursor isn't blinking in the field.
What am i doing wrong? Or is it even another code that has to be used?
Hope for your help!
best regards,
Mathias
Hi Mathias,
GUI commands like SET CURSOR FIELD won't work in WDA. Instead you can set focus on a particular view field with method IF_WD_VIEW_CONTROLLER->REQUEST_FOCUS or you can issue an error message with one of the IF_WD_MESSAGE_MANAGER->REPORT_ATTRIBUTE* methods which automatically provide focus to the indicated view field.
Cheers,
Amy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
is it work to set focus on input field in table ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Good Morning,
thanks for your help!
i decided to use IF_WD_MESSAGE_MANAGER->REPORT_ATTRIBUTE* methods, but i think the other ways i will try in some other cases!
best regards,
Mathias
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.