Vai al contenuto principale

BIN WByNp Documentation

  • Author:

  • Version: 1

  • Description: Choice Control Example - single occurrence choice using form.maybenull and choice.autosubmit - some require user to make a choice

  • Created: 2020-02-19

  • Modified: 2020-02-19

  • Source:

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

    Printers Embed Responsive

    <complexType name='Form' description='Choice Control Example - single occurrence choice using form.maybenull and choice.autosubmit - some  require user to make a choice '>
        <choice name='MyChoice' minOccurs='1' extra:form.maybenull='false'>
            <field name='Integer' type='xs:int' />
    	<field name='Date' type='xs:date' />
            <field name='Book' type='Book' />
    	</choice>
           <choice name='MyChoiceMayBeNull' minOccurs='1' extra:form.maybenull='true'>
            <field name='Integer2' type='xs:int' />
    	<field name='Date2' type='xs:date' />
            <field name='Book2' type='Book' />
    	</choice>
        <choice name='MyChoiceMayBeNullNoAutoSubmit' minOccurs='1' extra:form.maybenull='true' extra:choice.autosubmit='false'>
            <field name='Integer3' type='xs:int' />
    	<field name='Date3' type='xs:date' />
            <field name='Book3' type='Book' />
    	</choice>
        <choice name='MyChoiceOptional' minOccurs='0' extra:form.maybenull='false'>
            <field name='Long' type='xs:long' />
    	<field name='Time' type='xs:time' />
            <field name='Movie' type='Book' />
    	</choice>
        <choice name='MyChoiceOptionalMayBeNull' minOccurs='0' extra:form.maybenull='true'>
            <field name='Long2' type='xs:long' />
    	<field name='Time2' type='xs:time' />
            <field name='Movie2' type='Book' />
    	</choice>
       <choice name='MyChoiceOptionalMayBeNullNoAutoSubmit' minOccurs='0' extra:form.maybenull='true' extra:choice.autosubmit='false'>
            <field name='Long3' type='xs:long' />
    	<field name='Time3' type='xs:time' />
            <field name='Movie3' type='Book' />
    	</choice>
    </complexType>
    
    
    <complexType name='Book' description=''>
    	<field name='Title' type='xs:string'/>
    	<field name='Author' type='xs:string'/>
    </complexType>