Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Issue with notInSet validator

    I want to apply notInSet validation on a SQL DS field like
    <field name="name" type="text" length="80" required="true">
    <validators>
    <validator type="notInSet" multiple="true" list="param1,param 2">
    <errorMessage> Invalid name </errorMessage>
    </validator>
    </validators>
    </field>

    I have also tried to pass list as a
    Java Escape String,
    Xml Escape String : list=""Param1","Param2","Param3","Param4"" ,
    list ="{Change View,Cost View,Default View,Original View}" and
    list ="[Change View,Cost View,Default View,Original View]".

    But it didn't worked.

    Although it works fine when I pass only one param to list like <validator type="notInSet" multiple="true" list="param1">


    "originally posted by alchemist "


    #2
    Use the standard encoding for DataSourceField.multiple for XML, so:

    <field .. >
    <list>
    <item>a value</item>
    <item>a value</item>
    </list>

    Comment

    Working...
    X