[Vtigercrm-developers] Apply filters on Popup contents?

Alan Lord alanslists at gmail.com
Mon Oct 6 12:05:42 GMT 2014


On 06/10/14 10:56, Alan Lord wrote:

> What's the correct way to do this now? I'm assuming I create an override
> of layout/vlayout/modules/Vtiger/resources/Popup.js but I don't think I
> need any special templates?

So a bit more digging and it isn't as straightforward as it might first 
seem...

1. I need to override the Popup.php view for the target module of the 
UI10 field (in my case the Accounts module) to limit the initial List.

2. I then need to override the Popup.js for the target module of the 
UI10 field to limit the page counting functions and any subsequent 
search functions a user might do in the Popup.

So this would mean creating the 2 override files (Popup.js and 
Popup.php) in the Accounts module structure.

Perhaps then I should be looking at this a different way... Maybe I 
should be setting the search_key and search_value params in the URL that 
opens the Popup in the first place?

But I am not sure where I should be doing this... Override Edit.js perhaps?

Cheers

Al




More information about the vtigercrm-developers mailing list