Versions des environnements
Take a look at aevents().
>>Bind the relevant property to the code you want to run, using BindEvent(). (BindEvent() works for properties as well as methods.)
>>
>>Tamar
>
>Didn't know that you could bind to a property. Thanks for that.
>
>If I do this:
>BINDEVENT(this.odata,'myproperty',this,'mymethod',0)
>
>I can see the value of the property before it was changed, but I can't figure out how to get the new value that was entered
>
>If I do this:
>BINDEVENT(this.odata,'myproperty',this,'mymethod',1)
>
>I can see the value of the property after it was changed, but can't figure out how to get the previous value before it was changed.
>
>
>With the _assign method, the new value is passed via a parameter which means I have access to the old value and the new value. If the new value is rejected by validation/rules, I can prevent it from being saved to the property.
>
>Of course I can utilize both the ,0 and ,1 with 2 different methods, but this doubles my work. Any thoughts on getting the previous or new values in the above scenarios from a single method?
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement