On Jul 12, 2009, at 4:57 PM, tim awa wrote:

> My delete button on a form with a parent and child grids have the
> following code:
>
> self.Form.delete()
>
> It deletes the parent without issues if there are no child records.
>
> If I delete a parent in Postgresql directly, the ON DELETE CASCADE
> setting deletes the child records accordingly.
>
> The delete button in my Dabo application somehow deletes both parent
> and child records but the application freezes immediately after the
> click.

        Do you have referential integrity logic in both the database and in  
the application? Perhaps that's what's hanging the app. Can you add  
some debugging to your bizobj to determine what the setting for its  
'deleteChildLogic' attribute is? The possible values are:

REFINTEG_IGNORE = 1
REFINTEG_RESTRICT = 2
REFINTEG_CASCADE = 3

        So it bizobj.deleteChildLogic == 3, you could have the problem you  
are seeing.


-- Ed Leafe





_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: 
http://leafe.com/archives/byMID/[email protected]

Reply via email to