Last post Jun 15, 2011 02:07 PM by mfromm
Jun 14, 2011 08:33 AM|mfromm|LINK
Hi, I'm using Entity Framework .NET 3.5 SP1. I created a Formview using EntityDataSource and DynamicControls.
I have requirement to check "if TableA.ColumnX is populated, then TableB.ColumnY must also be populated"?
What the best way to do this and could you provide some code samples?
Thanks in advance for your help!
Jun 14, 2011 05:17 PM|sjnaughton|LINK
Hi mfromm, is this a full Dyanamic Data site or just a simple DD (no DynamicData folder structure and using SetMetatable extension method?
if the laster then this will be difficult if however you are using a DD site with the DynamicData folder structure then you can look at this sample here o mine
Communicating Between FieldTemplates in Dynamic Da...
Jun 15, 2011 02:07 PM|mfromm|LINK
Thanks again, Steve!
I am not using the full DD website project, but I do have the DynamicData folder structure that I use for the Formview DynamicControl. Not using any extensions.
I will have to review your code. I would like to use annotations if possible but I'm still new to DD, custom annotations and extensions.
For the meantime, I used OnSavingChanges() to do the special validations on most of my fields.
But I'm glad you suggested this!