Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
KMoverObj Save?
Message
De
19/10/2004 16:55:12
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Titre:
KMoverObj Save?
Divers
Thread ID:
00952804
Message ID:
00952804
Vues:
41
Hi All,

I hope someone can help with this. I am using CusrorAdapters to access SQL data.

I replaced the SelListObj with my own and did all the things indicated in the Dev Guide.

My issue is with setting my custom SelListObj as the Primary Business Object. If I do that then the SelListObj performs a save before the parent business object. This means I can't get the parent business object's primary key value before the mover's SelListObj is saved.

If I don't set it as primary business object then the following code (from kMoverObj.Save()) returns false and the DeleteRemovedItems() and AddNewItems() methods never fire leaving my cursor empty.
IF TYPE('loParent') != 'O' OR ;
  EMPTY(loParent.cUniqueIDField) OR ;
  EVAL(loParent.GetAlias()+'.'+loParent.cUniqueIDField) ;
   == This.oSelListObj.cLastParentUniqueID
Anyone with ideas on what to do? Even better anyone know why the
Type('loParent') !='O'
is in there?

Aloha,

James
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform