Print Page | Close Window

Cross type verifier is not working on server-side

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2010
Forum Discription: For .NET 4.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=2380
Printed Date: 19-Apr-2024 at 2:20pm


Topic: Cross type verifier is not working on server-side
Posted By: jairov4
Subject: Cross type verifier is not working on server-side
Date Posted: 15-Dec-2010 at 5:12pm
 
Hi, I have a simple verifier including a cross-type entity reference but it didnt work on server side.
This is my code and I cant get working it. (sorry for the coloring)
 
var v4 = new DelegatePropertyValueVerifier<CreditApplication>("Please keep amount between min and max specified"EntityPropertyNames.Amountfalse,
(itemToVerifyvalueToVerifyverifierContext) =>
{
var creditLine = itemToVerify.CreditLine;
var ok = (decimal)valueToVerify >= creditLine.MinCredit && (decimal)valueToVerify <= creditLine.MaxCredit;
return new VerifierResult(ok);
});
 
This is the same thing on http://drc.ideablade.com/xwiki/bin/view/Documentation/Verify_Engine - http://drc.ideablade.com/xwiki/bin/view/Documentation/Verify_Engine  when it says "Cross-Type verifiers", debbugging it I got that on server side itemToVerify.CreditLine is the NullEntity instead of the related entity.
How I can write a verifier that works when I save my main Entity alone AND together related entities too, on server-side and client-side?
 
Im using DevForce 6.0.6 and WPF
 
Have any idea? Thank you vm.



Replies:
Posted By: DenisK
Date Posted: 20-Dec-2010 at 3:46pm
Hi jairov4;

I've verified that this is a bug that has been fixed in our latest 6.0.7 release.



Print Page | Close Window