on 07-27-2011 11:15 AM
Hi ,
I have a requirement where I need to display the key in input field and its corresponding description in the a textview element. Say, i have following values
M - Monday
T - Tuesday
W - Wednesday
Th - Thursday
F- Friday
I have a abap dictionary search help, Zsh_week, that displays this list. Now in my webdynpro abap component, I have an input field which is bound to this search help and I also have a textview (for displaying the text corresponding the inputfield)
Now, when I select a value say, M, I only get value in the input field but not in the description. Is it possible to get the description of key for inputfield without hitting onEnter event.
Thanks!
Abhinav
Hello Abhinav,
I think after selecting the value from the search help, modify view method of your view will be called. here you can check whether the inpput field's context attribute is havng a value. If it has then you can default the text in the text view.
BR, Saravanan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Saravanan,
I thought of this approach but then didn't go for it as I have other search helps also for which I want to display the corresponding description. So if check in wdDoModify, then it will be a mess. And also, if user does not click on the search help, then also this code will always be executed as there is no control on this code. I can make a control but then I should know what search help is called? Is it possible to identify which search help is called in wdDoModify?
Thanks!
Abhinav Sharma
Hi Abhinav,
You have to create OVS search help to get text after selecting value in f4 help. use WDR_OVS and create
OVS help.
Another way is after selecting value from f4 help, that input field contains onenter event, after selecting value
you have to press enter, and write code to get description in text veiw next to input field.
Write your code in onenter of input field.
Cheers,
Kris.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
7 | |
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.