Hi Colleagues,
I am using a dropdownbykey UI element. This UI element is bound to an attribute.
I am getting ModifiableSimpleType of this attribute and using this ModifiableSimpleType, I am getting ModifiableSimpleValueSet and setting the different values for this dropdown. Since the number of values is very large (200), this dropwon is getting converted into extended value selector (EVS) at runtime. Now the problem is that I am always getting a blank row as the first row of EVS.
Could any one of you please help me on this?
The code snippet is as follows:
IPublicTagMapComp.IMappedTagNode mappedTagNode = wdContext.nodeMappedTag();
IPublicTagMapComp.IMappedTagElement mappedTagElement = mappedTagNode.createAndAddMappedTagElement();
IWDAttributeInfo uomStandardInfo = mappedTagNode.getNodeInfo().getAttribute(mappedTagElement.UOM_CODE);
ISimpleTypeModifiable uomqualityLevelValues = uomStandardInfo.getModifiableSimpleType();
IModifiableSimpleValueSet<String> uomqualValueSet = uomqualityLevelValues.getSVServices().getModifiableSimpleValueSet();
ArrayList<UOMCodeBean> uomList = wdContext.currentContextElement().getUomCodeList();
for(Iterator<UOMCodeBean> uomIterator = uomList.iterator();uomIterator.hasNext();){
UOMCodeBean codeBean = (UOMCodeBean)uomIterator.next();
if(codeBean!=null){
uomqualValueSet.put(codeBean.getIsoCode(), codeBean.getDescription());
}
}
Thanks,
Rakesh