Description
Initialize a new record in class table tQFRWCube.
Parameters
ic_ParentRowid | input | character | = tQFRWCube.tc_ParentRowid |
BQFRWCube | output | dataset | class dataset, containing only the newly initialized record |
oiReturnStatus | output | integer | error status |
program code (program/bqfrwcube.p)
assign oiReturnStatus = -98.
empty temp-table t_sQFRWCube.
empty temp-table t_sQFRWCubeSaf.
empty temp-table t_sQFRWCubeSkip.
empty temp-table t_sCustomTable0.
empty temp-table t_sCustomTable1.
empty temp-table t_sCustomTable2.
create tQFRWCube.
assign tQFRWCube.tc_Rowid = dynamic-function("GetNumberForNew":U in {&TARGETPROCEDURE})
tQFRWCube.tc_Status = "N":U.
{ includes/bfcrun.i
&procedure = "StartPersistence"
¶meters = "output vh_persistence,
output viFcReturnSuper" }
if viFcReturnSuper <> 0
then do:
assign oiReturnStatus = viFcReturnSuper.
return.
end.
assign tQFRWCube.QFRWCube_ID = dynamic-function ("GetNextValue":U in vh_persistence,"ObjectNumber":U).
{ includes/bfcrun.i
&procedure = "InitialValues"
¶meters = "input 'QFRWCube':U,
output oiReturnStatus" }
create t_sQFRWCube.
raw-transfer tQFRWCube to t_sQFRWCube.