Try OpenEdge Now
skip to main content
ProDataSets
Data Access and Business Entity Objects : Business Entity object : Elements of a Business Entity : Attaching the Data-Sources and callbacks
 
Attaching the Data-Sources and callbacks
The entity procedure can, as part of its main block startup code, request that the Data Access object attach Data-Sources and set callback procedures to its ProDataSet instance, as in this example:
lError = DYNAMIC-FUNCTION("attachDataSet" IN hSourceProc, hDataSet).
As was illustrated earlier, this can also be done in each of the methods of the Data Access object, rather than as a separate step.