on 04-04-2007 1:39 PM
Hi All,
The requirement is Like a Shopping Cart.
I have a form wherein the user selects the Material Group from a Dropdown and the corresponding details (Material Desc and Material No) are fetched in a ListItemBox.
I have two buttons
1. Add
2. Remove
The user can select Item from the ItemListBox and Add to the TextEdit. Also the user can deselect the Items from the TextEdit.
Plz provide some help in this regard.
Also I want that when user has not selected any Material Group (i.e. there is no data in the ItemListBox) then the buttons (Add and Remove) should be disabled.
When data is fetched then only the buttons should be activated.
Regards
Nikhil Bansal
Hi Nikhil,
I suggest You to use Table instead of TextEdit. Because
its always simple to use table when the user adds or deselect the
selected item.
To disable the Button you can create the Context attribute say "Butt_Visibility"
with the data type Visibility.[Select "Dictionary Simple Type" then:
Dictionaries --> Local Dictionary --> com.sap.ide.webdynpro.uielementdefinitions
--> Visibility]
and Bind this context (Butt_Visibility) into the Visibility property of Your
Button. Then you can change the visibity by writting the code.
wdCOntext.currentContextElement().setButt_Visibility(WDVisibility.NONE)
else
wdCOntext.currentContextElement().setButt_Visibility(WDVisibility.VISIBLE);
Regards,
Ramganesan K.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thankyou Nikhil.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
11 | |
10 | |
9 | |
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.