Description
MainBlock is run when a component is started. It is not to be confused with InitInstance, which is run when an instance is started. Because of this, it is not possible to use any instance dependent data in this method.
PreCondition
This method is run when r-code for this component or a descendant component is loaded into memory. It is not to be confused with InitInstance, which is run when an instance is started.
Parameters
oiReturnStatus | output | integer | Return status of the method. |
Internal usage
unused
program code (program/bmfguserrole.p)
<ANCESTOR-CODE>
if not can-find(first tMfgBufferFieldMapping
where tMfgBufferFieldMapping.tcMfgTableName = "usrgd_det":U
and tMfgBufferFieldMapping.tcFinancialTableName = "UserRoleDomain":U)
then do:
create tMfgBufferFieldMapping.
assign
tMfgBufferFieldMapping.tcMfgTableName = "usrgd_det":U
tMfgBufferFieldMapping.tcFinancialTableName = "UserRoleDomain":U
tMfgBufferFieldMapping.tcFieldMapping = "tc_status,tc_Status":U.
end.