cancel
Showing results for 
Search instead for 
Did you mean: 

getting empty space in drop down

Former Member
0 Kudos

Hi All,

when I add elements to my drop down an empty space is coming although I have set my cardinality as 1..n and selection as 1..n...I want to get rid of the empty space. Please help..

Thank u

Regards

Preet

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

i don't know this for sure, but i think you have to use dropdownbykey to achieve that behaviour

J.

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi All,

Thank you for your replies. Finally we have been told to set blank value as default so didnt need to change.

Regards,

Preet

Former Member
0 Kudos

Hi,

In order to get rid of this blank element you need to set the CurrentElemtent of the dropdown to Some default value which is in the simple value set of the dropdown UI element.

Thanks,

Raju Bonagiri

Former Member
0 Kudos

Hi Preet,

Check this:

1>First check if the dropdown by Key(If its a simple type)UI element value is selected to COntext attribute or not?

Go to layout->Dropdown by Key UI elelemnt->Properties->value:Context_Dropdown.

2>Set the intial value to dropdown to display intial value instead blank.

wdContext.currentContextElement().setVa_DroDwnKey("Intial Value");

3>Set the cardinality 0...n and selection 0..1

Regards,

Lavanya.G

former_member214651
Active Contributor
0 Kudos

Hi,

Are u using a DD by Key or Index? If u use DD By Index u will get a blank space which has the LeadSelection value -1. Try using a DD by Key if the number of entries are less (about 30).

else use an Input field (F4 help / EVS) instead of a DD UI element.

Regards,

Poojith MV