TotalRowCount
Mon 01 January 2018Syntax
TotalRowCount(scrollpath)
Where scrollpath is:
[RECORD.level1_recname, level1_row, [RECORD.level2_recname, level2_row, ] RECORD.target_recname
To prevent ambiguous references, you can use SCROLL. scrollname , where scrollname is the same as the scroll levelâs primary record name.
Description
Use the TotalRowCount function to calculate the number of rows (including rows marked as deleted) in a specified scroll area of a page.
Note: This function remains for backward compatibility only. Use the RowCount rowset property instead.
Rows that have been marked as deleted remain accessible to PeopleCode until the database has been updated; that is, all the way through SavePostChange.
TotalRowCount is used to calculate the upper limit of a For loop if you want the loop to go through rows in the scroll that have been marked as deleted. If the logic of the loop does not need to execute on deleted rows, use ActiveRowCount instead.
Parameters
Field or Control |
Definition |
---|---|
scrollpath |
A construction that specifies a scroll level in the component buffer. |
Returns
Returns a Number equal to the total rows (including rows marked as deleted) in the target scroll.