afida
Nov 22nd, 2004, 02:06 AM
I have a form with two dependent properties, In other words on a form object change value, I would like one property to be set/updated before the other. Currently it is in the order they get added to FormModel. Both of these properties are bounded properties.
Basically I have a Property A and Property B both are bound to ListModels. Property A's list model list a filtered list model and the filter's constraint depends on Property B's value. When the form objects changes Property A's list model gets refresh and constraint is applied as well but at this point Property B is not set yet hence results in wrong constraint test results.
I can change the order in which these properties are being bound to form, but the problem is the order is not natural order, meaning when I am creating controls its not the way the components are laid out. It is very easy to make a mistake.
Amad
Basically I have a Property A and Property B both are bound to ListModels. Property A's list model list a filtered list model and the filter's constraint depends on Property B's value. When the form objects changes Property A's list model gets refresh and constraint is applied as well but at this point Property B is not set yet hence results in wrong constraint test results.
I can change the order in which these properties are being bound to form, but the problem is the order is not natural order, meaning when I am creating controls its not the way the components are laid out. It is very easy to make a mistake.
Amad