Thanks Taher,
It worked as expected.
Arun
________________________________________
From: Taher Alkhateeb <
[hidden email]>
Sent: Wednesday, February 17, 2016 11:51 PM
To:
[hidden email]
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 <
[hidden email]
<javascript:_e(%7B%7D,'cvml','
[hidden email]');>> 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
>