Re: Having Trouble extending vardefs for Accounts

Originally Posted by
chrislynch8
Hi,
I want to extend my vardefs to add a field to the Mass Update of Accounts.
In custom/Extension/modules/Accounts/Ext/Vardefs/ I created a file called vardefs.ext.php
And I included the Following
PHP Code:
<?php
$dictionary['Accounts']['fields']['pr_account_status_c']['massupdate'] = true;
?>
I rebuild the extension but nothing changed on the Mass Update for Accounts. I found another thread here that had Account instead of Accounts for I tried that it rebuilt the Extensions and that didn't work either.
In the custom/Extension/modules/<ModuleName>/Ext/Vardefs/ I have two other files from Module updates that I installed. Would these affect my vardefs.ext.php???
Rgds
Chris
Hi Chris,
You tried to edit this field in Studio? There you can set massupdate enabled for your field.
Otherwise;
When you go to your sugar folder modules\Accounts you find the vardefs.php. In here you can see that $dictionary['Account'].
Therefore you have to add this line in vardefs.ext.php;
$dictionary['Account']['fields']['pr_account_status_c']['massupdate'] = true;
Do a Quick Repair and Rebuild and it should have to work. You have Developer Mode enabled?
Last edited by dekleinemedia; 2009-08-05 at 01:01 PM.
Kind regards,
De Kleine Media
SugarCRM CE v.5.2.0h
Windows platform
MySQL v.5.1
phpMyAdmin - 2.11.2.2
Apache Server v.2.0
Bookmarks