Ed Leafe wrote:
> On Mar 28, 2010, at 8:06 PM, Ricardo Aráoz wrote:
>
>   
>>>> So, you mean to tell me that in the bizObj validateField and
>>>> validateRecord are two independent things but in the form they are not?
>>>>         
>>>     Not really. Of course in the bizobj they are two separate things, as 
>>> they are designed to deal with separate situations. But we are talking 
>>> about you calling save(), which is a series of events, any one of which can 
>>> abort the process.
>>>
>>>       
>> That was precisely my question. Does save() call both validateField and 
>> validateRecord()? I understood it should ONLY call validateRecord() (if I am 
>> not positioned on any field entry control). Is that so?
>>     
>
>       Yes. The save() method doesn't call validateField() itself.
>
>   
>>> The problem is that you are misunderstanding the order that things happen. 
>>> Before anything happens, the field validation must be dealt with.
>>>       
>> That would be only for the control on which I'm standing when save() is 
>> issued?
>>     
>       
>       Yes.
>   
Ok, then the abnormal behaviour when saving can not be explained by the
fact that I messed with the validateField() normal flow of events,
because this abnormal behaviour also happens when I am standing on a
valid control (no validation at all) and the wrong input is in other
control. The abnormal behaviour is that no error window appears when
validateRecord() issues an error (but the record is not saved and the
error is shown in the status line (code sent in previous posts of this
thread).
I'm insisting on this because maybe I hit a bug (if someone can confirm
my results).
My needs on the subject are satisfied by your excellent advice on
manually binding the ValueChanged or the LostFocus events to the
dTextBox, for which I really thank you.

Cheers.



--- StripMime Report -- processed MIME parts ---
multipart/alternative
  text/plain (text body -- kept)
  text/html
---
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/[email protected]

Reply via email to