Question

Serial number/Row number in Report Definition

how to add a column which generates the row number sequentially in report definitions dynamically?

Correct Answer
December 3, 2019 - 3:26am

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

Comments

Keep up to date on this post and subscribe to comments

December 3, 2019 - 3:26am

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