Submit Model doesn't send attributes that have functions

1 posts, 0 answers
  1. axwack
    axwack avatar
    37 posts
    Member since:
    Aug 2012

    Posted 24 Aug 2012 Link to this post

    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?
Back to Top