Skip to main content

BIN 4MXST Documentation

  • Author:

  • Version: 32

  • Description: An standard grid control for a complex list with [lc.expression] used to format the (complex) "Name" field showing title, first and last name and [lct.expression2] for the EMail. To check it out load a saved instance or fill one.

  • Created: 2015-10-08

  • Modified: 2016-03-16

  • 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 for a complex list with [lc.expression] used to format the (complex) "Name" field showing title, first and last name and [lct.expression2] for the EMail. To check it out load a saved instance or fill one.'>
        <field name='Date' type='xs:date' />
        <field name='Rows' type='Row' maxOccurs='n' extra:form.listview='grid' />
    </complexType>
    
    <complexType name='Name' extra:lct.expression='$!obj.title  $obj.first $obj.last '><!-- here specify to show field "last" as output -->
        <field name='title' type='xs:string' minOccurs='0' extra:form.maybenull='true' />
        <field name='first' type='NotEmptyString' />
        <field name='last' type='NotEmptyString' />
    </complexType>
    <simpleType name='NotEmptyString' type='xs:string' extra:form.empty='false'><facet name='minLength' value='1'/></simpleType>
    
    
    <complexType name='Row' description=''>
            <field name='email' type='NotEmptyString' extra:form.control='email'  extra:lct.expression2='#if($obj.listItem.email.length() gt 0) EMAIL: $!obj.listItem.email #else NO EMAIL #end'/> 
            <field name='name' type='Name' />
            <field name='code' type='xs:int' />
    </complexType>