Maximus can you please guide me like where i need to write my code.
I used "selectDefaultFilters": {"filter": "won"} in clientDefs but still All is selected by default.
Add custom text color to field
Collapse
X
-
-
how can i set up cron job to execute a URL ?
I set my URL like "0 10 * * * curl -s "url..." > /dev/null" in "sudo crontab -u www-data -e" at end of the file But this is not working.Leave a comment:
-
Hi, How can i call getMailSender() from "\Espo\Services\Email" in my custom cron job. when I extends "\Espo\Services\Email" it gives me " Espo.ERROR: Uncaught Exception Error: "Call to a member function getScopeRestrictedAttributeList() on null" at /var/www/html/EspoEspoLatest/application/Espo/Services/Record.php line 155 {"exception":"[object] (Error(code: 0): Call to a member function getScopeRestrictedAttributeList() on null at /var/www/html/EspoEspoLatest/application/Espo/Services/Record.php:155)"}" error.
and when i create "\Espo\Services\Email" object and then call getMailSender(), it gives me you can't call protected method error.
Please help me out, I haven't found anything for thisLast edited by swati; 06-11-2019, 09:35 AM.Leave a comment:
-
Sorry, not sure why is doing that, perhaps some other member or someone from the development team can explain why.
What I can do is give you an example of how I created a many-to-one relationship in my application and hopefully that will help:
I have a "Tenancy" entity that can have one or more "ServiceTicket" entities linked to it, so after I created both entities I went to Administration>>Entity Manager>>ServiceTicket>>Relationships and created a link type many-to-one mapped to Tenancy. Then I went to Administration>>Layout Manager>>ServiceTickets>>Detail and added the field "Tenancy" to the detail layout.
Lastly, since Espo shows the "name" field of the Tenancy in the dropdown box in ServiceTicket detail view, and I wanted to display the property address, I used formula to put the property address as "name" in the Tenancy entity, then I can see that field when selecting a Tenancy from the ServiceTicket detail view.Last edited by telecastg; 05-21-2019, 06:24 PM.
Leave a comment: