Vai al contenuto principale

BIN EZK4Y Documentation

  • Author:

  • Version: 13

  • Description: Comparison of expandible sections

  • Created: 2015-07-17

  • Modified: 2019-12-26

  • Source:

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

    Printers Embed Responsive

    <osk xmlns:extra="http://eleusoft.org/schema/extra" >
    <datatypeLibrary prefix="xs" uri='http://www.w3.org/2001/XMLSchema-datatypes'/>
    <schema name='example.advsearch'>
    		
    		
            <complexType name='Search' description='Comparison of expandible sections'>
    			<field name='name' type='searchString' minOccurs='0'/>
    			<field name='company' type='searchString' minOccurs='0'/>
    			<field name='standardOptionalEmptyIsNUll' type='AdvSearch' node='element'
    			    minOccurs='0' 
    			    extra:form.title='This is a standard complex control on an optional field, with form.maybenull=false and ctrl.emptyisnull=true. Since emptyisnull=true the control collapses after validation if there are no values, while the expandible control does not also if ctrl.emptisnull=true since it keeps the expanded/collapsed state in the form session.'
    			    extra:ctrl.emptyisnull='true' 
    			    extra:form.maybenull='false'
    			    extra:form.cview='default' 
    			    extra:form.nolabel='true'/>
    			<field name='standardOptionalNoEmptyIsNull' type='AdvSearch' node='element'
    			    minOccurs='0' 
    			    extra:form.title='This is a standard complex control on an optional field, with form.maybenull=false and ctrl.emptyisnull=true. Since emptyisnull=false the control does not collapses after validation if there are no values, for the same reason the output instance contains a complex value for this field also if all its sub fields are empty.'
    			    extra:ctrl.emptyisnull='false' 
    			    extra:form.maybenull='false'
    			    extra:form.cview='default' 
    			    extra:form.nolabel='true'/>
    			<field name='more' type='AdvSearch' node='sequence'
    			    minOccurs='0' 
    			    extra:form.title='This is an expandible control that has a button that disappears after is clicked for the first time.'
    			    extra:ctrl.emptyisnull='true' 
    			    extra:form.expand.keep-state='true'
    			    extra:form.expand.disabled='false'
    			    extra:form.expand.disable-property='testdisableprop'
    			    extra:form.expand.collapse='false'
    			    extra:form.expand.always-if-value='true'
    			    extra:form.maybenull='true'
    			    extra:form.cview='expand' 
    			    extra:form.nolabel='true'/>
    			<field name='moreCollapseIfEmpty' type='AdvSearch' node='element'
    			    minOccurs='0' 
    			    extra:form.title='This is an expandible control that has a button that collapse when is clicked but only if there is no data in the sub form.'
    			    extra:ctrl.emptyisnull='true' 
    			    extra:form.expand.keep-state='true'
    			    extra:form.expand.disabled='false'
    			    extra:form.expand.disable-property='testdisableprop'
    			    extra:form.expand.always-if-value='true'
    			    extra:form.maybenull='true'
    			    extra:form.cview='expand' 
    			    extra:form.nolabel='true'/>
    			<field name='moreCollapse' type='AdvSearch' node='element'
    			    minOccurs='0' 
    			    extra:form.title='This is an expandible control that has a button that collapse without clearing state when is clicked.'
    			    extra:ctrl.emptyisnull='true' 
    			    extra:form.expand.keep-state='true'
    			    extra:form.expand.disabled='false'
    			    extra:form.expand.disable-property='testdisableprop'
    			    extra:form.expand.always-if-value='false'
    			    extra:form.maybenull='true'
    			    extra:form.cview='expand' 
    			   extra:form.nolabel='true'/>
    			<field name='moreClear' type='AdvSearch' node='element'
    			    minOccurs='0' 
    			    extra:form.title='This is an expandible control that has a button that collapse clearing state when is clicked. Like the first standard control has ctrl.emptyisnull=true but this one, also if has no data does not collapse after a validating submit.'
    			    extra:ctrl.emptyisnull='true' 
    			    extra:form.expand.keep-state='false'
    			    extra:form.expand.disabled='false'
    			    extra:form.expand.disable-property='testdisableprop'
    			    extra:form.expand.always-if-value='false'
    			    extra:form.maybenull='true'
    			    extra:form.cview='expand' 
    			    extra:form.nolabel='true'/>
    		</complexType>
    		<complexType name='AdvSearch'>
    			<field name='department' type='searchString' minOccurs='0'/>
    			<field name='city' type='searchString' minOccurs='0'/>
    		</complexType> 
    		
    		<simpleType name='searchString' type='xs:string' extra:ctrl.emptyisnull='true' extra:form.maybenull='true'/>
    
    </schema>
    </osk>