project BLF > class BReportRequest > method CreateReportSchedule
Description
Initialize a new record in class table tReportSchedule.
Parameters
ic_ParentRowid | input | character | = tReportSchedule.tc_ParentRowid |
BReportRequest | output | dataset | class dataset, containing only the newly initialized record |
oiReturnStatus | output | integer | error status |
program code (program/breportrequest.p)
assign oiReturnStatus = -98.
empty temp-table t_sRptRequest.
empty temp-table t_sRptRequestCBF.
empty temp-table t_sRptRequestFilter.
empty temp-table t_sRptRequestMail.
empty temp-table t_sCustomTable0.
empty temp-table t_sCustomTable1.
empty temp-table t_sCustomTable2.
empty temp-table t_sRptRequestContext.
empty temp-table t_sReportSchedule.
create tReportSchedule.
assign tReportSchedule.tc_Rowid = dynamic-function("GetNumberForNew":U in {&TARGETPROCEDURE})
tReportSchedule.tc_Status = "N":U.
assign tReportSchedule.tc_ParentRowid = ic_ParentRowid.
{ includes/bfcrun.i
&procedure = "InitialValues"
¶meters = "input 'ReportSchedule':U,
output oiReturnStatus" }
create t_sReportSchedule.
raw-transfer tReportSchedule to t_sReportSchedule.