cancel
Showing results for 
Search instead for 
Did you mean: 

Field Validation with runtime information

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Answers (0)