cancel
Showing results for 
Search instead for 
Did you mean: 

empty value in dropdown

Former Member
0 Kudos

Hello,

i have dropdownByKey in a table as tablecelleditor. For selecting values i have in dictionary type with Simple Type Enumeration. There i have two records - 1 => one(description), 2 => two and i would like to add third record - value=0 and description as empty string. How may i do that in dropdown will be empty string with a key 0?

thanks

JJ

Accepted Solutions (0)

Answers (3)

Answers (3)

sridhar_k2
Active Contributor
0 Kudos

Hi,

You cant get Empty Description Directly. Create a Enumeration Value with empty (Single Space) and the description also.

You can access it with below code.

String testVal = wdContext.currentContextElement().getDropDownVal();

if(testVal.equalsIgnoreCase(" ")){

manager.reportSuccess("Empty "+testVal);

// Empty Description Value one

}

Regards,

Sridhar

Former Member
0 Kudos

Hi Jiri,

If your description is empty. If it is bind to the attribute and bind to the Dropdownbykey, It looks empty

Regards

Sarvanan K

Former Member
0 Kudos

Hi,

Have you check cardinaliry?.Can you explain more?

Kind Regards,

S.Saravanan.