Hi,
I am using a dropdownbykey UI element to populate cities.
It has 1298 records in it and it takes about 8 sec to come up.
Is it normal?
If not, is there a way to decrease the upload time?
Here is the code:
ISimpleTypeModifiable modifiableSimpleType = attrInfo.getModifiableSimpleType();
IModifiableSimpleValueSet valueSet = modifiableSimpleType.getSVServices().getModifiableSimpleValueSet();
if (valuesNode.size() > 0) {
valuesNode.moveFirst();
IWDNodeElement currElem;
while (valuesNode.moveNext() != null){
currElem = valuesNode.getCurrentElement();
Object valueCode = currElem.getAttributeValue(fieldCode);
String valueText = currElem.getAttributeAsText(fieldText);
valueSet.put(valueCode,valueText);
}
}
valueSet.sort(true,true,true);
Regards,
Silvy