Skip to main content

BIN xzg05 Documentation

  • Author:

  • Version: 6

  • Description: At least one field of 3 must have a value

  • Created: 2014-09-22

  • Modified: 2014-09-22

  • Source:

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

    Printers Embed Responsive

    <complexType name='ExampleAtLeastOne'  description='At least one field of 3 must have a value'>
    	<field name='A' minOccurs='0' type='xs:int' extra:xml='attribute' extra:ctrl.emptyisnull='true' extra:form.maybenull='true'/>
    	<field name='B' minOccurs='0' type='xs:string' extra:xml='attribute' extra:ctrl.emptyisnull='true' extra:form.maybenull='true'/>
    	<field name='C' minOccurs='0' type='xs:date' extra:xml='attribute' extra:ctrl.emptyisnull='true' extra:form.maybenull='true'/>
    	<constraint name='AtLeastOneMustHaveValue' category='boolean' selector='.'>
    			<expression grammar='xpath'
    		             path='(A or B or C)' />
    			
    		</constraint>	
    </complexType>