Question
1
Replies
230
Views
Posted: December 3, 2019
Last activity: August 31, 2020
Serial number/Row number in Report Definition
how to add a column which generates the row number sequentially in report definitions dynamically?
***Edited by Moderator Marissa to change type from General to Product, update Product details***
To get the above requirement please follow below steps.
Step 1: Create a control and uncheck the Auto-generated checkbox.
Step 2: Copy and paste the below code .
<span>
<%
int SI= Integer.parseInt(tools.getParamValue("startIndex")) ;
int RDCI = Integer.parseInt(tools.getParamValue("index"));
%>
<%= SI+RDCI-1 %>
</span>
Step 3: Add some dummy property in RD and call this control in control format (Edit column>>Control format)
PFA