Announcement

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

    Not possible to set "allowEmptyValue" via ds.xml?

    I have a datasourcefield which is an enum, and in the form i never want a "empty" field in the dropdown, even if it is coming as null from the server.

    It works if i set it through the java method
    Code:
     
     theItem.setAllowEmptyValue(false);
    , but if i set it in XML like this
    Code:
       
     <field name="theItem" type="enum" allowEmptyValue="false" required="true" defaultValue="0">
    the setting is not applied. What am i missing here? Pointers appreciated.

    #2
    Hi mathias,

    IMHO allowEmptyValue and defaultValue are not allowed (more specific: not applied on generated items for this field) in .ds.xml, as they are not listed as attributes here in the docs.

    Best regards
    Blama

    Comment


      #3
      Allrigh, thanks for the help.. Man, 7 years in and i can still never find my way around the documentation...

      Comment

      Working...
      X