You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Arun Sankar <ar...@outlook.com> on 2016/02/17 15:20:36 UTC
Display serial number column in csv using forms.xml
Hi All,
I am trying to create a csv file using form widget and one of the columns requires a Serial number(1, 2, 3 etc.).
<form name="GenerateCSV" type="list" list-name="OrderList"
odd-row-style="alternate-row" default-table-style="basic-table hover-bar" paginate="${paginate}">
<field title="SrNo" ><display/></field> <!-- Need help with this -->
<field name="orderId" title="Order Id"><display/></field>
</form>
My list OrderList is created in the groovy and am using this form to render my csv. All the other information is displayed from the list however I am unable to understand how to display the serial number sequence.
Can anybody please help with this?
Thanks,
Arun
Re: Display serial number column in csv using forms.xml
Posted by Arun Sankar <ar...@outlook.com>.
Thanks Taher,
It worked as expected.
Arun
________________________________________
From: Taher Alkhateeb <sl...@gmail.com>
Sent: Wednesday, February 17, 2016 11:51 PM
To: user@ofbiz.apache.org
Subject: Display serial number column in csv using forms.xml
Hi Arun,
I think you need to add it to your OrderList in the groovy script, nothing
to do on the widget level. A simple forEach populating it.
Taher Alkhateeb
On Wednesday, 17 February 2016, Arun Sankar <arunsankar89@outlook.com
<javascript:_e(%7B%7D,'cvml','arunsankar89@outlook.com');>> wrote:
> Hi All,
>
>
> I am trying to create a csv file using form widget and one of the columns
> requires a Serial number(1, 2, 3 etc.).
>
>
> <form name="GenerateCSV" type="list" list-name="OrderList"
> odd-row-style="alternate-row" default-table-style="basic-table
> hover-bar" paginate="${paginate}">
> <field title="SrNo" ><display/></field> <!-- Need help with this
> -->
> <field name="orderId" title="Order Id"><display/></field>
> </form>
>
> My list OrderList is created in the groovy and am using this form to
> render my csv. All the other information is displayed from the list however
> I am unable to understand how to display the serial number sequence.
>
> Can anybody please help with this?
>
> Thanks,
> Arun
>
Display serial number column in csv using forms.xml
Posted by Taher Alkhateeb <sl...@gmail.com>.
Hi Arun,
I think you need to add it to your OrderList in the groovy script, nothing
to do on the widget level. A simple forEach populating it.
Taher Alkhateeb
On Wednesday, 17 February 2016, Arun Sankar <arunsankar89@outlook.com
<javascript:_e(%7B%7D,'cvml','arunsankar89@outlook.com');>> wrote:
> Hi All,
>
>
> I am trying to create a csv file using form widget and one of the columns
> requires a Serial number(1, 2, 3 etc.).
>
>
> <form name="GenerateCSV" type="list" list-name="OrderList"
> odd-row-style="alternate-row" default-table-style="basic-table
> hover-bar" paginate="${paginate}">
> <field title="SrNo" ><display/></field> <!-- Need help with this
> -->
> <field name="orderId" title="Order Id"><display/></field>
> </form>
>
> My list OrderList is created in the groovy and am using this form to
> render my csv. All the other information is displayed from the list however
> I am unable to understand how to display the serial number sequence.
>
> Can anybody please help with this?
>
> Thanks,
> Arun
>