devxlogo

Printing a line at the detail band

Printing a line at the detail band

Question:
I want to print a line at the detail band onlyif it’s on the last row of the page; otherwise, itshould not print at all.

Answer:
To achieve this, you will need to return the rownumber of the result set in the result set. Or alternatively, after the datawindow is retrieved, populate an empty column with the row number.

Then you can make use of the function last in the datawindow. For the line visible property, you can check the value in the rownumber column against the value returned from last( rownumber for page ). For example:

if( rownumber = last( rownumber for page ), 1, 0 )

devxblackblue

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist