Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Empty row?
Message
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Title:
Miscellaneous
Thread ID:
00188655
Message ID:
00190382
Views:
13
>Paul,
>
>>I click on the New() button to create a new record. Page two of the pageframe is activated to let me make my changes. Page two has a child object on it and has controls w/the controlsource bound to the primary business object's "InitialSelectedAlias" view.recordname . I fill some information in, then click to the next page tab. I get the error. >
>
>Something is definitely awry here...First of all, let's establish a few things:
>
>Is it your parent or child object that's getting the error? As you've discovered, Visual Foxpro will give you this error if you try to save an empty record. My question is this: Why are any records being saved at this point? If your child business object is the one getting the error, why and where is a blank record being added to the business object?
>
>Regards,
>Kevin

The error seems to be occuring the in child object. I'm not sure if any records are being saved, I think the problem might be in the way the pages are refreshed. My child object (one of which is on page three) is setup so that a new child record is created when a new parent one is created. The child object has only one parameterized view associated with it (fk_parentobj == vp_parentobj_iid). If I create a new parent record by clicking on “New” on the first page, a new record is created in the primary business obj, and I’m moved to the second page. I fill in a bit of info, then click on the third page. Since that page is then Refreshed and at then requeried (presumably the child object has already has created a new “empty” record because the parent has), I get the error.

Is there some way I should be delaying creation of the new record in the child object until that page receives focus? If that’s the case, how do I let the user freely move between page frames w/o entering any information until they are ready?
-Paul

RCS Solutions, Inc.
Blog
Twitter
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform