cancel
Showing results for 
Search instead for 
Did you mean: 

How to remove empty space in dropdownby index

Former Member
0 Kudos

Hi,

i have adropdown with label state,iam able to populate all the values in to dropdown by using array list,but my problem is, as soon as clickon drop down an empty space is appearing that empty space is follwed by all the states(KARNATAKA,GOA,DELHI..)can u please expalin the code to remove that empty space..

Thanks

kishore

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Make the selection as 1..n instead of 0..n

Former Member
0 Kudos

Hi

Change the selection cardinality of the node bound to the DropDownByIndex UI element to 1...1.

Best Regards

Chaitanya.A

Former Member
0 Kudos

Hi,

Change the selection cardinality of the node from *0..1 to 1..1

*

Regards

Ayyapparaj

Former Member
0 Kudos

Hi Kishore,

first time if u r populating and not setting the drp context by any value it'll come empty, so plz set the drp context with the value which u want by default.

And after selection empty is coming mean are doing on the action of selection..??

plz use this code.....

StringTokenizer keyArray;

StringTokenizer valueArray;

IWDAttributeInfo info;

ISimpleTypeModifiable mode;

IModifiableSimpleValueSet svs;

keyArray =new StringTokenizer(key collection....);

valueArray =new StringTokenizer(values collection.......);

info = wdContext.nodeEventType().getNodeInfo().getAttribute(<name>);

mode = info.getModifiableSimpleType();

svs = mode.getSVServices().getModifiableSimpleValueSet();

svs.put("All","All");

if (eventTypeTokens != null) {

for (int count = 0; keyArray.hasMoreTokens(); count++) {

svs.put(keyArray.nextToken(";"), valueArray.nextToken(";"));

}

}

May be that will help u...

Regards,

Deepak