| | | 
StrataFrame User
       
Group: StrataFrame Users Last Login: Yesterday @ 6:22:15 PM Posts: 363, Visits: 1,798 |
| | Ben, Correct me if I'm wrong but I was under the impression that the OM alternate values for null was to eliminate problems where NULL data was returned from the database. In this case I'm adding a new row. Since I don't have the source for 1.41 I'm not able to step through all of the code but what I've noticed is that in the cases where I'm receiving the errors is that fileds that would automatically be set to a non null value (even if they were not configured to do so in OM) for a new row are not being set. -Larry |
| | | | 
StrataFrame Developer

Group: StrataFrame Developers Last Login: 09/26/2008 8:30:36 AM Posts: 2,685, Visits: 1,886 |
| Check the "AllowNullValues" property on the business object and make sure it's False. If that property is set to True, then the business object will not initialize the values within a new row.
www.bungie.net |
| | | | 
StrataFrame User
       
Group: StrataFrame Users Last Login: Yesterday @ 6:22:15 PM Posts: 363, Visits: 1,798 |
| | Ben. On both my test BO and the actual application I'm coding the AllowNullValueOnNewRow on the BO is set to False. If it helps, when receiving this error the BO's set-default-values code never gets executed. It fails right after retrieving the BO's FieldDbTypes. -Larry |
| | | | 
StrataFrame User
       
Group: StrataFrame Users Last Login: Yesterday @ 6:22:15 PM Posts: 363, Visits: 1,798 |
| | Ben, Whatever is causing the problem appears to have been introduced in v1.41. I moved the code back to version 1.4 and everything works as expected. -Larry |
| | | | 
StrataFrame Developer

Group: StrataFrame Developers Last Login: 09/26/2008 8:30:36 AM Posts: 2,685, Visits: 1,886 |
| Hehe, I was just replying Larry When you get the exception in your program, and the .NET unhandled exception dialog pops up, press "Continue" on your debug and you should get the red "Application Error" window that will have a complete list of the exceptions and inner exceptions and the stack traces of all of the exceptions concatenated together. That should give me a clue where it's coming from. You can copy/paste the content of that window and post it here.
www.bungie.net |
| | | | 
StrataFrame User
       
Group: StrataFrame Users Last Login: Yesterday @ 6:22:15 PM Posts: 363, Visits: 1,798 |
| | Ben, It took me a few minutes to get back to you since I had to re-install v1.41. Continuing just brings up the same error for the next field and so on. Once I've cycled through all the fields the maint form is displayed and I'm able to enter the data and save the record. -Larry |
| | | | 
StrataFrame Developer

Group: StrataFrame Developers Last Login: 09/26/2008 8:30:36 AM Posts: 2,685, Visits: 1,886 |
| When it gives you that error for each field, do you get the red error window? I'm wondering if the stack trace within that error window contains a call to "CurrencyManager.ListChanged" or "CurrencyManager.OnListChanged." .NET might be trying to do something when the internal DataTable changes rather than waiting for the row to be initialized.
www.bungie.net |
| | | | 
StrataFrame User
       
Group: StrataFrame Users Last Login: Yesterday @ 6:22:15 PM Posts: 363, Visits: 1,798 |
| | Ben, A red error window is never displayed. Attached is a screen shot with the stack trace associated with the error. -Larry
|
| | | | 
StrataFrame Developer

Group: StrataFrame Developers Last Login: 09/26/2008 8:30:36 AM Posts: 2,685, Visits: 1,886 |
| I think I figured it out, Larry, the ListChanged event is being fired too soon (before the record has actually been initialized). I'm working on a fix right now.
www.bungie.net |
| | | |
|