[Vtigercrm-developers] Apply filters on Popup contents?

Alan Lord alanslists at gmail.com
Tue Oct 7 09:29:37 GMT 2014


On 07/10/14 09:37, SVenema wrote:
> Hello Alan,
>
> after altering the tpl with your code, and adding:
> 'search_key' : 'Accounts',
> 'search_value' : '332'
> to Edit.js under getPopUpParams.
>
> I end up with:
> Fatal error: Call to a member function getFieldDataType() on a non-object in
> /var/www/vtigertest/include/QueryGenerator/QueryGenerator.php on line 1275

search_key needs to be the *fieldname* not the field label. So it would 
probably be "accountid"

search_value would need to be the Account Name.

Alan





More information about the vtigercrm-developers mailing list