StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      


««123»»

Browse Dialogue ProblemExpand / Collapse
Author
Message
Posted 06/02/2006 4:58:50 PM


StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame 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

Post #1356
Posted 06/02/2006 5:00:58 PM


StrataFrame Developer

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
Post #1357
Posted 06/02/2006 5:20:41 PM


StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame 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

Post #1358
Posted 06/03/2006 2:10:42 PM


StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame 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

Post #1363
Posted 06/03/2006 2:13:55 PM


StrataFrame Developer

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
Post #1364
Posted 06/03/2006 2:52:43 PM


StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame 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

Post #1368
Posted 06/04/2006 9:13:01 PM


StrataFrame Developer

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
Post #1379
Posted 06/05/2006 11:26:44 AM


StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame 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

  Post Attachments 
CastException.png (15 views, 57.97 KB)

Post #1392
Posted 06/05/2006 1:23:15 PM


StrataFrame Developer

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
Post #1394