Kbase 21370: SBO Containing SDOs That Have a One-to-One Relationship
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  10/16/2008 |
|
SUMMARY:
You might receive the following ADM2 message while working with SmartBusinessObjects which contain SmartDataObjects that have a one-to-one relationship. In Progress Version 9.1C, these should be updated together, as this message explains.
"The SmartBusinessObject <sbo-name.w> cannot update <sdo-name1.w>
and <sdo-name2.w> together. Either make sure that only fields
from the SmartDataObject Update Target are enabled or if these
objects have a one-to-one relationship and should be updated
together, specify that the Data Target is to be updated from the
Data Source in the SmartDataObject's Instance Properties. The
enabled fields and the update link will be disabled for now."
EXPLANATION:
The ADM2 message above most likely surfaces because the "UpdateFromSource" property of the data target SDO that is placed on the SmartBusinessObject is set to false.
SOLUTION:
To eliminate the message, create an override version of the initializeObject ADM2 procedure for that data target SDO and insert the following line of code before standard behavior (RUN SUPER):
DYNAMIC-FUNCTION('setUpdateFromSource':U, INPUT TRUE).
NOTE: the "Update From Source" toggle-box/property for SmartDataObjects is missing from the SDO Instance Property screen in Progress V9.1C.