I have a report that is bound to a list of business objects, where the Detail section is repeated once for each business object in the list. The Detail section has a divider line at the bottom that helps to visually distinguish each section. I don't want that divider line to show up after the very last section though.
I've had trouble finding out how to implement this. It looks like in the past I could have used a Conditional Formatting on the divider line (it's actually a Shape inside of a Panel, and I want to just hide the Panel). I could have had an expression that said if =RowNumber() = =Count(RowNumber()) then set the panel invisible, but this doesn't work anymore because it was broken when some Scope features were added.
I've tried the ItemDataBinding event on the Detail section, but I can't see how I can get the current row number or the total number of rows in the data source. All I need to know is if the current row is the last row, and then I could use this event to hide the divider line.
What's the correct way to go about this?
I've had trouble finding out how to implement this. It looks like in the past I could have used a Conditional Formatting on the divider line (it's actually a Shape inside of a Panel, and I want to just hide the Panel). I could have had an expression that said if =RowNumber() = =Count(RowNumber()) then set the panel invisible, but this doesn't work anymore because it was broken when some Scope features were added.
I've tried the ItemDataBinding event on the Detail section, but I can't see how I can get the current row number or the total number of rows in the data source. All I need to know is if the current row is the last row, and then I could use this event to hide the divider line.
What's the correct way to go about this?