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?
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only