on 04-22-2010 1:45 AM
I have this requirement - I have two DropdownbyKey elements. Based on the value selected in the first dropdownbykey field, the second dropdownbykey field should showup with the dropdown icon if it contains possible values, or it should showup as plain text field(without the dropdown icon) in case there are no values Is this possible?
<<text removed>>
Regards
JB
Edited by: Matt on Apr 22, 2010 6:52 AM - please do not use phrases like "quick response required"
Thanks Chris. Can you please explain a little bit. I am not sure how to do context binding in this case? Should I bind the same node attribute to both dorpdown box and input field?
Appreciate your help.
Regards
JB
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello James.
I recently posted a thread here about visibility. Might be worth having a look!
One of the key points is that there are 3 type - blank, none and visible .
It sounds like you are setting the visibility to blank for your dropdown when you are making it invisible - in this case it doesn't rearrange the layout but still holds its position.
Check that you are making it visibility of none.
Cheers,
Chris
Follow the given steps
1) create a internal table with all possible values including 2 colomns 1) for inputbox/dropdown
2) internal table which hold dropdown values
for above requiement you have to craete a dynamic node .
2) After that in initilization ALV use the concept of cell varient which will bind the data accoeding to the internal table
whether it it input box or dropdwon .
Is it possible to dynamically replace this second dropdown-by-key field with an input field, based on the value selected in the first dropdown-by-key field.?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi James,
yes - if you are in a table - look at the functionality provided by cell variants, otherwise in the onSelect method of the first box you could control the visibility of two fields - one a dropdown list, the other an input field - if you wanted an input field just set that as visible and hide the dropdown - and vica-versa.
Hope it helps,
Cheers,
Chris
Hello James,
If you make your second dropdown a dropdown by index and only populate the node that it is bound to on the selection event of your first dropdown, this will give you some of the behaviour that you want.
Hope this helps,
Chris
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for your answer Ram.
But, I am using ABAP webdynpro.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Bond,
Check the below thread
PARAMETERS list TYPE spfli-carrid AS LISTBOX VISIBLE LENGTH 18.
DATA : first.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF screen-name = 'LIST'." If you dont find relevant value from First List box then Implement this
screen-values_in_combo = 0. " This makes List Box as Input Field and 1 means List Box
MODIFY SCREEN.
ENDIF.
ENDLOOP.
Cheerz
Ram
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.