title: Can't access fields in Sugar view controller
body: <p>I'm having a problem accessing field values in a view controller. A controller for the Resources record view takes a value from a dropdown and sets the value of a field depending on the dropdown selection. It looks like this:</p>
  
  <pre><code>// custom/modules/Resources/clients/base/views/record/record.js
  
  ({
      initialize: function (options) {
          this._super('initialize', [options]);
          this.model.once("sync", this.assignOnChangeFunctions, this);
      },
  
      assignOnChangeFunctions: function () {
          this.model.on('change:custom_rate', this.custom_rate_changed, this);
      },
  
      custom_rate_changed: function(){
          console.log('project_manager_l2_rate_c: ' + this.model.get('project_manager_l2_rate_c'));
          console.log('project_manager_l3_rate_c: ' + this.model.get('project_manager_l3_rate_c'));
          switch(this.model.get('custom_rate')){
              case 'Project Manager L2':
                  this.model.set('resource_rate_actual',this.model.get('project_manager_l2_rate_c'));
                  break;
              case 'Project Manager L3':
                  this.model.set('resource_rate_actual',this.model.get('project_manager_l3_rate_c'));
                  break;
          }
      },
  })
  
  </code></pre>
  
  <p>Controller for the create view looks just like the above, except it extends from <code>CreateView</code> and instead of <code>this.model.once("sync", this.assignOnChangeFunctions, this)</code> I have <code>this.assignOnChangeFunctions</code>. The create controller works as expected. But the record controller can't access the values of <code>project_manager_l2_rate_c</code> and <code>project_manager_l3_rate_c</code> fields. The output from console.log statements is "undefined". But, I can see the values of these fields in the database. When I try to access other fields in this <code>Resources</code> record, the results are mixed. Some of the fields can be accessed and others cannot. I don't see any pattern for which fields can be accessed. It seems to make no difference whether a field is in <code>resources</code> or <code>resources_cstm</code> table. Replacing <code>this.model.once("sync", this.assignOnChangeFunctions, this)</code> with <code>this.assignOnChangeFunctions</code> makes no difference. What else can I try to troubleshoot this?</p>