This is a migrated thread and some comments may be shown as answers.

Submit Model doesn't send attributes that have functions

0 Answers 24 Views
Data Source
This is a migrated thread and some comments may be shown as answers.
axwack
Top achievements
Rank 1
axwack asked on 24 Aug 2012, 05:50 PM
I have a viewModel model that has the following type characteristics:

Broker: "",  
BondProceeds: function(){                                       
           return this.get("UnderlyingPar") * (this.get("UnderlyingPrice")/100) + this.get("UpfrontFees");
                                        },

When I submit using Create on a datasource Broker will get sent but not BondProceeds. I suspect because there is a function. How do you work around this?

No answers yet. Maybe you can help?

Tags
Data Source
Asked by
axwack
Top achievements
Rank 1
Share this question
or