I have a custom field in Quotes module.While trying to get the field value using
I am getting the value as 'undefined'.
But after save the quote I am able to get the correct value.
Any idea ?
I am assuming that you are changing the 'field_name' to the actual field name of the custom field (ie 'custom_field_c') correct?
where in your code are you doing this?
If you are inside an API success, for example, then "this" may not be what you think it is...
You may want to define var self = this at the beginning of your controller and use self.model.get('your_field_name_here');
If you could share your code it would help figure out where things are going wrong.
Hi Vijayakumar S
If you are calling a function from initialize and in that function if you are trying to get the custom field value then while calling the function you may have to use "data:sync:complete"
for example - this.model.on('data:sync:complete',this._yourFunction,this);
Retrieving data ...