AnsweredAssumed Answered

How can I populate field values into a custom view?

Question asked by Wayne Price on Feb 25, 2014
Latest reply on Feb 27, 2014 by Ramendra singh
I'm trying to create a custom view within SugarCRM 6.5.x. So far, the basics are working as per this URL: http://developer.sugarcrm.com/2011/12/23/creating-custom-view-for-sugarcrm-module/

I've updated the code to use a template:

  public function preDisplay()
  {
    $this->dv->tpl = 'custom/modules/Accounts/tpl/custom.tpl';
  }
and then created a template file in that location. So far, so good...

However, if I try to use {$fields.name.value}, {$fields.id.value}, etc. in my custom.tpl file, those fields are blank.

What's the magic I'm missing to setup the $fields array for Smarty to use the various module fields?

Regards,

Wayne

Outcomes