ds wrote:
Hello,
i am new with llblgen and i tryed the validate functions. i expierenced some problems with it:
- in the fieldvalidate i can return false and in an attached datagrid the change is undone - thats fine, but i found no way to pass an information back WHY this was done (error or information message). as well it would be nice to have access to the whole entity when a field change
You could throw an exception in the field validation classes, it's up to you.
for the entity validator i found no way to register it on a entity collection in adapter mode.
You can do this in a derived class for the entity factory. As you have to pass in an entity factory to the entity collection, pass in an instance of a derived class of the entity factory, which then automatically instantiates the entity validator.