Skip to Content
author's profile photo Former Member
Former Member

Field Validation with runtime information

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 20, 2004 at 04:06 PM

    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
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.