Kbase P27436: Unable to delete records from SBO with multi page container
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  26/06/2003 |
|
Status: Unverified
FACT(s) (Environment):
Progress 9.1D
SYMPTOM(s):
Unable to delete records from SBO with multi page container application
Each viewer is mapped to one SDO included in SBO
All SDOs built against the same table.
This database record does not exist or is locked by another user.
USER-INTERFACE-TRIGGER adm2/pupdsav.w (c:\toi\apps\progress\91d\dlc\gui\adm2\pupdsav.r) at line 3614
deleteRecord adm2/datavis.p (c:\toi\apps\progress\91d\dlc\gui\adm2\datavis.r) at line 2808
--> showDataMessagesProcedure adm2/datavis.p (c:\toi\apps\progress\91d\dlc\gui\adm2\datavis.r) at line 3719
CAUSE:
Smart data objects which are data targets in SBO are trying to delete the same record as their data source.
FIX:
DO not let the data-targets to delete the record in deleteRow function.
FUNCTION deleteRow
RETURNS LOGICAL
( INPUT pcRowIdent AS CHARACTER) :
/* Code placed here will execute PRIOR to standard behavior. */
DEF VAR vhSrc AS HANDLE NO-UNDO.
vhSrc = dynamic-function( 'getDataSource' ).
IF VALID-HANDLE( vhSrc ) THEN RETURN TRUE. /* record deleted by data-source */
ELSE
RETURN SUPER( INPUT pcRowIdent ) .
END FUNCTION.