Raveen Ryan Sundram
6-Sep-2005, 08:26 PM
Hi,
In my WebReport, I've set the piMaxCount to 30 and the report
displays/prints 30 lines before stopping.
But it returns 26 as piLastRecord - how weird is this?
Could be confused with other webreports in my program? As I've declared
all/most of the webreport as being 'oReport' . But I have only one report
per Web-Object (WO)
Has anyone encountered this before?
My Code:
==================
Function RunOrderDtlReport Integer iHdrRec String sMode Integer iStartRecord
Integer iMaxCount Returns Integer
Integer iLastRecord iStatus
Set piOrdering To 3
Set piConstrainRecord To iHdrRec
Set psMode To sMode
Showln 'piMaxCount=' iMaxCount
Set piStartRecord To iStartRecord
Set piMaxCount To iMaxCount
Set piMaxCountBreakLevel To 0
Get DoRunReport To iStatus
Get piLastRecord To iLastRecord
Showln 'piLastRecord=' iLastRecord
Function_Return iLastRecord
End_Function // RunShowOrder
In my WebReport, I've set the piMaxCount to 30 and the report
displays/prints 30 lines before stopping.
But it returns 26 as piLastRecord - how weird is this?
Could be confused with other webreports in my program? As I've declared
all/most of the webreport as being 'oReport' . But I have only one report
per Web-Object (WO)
Has anyone encountered this before?
My Code:
==================
Function RunOrderDtlReport Integer iHdrRec String sMode Integer iStartRecord
Integer iMaxCount Returns Integer
Integer iLastRecord iStatus
Set piOrdering To 3
Set piConstrainRecord To iHdrRec
Set psMode To sMode
Showln 'piMaxCount=' iMaxCount
Set piStartRecord To iStartRecord
Set piMaxCount To iMaxCount
Set piMaxCountBreakLevel To 0
Get DoRunReport To iStatus
Get piLastRecord To iLastRecord
Showln 'piLastRecord=' iLastRecord
Function_Return iLastRecord
End_Function // RunShowOrder