BIN ZwdEx Documentation
Author: Michele Vivoda
Version: 43
Description: An a choice list grid control with [lc.expression] used to format the (complex) "Name" field showing title, first and last name and [lc.expression2] for the (simple) EMail. To check it out load a saved instance.
Created: 2014-11-29
Modified: 2015-10-16
Source:
Edit Bin W3C Schema Json-Schema Java Bean Code Default Value as XML<complexType name='Form' description='An a choice list grid control with [lc.expression] used to format the (complex) "Name" field showing title, first and last name and [lc.expression2] 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) EMAIL: $!obj.listItem.value #else NO EMAIL #end'/> <field name='name' type='Name' /> <field name='code' type='xs:int' /> </choice> </complexType> <!-- here specifies velocity expression for output of Name --> <complexType name='Name' extra:lct.expression='$!obj.title $obj.first $obj.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>application/xml //efbin.org/osk/ZwdEx //efbin.org/bin/ZwdEx?i=21 Eleusoft ARIA