Been trying to get to griips with using RockTabulator to create grids today inside a Process Module.
public function ___executeContactsPage(){
$finder = wire('modules')->get('RockFinder3')
->find("template=user,sort=surname,id>40")
->addColumns(['firstname','surname', 'linkedin']);
bd($finder);
$grid->setData($finder);
return $grid;
}
The data is coming across fine, but I cannot work out how to define $grid - Undefined variable: grid. Any help appreciated
Got myself confused between RockGrid and RockTabulator
Actually the reason I was getting all the problems is that my version of PW was not working with RockFinder3, but I did not get the error message until I dumped the sql.
Undefined variable: grid