cancel
Showing results for 
Search instead for 
Did you mean: 

Clearing inside DropDownByKey

Former Member
0 Kudos

Hi,

How can i clear inside of DropDownByKey?

Thanks.

Accepted Solutions (1)

Accepted Solutions (1)

former_member197348
Active Contributor
0 Kudos

Hi,

Get the value set and clear value set

e.g.


IWDAttributeInfo attInf =  wdContext.getNodeInfo().getAttribute(wdContext.currentContextElement().NAME);
ISimpleTypeModifiable stm = attInf.getModifiableSimpleType();
}IModifiableSimpleValueSet svs= stm.getSVServices().getModifiableSimpleValueSet();
svs.clear();

Regards,

Siva

Former Member
0 Kudos

Hi Cemil Bozlagan ,

U can remove the entry from dropdownbykey using the key name.

svs.clear();

svs.removeKey("KEY");

Regards,

srikanth

Former Member
0 Kudos

Hi,

I have 2 DropDownByKey.

If 1st dropdown changes 2nd dropdown filled with related values with 1st.

But 2nd DropDowb preserves last selected value when 1st changed.

Is it possible clearing with selected value of 2nd DropDown?

Thanks

former_member197348
Active Contributor
0 Kudos

Hi,

I could not get your requirement clearly.

If you want to clear (remove ) the selected value of the dropdown from the list try like this:

svs.removeKey(wdContext.currentContextElement().get<attribute>());

If you want to clear the dropdown (but not remove from the list) and show the blank in the dropdown, try like this:

wdContext.currentContextElement().set<attribute>(" ");

Regards,

Siva

Answers (0)