Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error saving VFP data
Message
From
06/05/2004 22:26:53
 
 
To
All
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
Error saving VFP data
Miscellaneous
Thread ID:
00901822
Message ID:
00901822
Views:
56
Hi Kevin,

I returned to evaluating the demo version of your framework. I have a couple problems:

I built a very sample web application. I have a mmDataGrid with an edit/cancel/update column and a delete column. I followed the instructions in the mm.net doc.

#1 In a row I have a field with the value "Hiver 2005", I can edit this and update it to "Hiver 2007" no problem. If I edit it to a new value with more characters such as "Hiver 20057" then it fails:

-----------------------------------------------------------------------------
Cannot set column 'ses_cname' to 'Hiver 20057 '. The value violates the MaxLength limit of this column.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentException: Cannot set column 'ses_cname' to 'Hiver 20057 '. The value violates the MaxLength limit of this column.

Source Error:


Line 87: DataSet dsSessions = (DataSet)Session["dsSessions"];
Line 88: // Save the DataSet (the DataGrid automatically binds back)
Line 89: this.SesBizObj.SaveDataSet(dsSessions);
Line 90: // Reset the edited item and rebind the DataGrid
Line 91: this.grdSessions.EditItemIndex = -1;


Source File: c:\inetpub\wwwroot\college office web\sessionedit.aspx.cs Line: 89
-----------------------------------------------------------------------------

#2 How should we manage failed triggers: I try to delete a record, the trigger fails (normal) but it throws an exception. Should I use a try/catch block? Should not this be already taken care of by the business object?

#3 Is there an error management feature as in the VFP framework where the errors are logged etc...

#4 I could not find any documentation on the methods of the business object, only on the properties. Is there some more doc with the full version?

Thanks

Thierry Labarre
Next
Reply
Map
View

Click here to load this message in the networking platform