joelios
November 12, 2019, 12:41pm
1
When I try to add transaction to the dashboard of customer doctype with:
cur_frm.dashboard.add_transactions([
{
'label': 'My Label',
'items': [
'My Doctype 1',
'My Doctype 2',
'My Doctype 3'
]
}
]);
the new dashboard items will be present in cur_frm.dashboard.dashboard_data
, the counting and everything else looks like pretty correct, but the items doesn’t show up on the dashboard!
Is this a known bug?
thx in advance for your replies!
1 Like
I think the issue because the field name not equal the doctype name,
like my issue.
Itried to add this code
this.frm.dashboard.add_transactions([
{
‘fieldname’: ‘agent’,
‘items’: [
‘Item’
],
‘label’: ‘Item’,
}
]);
but it does not work, then it has been solved by changing the field name to be the same of doctype name.
11113
June 23, 2020, 2:46pm
4
Hello.
Please tell me exactly where to add this code?
Which file?
peterg
December 10, 2020, 3:31pm
5
Where you ever able to find a solution to this? I’m facing the same issue.