Skip to main content

BIN DyTTW Documentation

  • Author:

  • Version: 36

  • Description: Editable Complex Control In choice - Address - Need validation not empty - zFtJu (213)

  • Created: 2014-10-04

  • Modified: 2024-01-04

  • Source:

     Edit Bin W3C Schema Json-Schema Java Bean Code Default Value as XML

    Printers Embed Responsive

    <complexType name='Form' description='Editable Complex Control In choice - Address - Need validation not empty - bin:zFtJu?i=213'>
        <field name='Name' type='xs:string'/>
        <field name='BirthDate' type='xs:date'/>
        <choice name='addressOrURL' >
            <field name='Address'  type='AddressType' extra:ctrl.emptyisnull='true' />
            <field name='URL' type='xs:string'/>
        </choice>
    </complexType>
    <complexType name='AddressType'  extra:form.cview='edit' extra:form.editable.expression='$obj.html.Street, &lt;b>$obj.html.City&lt;/b>' extra:form.editable.expression.escape='none' >
        <field name='Street' type='NotEmpty' extra:ctrl.emptyisnull='true'/>
        <field name='City' type='NotEmpty' default='Amsterdam' />
    </complexType>
    <simpleType name='NotEmpty' type='xs:string'>
        <facet name='minLength' value='1'/>
    </simpleType>