Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MaintenanceForm Obj.
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00110958
Message ID:
00112657
Vues:
11
Hi Kevin!

Thanks for your answers

>>which is the difference between clistobj and cListOneToManyObj Objects?
>
>I recommend that you do NOT use CListObj or CListOneToManyObj. These are classes that are in the Framework solely for backward compatability. As the Developer's Guide suggests, you should use KBizObj (located in KBizness.vcx) instead.

I don´t understand very well, if the cBizObjMaintenanceForm Class has a ClistOneToManyObj Object, so I don't must use this form class too?


The control To replace this Classes, is ListObj Object?


>
>>Why, In MaintenanceForm the OK Button call to Thisform.SaveRecord, instead of Thisform.Save?, Which is the difference?>
>
>If you check out the header documentation in CBizObjForm.SaveRecord() you will see that SaveRecord() does a few extra things from a user interface perspective and calls the Save() method itself.


>
>>In the same MaintenanceForm I have a cListOneToManyObj in Page2 Object, that contains child records. Remember that page2 has two 'Ok' and 'Cancel' Buttons. Where it is the best place to write code, to save the child records?, and Which Is the Correct instruction Thisform.Save? or NameBizObj.Save ?>
>
>I recommend that you set the child business object's lSaveChildOnSaveParent to TRUE (.T.). Then in the OK button on page 2, call ThisForm.Save(). The parent business object will receive a Save() message from the form, then the parent business object will send a Save() message to the child business object.

IF kbizobj class doesn't have the lSaveChildOnSaveParent Property, which code recommend me to save child records.

When you call the Form Save Method, you use transactions for do it?

Thanks, again
Enrique Ramírez
Microsoft VFP MVP 2003
www.foxtraining.com
México
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform