[Vtigercrm-developers] Add advance criteria to existing Custom view
Alan Lord
alanslists at gmail.com
Fri Oct 13 07:19:15 GMT 2023
On 13/10/2023 07:39, Jérémy Prévost wrote:
>
> Something like I instanciate the custom view with it's cvid, I add my
> additional advance criteria and save ?
That should work. Check out the Record model to see how to instantiate
them and the action classes for how to save them.
$cvs = CustomView_Record_Model::getAll();
foreach($cvs as $i => $cv) {
// Modify $cv['advfilterlist']
$cv->save();
}
Or you just write a script to update the database directly...
Al
More information about the vtigercrm-developers
mailing list