Can someone help me create report from 3 entities
I need to create report that prints name, required number of visits, actual visits that sales person is made.
I have tried using joint reports but without any luck.... I'm having problems connecting contact and contact categories entities...
Tried with formulas when change contact category:
I even installed LogDebug Custom Formula extension for debugging purposes, set 'level' => 'DEBUG' in config-internal.php, but nothing is even printed out in log files.
Also tried many to many, one to many contact to contact category, all without any luck.
Any pointers create this report / create appropriate formula. Thanks in advance.
- Contact
- Contact Categories - which contains category name and required number of visits
- Meeting
I need to create report that prints name, required number of visits, actual visits that sales person is made.
I have tried using joint reports but without any luck.... I'm having problems connecting contact and contact categories entities...
Tried with formulas when change contact category:
Code:
ifThen(entity\isAttributeChanged('contactsCategories'), $contact_id = id; util\logDebug('XXX',$contact_id); $category_id = record\findOne('contact_contacts_category', '', '', 'contact_id', $contact_id); $number_of_visits = record\attribute('contactsCategories', $category_id, 'required_number_of_visits'); entity\setAttribute('Numberofvisits', $number_of_visits); );
Also tried many to many, one to many contact to contact category, all without any luck.
Any pointers create this report / create appropriate formula. Thanks in advance.
Comment