Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Updating detail view before saving primary view, how?
Message
From
10/02/2000 10:02:50
Rex Mahel
Realm Software, Llc
Ohio, United States
 
 
To
10/02/2000 09:59:16
Rex Mahel
Realm Software, Llc
Ohio, United States
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00329865
Message ID:
00329982
Views:
34
>>>My solution is to have the location information in the input view, but in the parent.presavehook(), i would run a method to update the parent foreign key. In this method, I would check if the foreign key is empty. If so, check if the entered location is in the location table, if so update the foreign key, if not add a record and replace all fields, then update the foreign key. I still have the parent child relationship between the views and have both save normally.
>>
>>So if you add a record for the entered location, does it actually end up getting saved twice be the time Save() is done? And we're talking 1 bizobj with multiple views in it right? Maybe two bizobjs would serve you better here?

I am using two business objects. The parent contains information from both tables but only updates the parent table. The child business object view is only used for adding new records, so the child information only gets saved once.

I'm still working on what happens if they change the location information.

Thanks

Rex
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform