Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Saving data using stored procedures
Message
 
To
16/09/2004 18:15:15
Larry Caylor
Santa Cruz County Human Resources Agency
Santa Cruz, California, United States
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
00943146
Message ID:
00949642
Views:
10
Larry,

>The examples in the Developer’s guide does a good job illustrating the basic concepts. However, using stored procedures with MM is not completely clear. I created a custom data adapter as described in the guide, which I also used to generate the stored procedures. Retrieving data works fine, the problem comes in saving the data. I get an error stating that the ‘Original’ parameters are not being passed to the SP. Currently I’m just letting the forms save event raise the business objects save event which uses the custom adapter. Should I be calling the business objects SaveDataSet method directly from the UI passing it the required parameters?

I just noticed your post...sorry it fell through the cracks! You CAN just use the default SaveDataSet method when saving data this way. Can you post the actual error message and stack trace? Also, make sure the business object's RetrieveAutoIncrementPK property is set to true. One other question...if you don't use a stored procedure to initially retrieve the data, but use stored procedures to save it, do you still get the error?

Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform