cancel
Showing results for 
Search instead for 
Did you mean: 

Help for adding data from ItemListBox to TextEdit

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

former_member189631
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

Hi Ram,

Thanks for the reply.

Your solution worked.

Thanks again

Nikhil Bansal

Answers (1)

Answers (1)

former_member189631
Active Contributor
0 Kudos

Thankyou Nikhil.