[ https://issues.apache.org/jira/browse/OFBIZ-7014?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Wai closed OFBIZ-7014. ---------------------- Resolution: Not A Problem the context variable previousItem was meant to be used with 'position' attribute in form fields. Not in the way that was used in the sample form. > <form type=list> listing always contain empty first entry > --------------------------------------------------------- > > Key: OFBIZ-7014 > URL: https://issues.apache.org/jira/browse/OFBIZ-7014 > Project: OFBiz > Issue Type: Bug > Components: ALL COMPONENTS > Affects Versions: Trunk > Reporter: Wai > > when creating a <grid type=list> or <form type=list> to display a listing. > the first entry is alway empty > Use this sample form to see the symptom: > <grid name="TestForm" type="list" list-name="theList"> > <actions> > <entity-condition entity-name="Product" list="theList"> > <condition-list combine="and"> > <condition-expr field-name="productTypeId" > operator="equals" value="FINISHED_GOOD"/> > </condition-list> > </entity-condition> > </actions> > <row-actions> > <set field="productId" value="${previousItem.productId}" /> > <set field="productTypeId" value="${previousItem.productTypeId}" > /> > </row-actions> > <field name="productId" title="productIdTitle"> <display/> </field> > <field name="productTypeId" title="productTypeIdTitle"> <display/> > </field> > </grid> -- This message was sent by Atlassian JIRA (v6.3.4#6332)