Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Child biz obj (view) updates w/o bound controls
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Title:
Child biz obj (view) updates w/o bound controls
Miscellaneous
Thread ID:
00510805
Message ID:
00510805
Views:
60
Hi all,

I'm a new MM user struggling mightily with my 1st MM app. I'm using the 6.1 beta release.

My app manages engineering changes. A distribution list of users is maintained for each ec. I had to develope my own mover functionality to support ec distribution lists because the kmoverobj doesn't seem to allow a user to be repeated in the distribution list.

I have a group table of user lists (one type of which is a distribution list) and a glist table which lists the users in a given group. On the cBizObjMaintenanceForm that supports the group table I have controls on the property page that support the group description and type for the primary biz obj and 2 grids that support a child biz obj corresponding to the glist view.

The source grid is read only and shows all the users that may be moved to the group list. The destination grid is bound to a temporary table. Command buttons on the properties page activate functionalty to add (to) , remove (from), resequence and reorder the (temporary) group list. Everyting works great until I update the child biz obj, when the ok button is clicked.

I've tried many different approaches but the updates to the child biz obj fail because my view updates using a scan loop and replaces are always seen as being made by another user.

On the first update to the destination grid I insert a new record into v_glist so that MM knows to ask about saving child changes. If I call thisform.new() record is inserted ok, but if I call thisform.oBizObj.new(), with obizobj referencing the child biz obj (v_glist), I get an error indicating a blank record can not be inserted into the base (glist) table. I can't figure out what that's all about.

I know what I'm trying to do can be done, since the sample app does it with regards to projects and assocated tasks. The main difference in approach is that the sample uses bound textbox controls to update the task view, but I'm doing updates in code by moving the record pointer with a scan and replacing field values and using a new() call to add new records. I've placed this code in various places such as the ok click(), thisform.saverecord(), child biz obj presavehook(), but I've not been able to get around the multiuser conflict problem.

Thanks in advance for any help you can give this poor lost mortal.
Next
Reply
Map
View

Click here to load this message in the networking platform