SetEntityError in ValidateFieldValue

Posts   
 
    
omar avatar
omar
User
Posts: 569
Joined: 15-Oct-2004
# Posted on: 06-Oct-2006 21:29:09   

In the ValidateFieldValue() routine of a validator class, does the SetEntityError append the error message or overwrites it??

bclubb
User
Posts: 934
Joined: 12-Feb-2004
# Posted on: 07-Oct-2006 02:10:51   

I believe SetEntityError overwrites it.

bclubb
User
Posts: 934
Joined: 12-Feb-2004
# Posted on: 07-Oct-2006 02:11:36   

SetEntityFieldError includes a parameter which can be used to append.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39927
Joined: 17-Aug-2003
# Posted on: 07-Oct-2006 11:38:39   

bclubb wrote:

I believe SetEntityError overwrites it.

Correct. If you want to append, first read the value, append and then set the error to that new value.

Frans Bouma | Lead developer LLBLGen Pro