Skip to main content

BIN RUmWW Documentation

  • Author:

  • Version: 18

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

  • Created: 2015-10-16

  • Modified: 2017-10-07

  • Source:

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

    Printers Embed Responsive

    <complexType name='Form' description='An a choice list grid control with [lc.expression2] used to format the (complex) "Name" field showing title, first and last name and for the (simple) EMail. To check it out load a saved instance.'>
        <field name='Employee' type='xs:string' />
        <field name='Date' type='xs:date' />
        <choice name='Identifiers' maxOccurs='n' extra:form.listview='grid' extra:lc.ordered='false' >
            <field name='email' type='NotEmptyString' extra:form.control='email'  extra:lct.expression2=' #if($obj.listItem.value.length()>0) EMAIL: $!obj.listItem.value #else NO EMAIL #end'/>
            <field name='name' type='Name' />
            <field name='code' type='xs:int' extra:nc.format='simple'/>
            <field name='date' type='xs:date' />
        </choice> 
    </complexType>
    <!-- here specifies velocity expression for output of Name -->
    <complexType name='Name' extra:lct.expression2='$!obj.listItem.value.title  $!obj.listItem.value.first $!obj.dataObject.last '>
        <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>