Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Concurrency Error when repeatedly saving field
Message
 
To
05/01/2007 18:37:47
Jeff Corder
Ambit Technologies, LLC
Missouri, United States
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01183019
Message ID:
01183078
Views:
27
Jeff,

Hmmm...I'm not sure what's going on here. This should work just fine. Try adding the following code to the MM .NET sample application's AAppTest and see if it works for you:
public bool TestMultipleSaves(int orderID)
{
	string Exception;

	Orders oOrder = new Orders();
	oOrder.GetOrderByOrderID(orderID);
	oOrder.Entity.Freight = 1.23M;
	if (oOrder.SaveDataSet() != mmSaveDataResult.RulesPassed)
	{
		Exception = oOrder.Exception.Message;
		return false;
	}

	oOrder.Entity.Freight = 2.34M;
	if (oOrder.SaveDataSet() != mmSaveDataResult.RulesPassed)
	{
		Exception = oOrder.Exception.Message;
		return false;
	}

	return true;
}
What is the actual exception that you're getting? You can look at the business object's Exception property to determine this.

Best 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