Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Rowbuffering with SendChildMessage()
Message
From
13/06/2002 09:18:08
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Title:
Rowbuffering with SendChildMessage()
Miscellaneous
Thread ID:
00667889
Message ID:
00667889
Views:
61
Hi Kevin,

As with my previous email when I used SendChildMessage() method to send a "Delete" message to the child business object (thread #666695), in my testing, I found that it works as long as my child business object uses row buffering. When I used table buffering, it doesn't work. The comments in the delete method says that "tlImmediate" parameter is used for table buffering. But whether I set tlImmediate to .F. or .T., as long as the child business object uses table buffering, the record is not deleted. I call this method in the delete() method of parent business object but before calling dodefault(). Here is my code.

LPARAMETERS tlDeleteAll, tcAlias, tlImmediate
*-------------------------------------------
* The lines below are added to delete the
* records in the child business object
* when a record is deleted in its parent.
*-------------------------------------------
LOCAL lbretval
IF this.lcascademessages
lbretval=this.sendchildmessage("Delete", ".T.,,.T.")
ENDIF
lbretval=DODEFAULT(tlDeleteAll, tcAlias, tlImmediate)
RETURN lbretval

Does this mean that using SendChildMessage()method to send "Delete" command is not really created to handle table buffering? How can I handle it then?

Thanks a lot.

Nerissa Dela Rosa
McFadden's
Next
Reply
Map
View

Click here to load this message in the networking platform