I'm trying to create a dashlet to show Knowledge Base Articles from a certain category of articles. I've created dashlets before, usually without a hitch. However, with this, I'm getting this error:
This is my code in Custom/Resources/metadata/dashlets/KnowledgeBaseArticles.json
If I remove the "entityType," no error, but also no info. It says "Please select your entity type." If I try a different entityType, I get the same server error.
I don't think my view is the problem, but here it is:
I'm sure I'm over-looking something dumb, but I can't see it :-/
Thanks in advance for the help!
PS. I've even tried stripping it down to the bare example from here: https://github.com/espocrm/documenta...e-a-dashlet.md and adding a basic entityType...it errors out.
Code:
Espo.ERROR: Uncaught Exception Error: "Class 'Espo\Services\NotFound' not found" at /var/www/html/espocrm/application/Espo/Services/Layout.php line 56 {"exception":"[object] (Error(code: 0): Class 'Espo\\Services\\NotFound' not found at /var/www/html/espocrm/application/Espo/Services/Layout.php:56)"} []
Code:
{ "view":"views/dashlets/abstract/record-list", "entityType": "KnowledgeBaseArticle", "options": { "fields": { "title": { "type": "varchar", "required": true }, "autorefreshInterval": { "type": "enumFloat", "options": [0, 0.5, 1, 2, 5, 10] }, "displayRecords": { "type": "enumInt", "options": [5,10] } }, "defaults": { "displayRecords": 5, "primary": "usingThePortalArticles" }, "layout": [ { "rows": [ [ {"name": "title"}, {"name": "autorefreshInterval"} ] ] } ] } }
I don't think my view is the problem, but here it is:
Code:
define('custom:views/dashlets/knowledge-base-articles','views/dashlets/abstract/base',function (Dep) { return Dep.extend({ name: 'Knowledge Base Articles', template: 'custom:dashlets/knowledge-base-articles' }) });
Thanks in advance for the help!
PS. I've even tried stripping it down to the bare example from here: https://github.com/espocrm/documenta...e-a-dashlet.md and adding a basic entityType...it errors out.
Comment