Skip to Content
0
Former Member
Jan 11, 2017 at 03:07 PM

how to remove all items in dropdowns with single click of button Ds 1.6

305 Views

searched blogs before posting but not fulfilled my requirement

https://archive.sap.com/discussions/thread/3388707

HI Experts,

i have a requirement where i need to remove all items in dropdown by single of button

i have written following code inside a button

PROJ_NO.removeAllItems();
PROJ_NO.setItems(DS_1.getMemberList("0PROJECT", MemberPresentation.EXTERNAL_KEY, MemberDisplay.KEY, 1000 , " "));

SALES_ORG.removeAllItems();

SALES_ORG.setItems(DS_1.getMemberList("0SALESORG", MemberPresentation.EXTERNAL_KEY, MemberDisplay.KEY,1000, " "));

and so on

but unfortunately it was removing only first item no idea where i am missing

could anyone guide me that would really appreciated

Thanks,

Varun