Skip to main content

BIN senTS Documentation

  • Author:

  • Version: 20

  • Description: An standard grid control containing two lists: one of numbers (simple) and one of roles (complex). They both use [lct.expression2] to format the whole list with a Velocity expression

  • Created: 2014-11-29

  • Modified: 2014-11-29

  • Source:

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

    Printers Embed Responsive

    <complexType name='Form' description='An standard grid control containing two lists: one of numbers (simple) and one of roles (complex). They both use [lct.expression2] to format the whole list with a Velocity expression'>
        <field name='users' maxOccurs='n' type='User' extra:form.listview='grid'/>
    </complexType>
    <complexType name='User' >
        <field name='numbers' type='xs:int' minOccurs='1' extra:lc.simple='true'  maxOccurs='n'  
    	extra:lct.expression2='#foreach($item in $!obj.listValue) $item #end'/>
        <field name='roles' type='Role'  extra:lc.simple='true' minOccurs='1' maxOccurs='n'
    	extra:lct.expression2='#foreach($item in $!obj.listValue) $item.name #end'/>
    </complexType>
    <complexType name='Role'>
        <field name='name' type='xs:string' minOccurs='1' >
            <facet name='enumeration' value='USER'/>
            <facet name='enumeration' value='ADMIN'/>
            <facet name='enumeration' value='SUPER'/>
            <facet name='enumeration' value='MANAGER'/>
        </field>
    </complexType>