mitigated RList query issue

This commit is contained in:
Infineon\StieberD 2024-09-18 17:01:21 -07:00
parent 1c69c61d16
commit 1bd10cffad
2 changed files with 5 additions and 20 deletions

View File

@ -88,29 +88,21 @@ END
DateRange = "Dates: ":StartDateFrom:" Through ": StartDateThru DateRange = "Dates: ":StartDateFrom:" Through ": StartDateThru
Utility( 'CURSOR', 'H' ) Utility( 'CURSOR', 'H' )
WithStmt = 'SELECT REACTOR_LOG ':WithStmt WithStmt = 'SELECT REACTOR_LOG ':WithStmt
WithStmt := ' AND WITH CATEGORY = "M" BY REACTOR BY START_DATE'
RLIST( WithStmt, TARGET_ACTIVELIST$, '', '', '' ) RLIST( WithStmt, TARGET_ACTIVELIST$, '', '', '' )
IF Get_Status(errCode) THEN CALL ErrMsg(errCode) IF Get_Status(errCode) THEN CALL ErrMsg(errCode)
WithStmt ="SELECT REACTOR_LOG BY REACTOR BY START_DATE WITH CATEGORY = 'M'"
RLIST(WithStmt,TARGET_ACTIVELIST$,'','','')
IF Get_Status(errCode) THEN CALL ErrMsg(errCode)
IF @Reccount = 0 THEN IF @Reccount = 0 THEN
ErrMsg('No records selected with that criteria...') ErrMsg('No records selected with that criteria...')
RETURN RETURN
END END
* Start of printing process * Start of printing process
FileName = 'Print Reactor Maintenance Report' FileName = 'Print Reactor Maintenance Report'
@ -127,7 +119,7 @@ PageInfo<7> = LETTER ;* Pagesize
PageSetup = '1' ;* Landscape = 1 PageSetup = '1' ;* Landscape = 1
PrintSetup = '2' ;* Preview Normal PrintSetup = '2' ;* Preview Normal
PrintSetup<1, 2> = 0 PrintSetup<1, 2> = 0
* PrintPath = Printer_Select()
PrintPath = '' PrintPath = ''
stat = Set_Printer('INIT',FileName,Title,PageInfo,PageSetup,PrintSetup,PrintPath) stat = Set_Printer('INIT',FileName,Title,PageInfo,PageSetup,PrintSetup,PrintPath)
IF stat < 0 THEN GOTO OIPrintErr IF stat < 0 THEN GOTO OIPrintErr

View File

@ -90,29 +90,21 @@ END
DateRange = "Dates: ":StartDateFrom:" Through ": StartDateThru DateRange = "Dates: ":StartDateFrom:" Through ": StartDateThru
Utility( 'CURSOR', 'H' ) Utility( 'CURSOR', 'H' )
WithStmt = 'SELECT REACTOR_LOG ':WithStmt WithStmt = 'SELECT REACTOR_LOG ':WithStmt
WithStmt := ' AND WITH CATEGORY = "M" BY REACTOR BY START_DATE'
RLIST( WithStmt, TARGET_ACTIVELIST$, '', '', '' ) RLIST( WithStmt, TARGET_ACTIVELIST$, '', '', '' )
IF Get_Status(errCode) THEN CALL ErrMsg(errCode) IF Get_Status(errCode) THEN CALL ErrMsg(errCode)
WithStmt ="SELECT REACTOR_LOG BY REACTOR BY START_DATE WITH CATEGORY = 'M'"
RLIST(WithStmt,TARGET_ACTIVELIST$,'','','')
IF Get_Status(errCode) THEN CALL ErrMsg(errCode)
IF @Reccount = 0 THEN IF @Reccount = 0 THEN
ErrMsg('No records selected with that criteria...') ErrMsg('No records selected with that criteria...')
RETURN RETURN
END END
* Start of printing process * Start of printing process
FileName = 'Print Reactor Maintenance Report' FileName = 'Print Reactor Maintenance Report'
@ -657,3 +649,4 @@ END
*/ */