I am trying to access self.model.get('name'), but it doesn't console.log anything. It does console log my console.log(this).
I am ultimately trying to change the name of the value fields.
Here is what I have
<code>
({
extendsFrom: 'RecordView',
initialize: function (options) {
this._super('initialize', [options]);
//add listener for custom button
this.context.on('button:print_agreement:click', this.print_agreement, this);
this.context.on('button:billing_memo:click', this.billing_memo, this);
},
_render: function() {
this._super("_render");
console.log(this);
console.log(self.model.get('name'));
// console.log(this.model.attributes['name']);
// console.log(this.model.attributes);
},
print_agreement: function(){
},
billing_memo: function(){
window.open('index.php?entryPoint=billMemo&from_portfolio_id=' + this.model.get('id'));
},
})
</code>