Kbase P8884: How to get the SmartDataObject handle inside of a SmartBusinesObjects
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  23/01/2003 |
|
Status: Unverified
GOAL:
How to get the SmartDataObject handle inside of a SmartBusinessObjects
GOAL:
How to cancel an Update just in a SmartDataObject inside of a SmartBusinessObjects
GOAL:
How to undo a transaction in a SmartDataObject inside a SmartBusinessObject
FACT(s) (Environment):
Progress 9.1C
Progress 9.1D
FIX:
Function dataObjectHandle returns the handle for the SmartDataObject passed as parameter to the function. The following is an example of how to use this function in a button in the SmartWindow:
DEFINE VARIABLE hSDO AS HANDLE NO-UNDO.
ASSIGN hSDO = DYNAMIC-FUNCTION("dataObjectHandle":U IN sboHandle, INPUT "sdoName").
If an Update wants to be canceled just in a SmartDataObject inside a SmartBusinessObject, the undoTransaction procedure in the SmartDataObject handle should be executed.
RUN undoTransaction IN hSDO.