Skip to main content

BIN h1LV4 Documentation

  • Author:

  • Version: 10

  • Description: The form for the [List Advanced Export] functionality

  • Created: 2026-06-12

  • Modified: 2026-06-12

  • Source:

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

    Printers Embed Responsive

    <?xml version="1.0" encoding="UTF-8"?>
    <osk
        xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
    	xsi:noNamespaceSchemaLocation='http://www.eleusoft.org/osk/osknons.xsd'
        xmlns:extra='http://eleusoft.org/schema/extra'>
        <datatypeLibrary prefix="xs"
    		uri='http://www.w3.org/2001/XMLSchema-datatypes' />
        <!-- 
    		Schema 
    		- used to generate Java Class [com.eleusoft.application.web.spring.exportlist.CommandAdvancedExport]
    		- used by [com.eleusoft.application.web.spring.exportlist.CommandAdvancedExportURLBuilderFactory] 
    			to get type [CommandAdvancedExport] used for the command form	
    	-->
        <schema name='com.eleusoft.application.web.spring.exportlist'
    		uri='http://www.eleusoft.com/application/web/spring/exportlist'
    		
    		description='Schema for Advanced Export Command Form'>
            <ns prefix='this' uri='http://www.eleusoft.com/application/web/spring/exportlist'/>
            <complexType name="AdvancedExportForm"
    			description="The form for the [Form Advanced Export] functionality"
    			extra:bean.generate='none'>
                <implements type="this:CommandAdvancedExport"/>
                <field name='sortPaths' maxOccurs="0"/>
                <field name='paged' maxOccurs="0"/>
                <field name='page' maxOccurs="0"/>
                <field name='pageSize' maxOccurs="0"/>
            </complexType>
            <complexType name="AdvancedExportList" extra:bean.generate='none'   extra:root='true'
    			description="The form for the [List Advanced Export] functionality"
    			extra:cc.labelstyle='none'>
                <implements type="this:CommandAdvancedExport"/>
                <!-- actually allowed and used for error  -->
                <field name='oneItemList' maxOccurs="0"/>
                <field name='paged' minOccurs="1"/>
                <field name='page' minOccurs="1"/>
                <field name='pageSize' minOccurs="1"/>
            </complexType>
            <complexType name="CommandAdvancedExport" extra:menu.auto='false' extra:bean.generate='default'
    			description="The command for the [Advanced Export] functionality"
    			extra:cc.labelstyle='none'>
                <field name="id" type='this:string' node="attribute"
    				extra:form.control='label' 
    				extra:form.maxchars='40'
    				/>
                <!-- extra:form.control='exportFormatId' -->
                <field name="mime" type='this:mime' node="attribute"
    				extra:xxform.control='CodeLabel' extra:xxcodelabel.id='lookupExportFormatById' />
                <field name="encoding" minOccurs="0" type='this:string' node="attribute"
    				extra:form.control='encoding' />
                <field name="paged" type='xs:boolean' minOccurs="0" node="attribute" default='true'
    				extra:form.control='checkbox' />
                <field name="page" type='xs:int'  minOccurs="0" node="attribute" default='1' extra:form.maybenull='true'>
                    <facet name="minInclusive" value="1"/>
                </field>
                <field name="pageSize" type='xs:int' minOccurs="0" node="attribute" default='10' extra:form.maybenull='true'>
                    <facet name="minInclusive" value="0"/>
                </field>
                <field name="oneItemList" type='xs:boolean' minOccurs="0" node="attribute" extra:form.maybenull='true'></field>
                <field name='sortPaths' localName="sort" minOccurs="0" maxOccurs="3" type="this:SortPath"
    				extra:form.listview='egrid'/>
                <!-- 
    				Is not enough to set transient='true' because memory
    				serializers (eg: to/from bean) support it.
    				Could do that by default they don't making [bean.hasfield]
    				false by default when transient but no time 
    				so use bean.map='', better new bean.map='#none' 
    				and also  needed extra:bean.hasfield='false'
    				So probably better no use [transient="true"]
    				because we may want instead to save the form
    				export config (associate to comp_query ?)
    				
    				2.) is minOccurs="0" extra:form.maybenull='true'  needed when transient ? 
    				otherwise will never validate after load from eg. XML ?
    				
    				3.) use [js] css class to hide if no scripts
    			-->
                <field name="newWindow" type='xs:boolean' node="attribute" 
    				extra:bean.hasfield='false'
    				extra:map.bean=''
    				extra:checkbox.label='check to open result in new window'
    				extra:form.css='js'
    				extra:form.control='new-window'
    				/>
            </complexType>
            <complexType name="SortPath"  extra:bean.generate='default' extra:lc.copy='false' extra:lc.edit='false'>
                <field name="path" type='this:string' node="attribute" />
                <field name="descending" type='xs:boolean' node="attribute" minOccurs="0" default="false"
    			extra:form.maybenull='true' 
    			extra:ctrl.emptyisnull='true' 
    			extra:form.control='trueAbsent'/>
            </complexType>
            <simpleType name="mime" type='this:string'>
                <facet name="minLength" value="2" />
            </simpleType>
            <simpleType name="string" type='xs:string'
    			extra:ctrl.emptyisnull='true' extra:form.maybenull='true'>
                <facet name="minLength" value="1" />
            </simpleType>
        </schema>
    </osk>