Concurrency, NULLs and Custom properties.


Author
Message
Greg McGuffey
Greg McGuffey
Strategic Support Team Member (4.8K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
This is likely because I don't fully understand how the concurrency handler works, but I'm having trouble with two issues related to concurrency:



1. I have a table that has several date fields in it. These fields can all be NULL, because the dates can be NOT set. I have a SetDefaultValues handlers that provides my NULL replacement date for them. All is fine...until I have a concurrency conflict (I'm using row version concurrency). If one of the conflicting fields is a date and one of the values of that field is NULL, I get a type conversion error. How do I handle NULLs in this case?



2. Same form (hitting same table) also has a couple of custom properties defined. These properties get their data from some extra columns that might be available when the BO is filled. I check if the column exists before attempting to get the value and if the data table doesn't have the column, I return a default. This works great. However, with concurrency again, when there is a conflict, I'm getting an error that one of these custom fields isn't in "Table1" (default table name of a table in a data set I assume). Apparently, the concurrency handler is accessing this custom field, but not using my custom getter, somehow going directly to the data table. Any ideas on how to handle this better ( Unsure er...at all)?



I'm trying to release this into production, so this is fairly urgent!



Thanks!
Reply
Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
No problem Smile
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
Greg McGuffey - 17 Years Ago
Greg McGuffey - 17 Years Ago
Greg McGuffey - 17 Years Ago
Greg McGuffey - 17 Years Ago
StrataFrame Team - 17 Years Ago
                         Thanks for the reply Ben...beginning to wonder if anyone was alive!...
Greg McGuffey - 17 Years Ago
                             Aha, the ApplyCollisionDecisionToRow method goes through a different...
StrataFrame Team - 17 Years Ago
                                 Thanks Ben!
Greg McGuffey - 17 Years Ago
                                     OK, Greg, the update is posted to the updates thread....
StrataFrame Team - 17 Years Ago
                                         Ben,

Is should I use the update or is this in the official...
Greg McGuffey - 17 Years Ago
                                             No, load the official release! I will remove the other right now :)
Trent L. Taylor - 17 Years Ago
                                                 Thanks, will do! And thanks for the fix! :D
Greg McGuffey - 17 Years Ago
                                                     No problem :)
Trent L. Taylor - 17 Years Ago
Dustin Taylor - 17 Years Ago

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search