BLOMASKY wroteYou can do that using SQL Server (with the row_number function), so you COULD call a SP to create your BO with sequential numbers. I doubt that this is what you wanted to hear, but that is a way to do it.
Hello Bruce,
many thanks for your respond and your answer. Unfortunately, my database server is MySQL.
The lastly, I have the answer now from eagles9999 (many thanks for your help, Mark Bailey)
He suggest create new BO as temporary for the data that want to printed, don't forget add an attribute in the BO as the numbering. Create a process to filter the data and then import the data into the temporary BO (use CREATE function) which use COUNT as the numbering for every record.
The illustration like the below
Suppose your current BO is OriginalData and temporary BO is TempData, don't forget add new attribute for the number, ex: RowNumber and then create a process like the below.
FIND OriginalData WHERE ..... (whatever you want to filter)
CREATE TempData WITH TempData.RowNumber=COUNT TempData WHERE (.....)+1, blablabla