It seems that in the current implementation of MVVM:
- A dependent property (calculated field) can easily use the value of another property of the view Model through the this.get(propertyName) syntax.
- However, a new calculated field can't seem to utilize another property of the view Model IF THAT PROPERTY is ITSELF a Calculated Field.
Can someone confirm this for me or can someone tell me the way around.
See this JSFiddle for a demonstration.
In the addNew() method. I'm just trying to display the value of this.get("displayDropDownValue") which is, a calculated field. It seems the only way to get this to work properly is to REPLICATE all of the code inside the displayDropDownValue field and put it in the new addNew() method as well.
Any suggestions? Help?
See this JSFiddle for a demonstration.
In the addNew() method. I'm just trying to display the value of this.get("displayDropDownValue") which is, a calculated field. It seems the only way to get this to work properly is to REPLICATE all of the code inside the displayDropDownValue field and put it in the new addNew() method as well.
Any suggestions? Help?