On Jul 2, 2011, at 11:47 AM, Raef wrote:

> 1. I see. I will have an attribute in the Bizobj called confPass, then on
> value change or on lost focus it will call a method in the Form. The Form
> will then change the value of the attribute in the bizobj, then I will
> compare the passwords in the validateRecords(). I forgot that the form knows
> about its bizobjs, therefore knows its methods and attributes. I should have
> seen that, I guess I was looking at it in a different manner.

        Actually, up until today, bizobjs worked differently than any other 
object when used as a DataSource. They would only allow DataField values that 
corresponded to column names, or, for derived values, method names that 
returned read-only values. I've just posted a change that allows data binding 
to bizobjs the same as any other object, as well as the special handling for 
data column values. Now you can add an attribute to the bizobj for the password 
confirmation value, and then bind the control to that. No need for the 
multiple-step process I outlined earlier.

> I've read that the datasource of the dtextBox could use a Bizobj, If I set
> it's datasource to my Bizobj then the datafield to the attribute in the
> bizobj. Will it change without calling a method onValueChanged()?
> Is that a valid approach on this?

        When the value of the text control changes, it will be flushed to its 
DataSource when the control loses focus, or when the internal form method 
activeControlValid() is fired. You shouldn't have to do anything else.



-- Ed Leafe



_______________________________________________
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