Hi,
I need to create a new dashlet for the new entity called AccountOpening
and I has been created a new json file in this location "espocrm\custom\Espo\Custom\Resources\metadata\das hlets\accountopening.json"
and this file contains the below code:
{
"view":"views/dashlets/abstract/record-list",
"aclScope": "AccountOpening",
"entityType": "AccountOpening",
"options": {
"fields": {
"lastName": {
"type": "varchar",
"required": true
}
},
"autorefreshInterval": {
"type": "enumFloat",
"options": [0, 0.5, 1, 2, 5, 10]
},
"displayRecords": {
"type": "enumInt",
"options": [3,4,5,10,15,20,30,50]
},
"layout": [
{
"rows": [
[
{"name": "lastName"}
]
]
}
]
}
}
for now i can add the dashlet on my home screen but when i make any refresh or clear the cache in this case the dashlet disappears and the important thing is that there is no data loaded. So I need to know how can load the data in the dashlet
Thanks in advanced
I need to create a new dashlet for the new entity called AccountOpening
and I has been created a new json file in this location "espocrm\custom\Espo\Custom\Resources\metadata\das hlets\accountopening.json"
and this file contains the below code:
{
"view":"views/dashlets/abstract/record-list",
"aclScope": "AccountOpening",
"entityType": "AccountOpening",
"options": {
"fields": {
"lastName": {
"type": "varchar",
"required": true
}
},
"autorefreshInterval": {
"type": "enumFloat",
"options": [0, 0.5, 1, 2, 5, 10]
},
"displayRecords": {
"type": "enumInt",
"options": [3,4,5,10,15,20,30,50]
},
"layout": [
{
"rows": [
[
{"name": "lastName"}
]
]
}
]
}
}
for now i can add the dashlet on my home screen but when i make any refresh or clear the cache in this case the dashlet disappears and the important thing is that there is no data loaded. So I need to know how can load the data in the dashlet
Thanks in advanced
Comment