Skip to main content

BIN 7BRSc Documentation

  • Author:

  • Version: 8

  • Description: bound lookup - Both Present or Both Absent Bound Lookup Example

  • Created: 2014-10-15

  • Modified: 2015-02-04

  • Source:

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

    Printers Embed Responsive

    <complexType name='ProvinciaOptionalComuneOptional_BothPresentBothAbsent' description='bound lookup - Both Present or Both Absent Bound Lookup Example'>
       <field name='Provincia' type='xs:string'
          extra:form.control='Provincia'
          minOccurs='0'
          extra:form.maybenull='true'
          extra:ctrl.emptyisnull='true'
          extra:aclec.apply='true' />
       <field name='Comune' type='xs:string'
          extra:boundctrl.optionaldetail='false'
          extra:boundctrl.boundname='Provincia'
          minOccurs='0'
          extra:ctrl.emptyisnull='true'
          extra:form.maybenull='true'
          extra:boundctrl.valuemsg="Provincia:{0}, Comune: "
          extra:form.control='comuneOfProvincia'/>
    
    	<constraint name='BothPresentOrBothAbsent' category='boolean' selector='.'>
    		<expression path='(not(Provincia) and not(Comune)) or (Provincia and Comune)'/>
    	</constraint>
    </complexType>