Hi,
I want to realize a field validation with runtime informations, e.g. check the user input for the inputfield
"Language", whereas the possible language-codes come from
a database table.
How can i do that ? With a simple type i only can check against static enumerations.
Regards, Claus
Hi Claus,
Please use IModifiableSimpleValueSet for adding runtime data to a context attribute.
eg: IModifiableSimpleValueSet simType =
wdContext.getNodeInfo()
.getAttribute("<contextAttributeName>")
.getModifiableSimpleType()
.getSVServices()
.getModifiableSimpleValueSet();
for (Iterator iter = collection.iterator(); iter.hasNext();) {
ABC element = (ABC) iter.next();
simType.put(element.getKey(), element.getDescription());
}
Thanks and Regards,
Sam Mathew
Add a comment