Vai al contenuto principale

BIN GmI1q Documentation

  • Author:

  • Version: 14

  • Description: Test for totals from Northwind97 - using grid.totals=true only the columns marked with grid.total=true get totals - (189)

  • Created: 2021-01-15

  • Modified: 2021-01-15

  • Source:

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

    Printers Embed Responsive

    <complexType name='Form' description='Test for totals from Northwind97 - using grid.totals=true only the columns marked with grid.total=true get totals -  bin:GmI1q?i=189 '>
        <field name='orderDetails' type='OrderOrderDetailsGridRow'
    			minOccurs='0' maxOccurs='n' node='element' localName='orderDetail' 
    			extra:bean.type='org.eleusoft.northwind1997.beans.OrderDetail'
    			extra:ctrl.emptyisnull='true' extra:form.maybenull='true'
    			extra:lc.xedit='false' 
    			extra:lc.ordered='false' 
    			extra:lc.copy='false'
    			extra:form.listview='grid'
    			extra:grid.totals='true' 
    					 />
    </complexType>
    
    <complexType name='OrderOrderDetailsGridRow' extra:bean.generate='none' extra:action.list.entity='OrderDetail' extra:app.category='grid-row' extra:app.entity='Order'>
    		<field name='unitPrice' type='xs:decimal' node='attribute' extra:hibernate.default='0.0000' extra:grid.total='avg' />
    		<field name='quantity' type='xs:short' node='attribute' extra:hibernate.default='1' />
    		<field name='discount' type='xs:double' node='attribute' extra:hibernate.default='0' />
    		<field name='total' type='xs:decimal' extra:bean.hasfield='false' minOccurs='0'
    					extra:grid.total='true'
    					extra:form.control='formattedLabel'
    					extra:projection.skip='true' 
    					extra:grid.sort='false'
    					extra:map.bean.grammar='xpath'
    					extra:map.bean.expression='unitPrice * quantity * (1 - (discount div 100))' />		
    				
    	</complexType>