Skip to main content

BIN NjMdl Documentation

  • Author:

  • Version: 11

  • Description: Example from grid links section, simpler version

  • Created: 2015-06-23

  • Modified: 2016-12-27

  • Source:

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

    Printers Embed Responsive

    <complexType name='Form' description='Example from grid links section, simpler version'>
    	<field name='rows' type='Row' maxOccurs='n' extra:form.listview='grid'/>
    </complexType>
    
    <simpleType name='BaseString' type='xs:string' 
        extra:map.bean=''
        extra:grid.align='center' 
         />
    
    <complexType name='Row' description=''>
    <field name='id' type='xs:long' default='1'/>
    <field name='file' type='xs:token' default='statistics.xml'/>
    <field name='downloadXmlAction' minOccurs='0'
        type='BaseString'
        extra:grid.label='XML'
        extra:action='/link.do?id={id}'/>
    <field name='downloadXmlGridLink_ValueField' 
        type='xs:string'  
        extra:map.bean=''
        extra:grid.align='center' 
        extra:grid.label='XML' 
        extra:grid.value.field='id' 
        extra:grid.format='#link' 
        extra:grid.link='/link.do?id={id}'/>
    <field name='downloadXmlGridLink_LinkField' 
        type='xs:string' 
        extra:map.bean=''
        extra:grid.align='center' 
        extra:grid.label='XML' 
        extra:grid.link.field='id' 
        extra:grid.format='#link' 
        extra:grid.link='/link.do?id={id}'/>
    <field name='downloadXmlGridLink_LinkField_ValueField' 
        type='xs:string' 
        extra:map.bean=''
        extra:grid.align='center' 
        extra:grid.value.field='file' 
        extra:grid.link.field='id' 
        extra:grid.format='#link' 
        extra:grid.link='/link.do?id={id}'/>
    </complexType>