>>>>>I like using access and assign methods because the consumer doesn't need to know about getter and setter methods.
>>>>>
>>>>>This is fine when a property exists on a form/class/etc.
>>>>>
>>>>>What about when the properties are created on-the-fly such as scatter name this.oData ?
>>>>>
>>>>>How would you go about adding access and assign methods to these properties?
>>>>
>>>>Use BindEvent() instead?
>>>>
>>>>Tamar
>>>
>>>I can't figure out how to have the _access and _assign methods available to bind to. Any thoughts on that?
>>
>>As I understand your situation, these methods must be "generic" methods which you bindevent to.
>
>Which isn't any better than using getters and setters.
>
>The goal is to bind a form control to the business object property. When that value changes, it should automatically call the relevant code in the business object. Without the property's _assign method, this is not possible without additional code that explicitly calls the setter method... unless I'm being dense (always a possibility :) )
Bind the relevant property to the code you want to run, using BindEvent(). (BindEvent() works for properties as well as methods.)
Tamar
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