Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
KMoverObj Save?
Message
From
19/10/2004 16:55:12
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Title:
KMoverObj Save?
Miscellaneous
Thread ID:
00952804
Message ID:
00952804
Views:
40
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
Next
Reply
Map
View

Click here to load this message in the networking platform