Event: kyvos.viewer.db.onDuplicateWidget
Pending State: This event is triggered to inform the host application that the duplicate widget process has started and is in the pending status.
{
"integrationId": "",
"msgId": "",
"msgName": "kyvos.viewer.db.onDuplicateWidget",
"payload": {
"info": {
"status": "pending",
"desc": "Duplicating widget process started.",
"extDesc": "",
"code": -1
},
"data": null
}
}
Sample
{
"integrationId": "",
"msgId": "Guid_3517636817",
"msgName": "kyvos.viewer.db.onDuplicateWidget",
"payload": {
"info": {
"status": "pending",
"desc": "Duplicating widget process started.",
"extDesc": "",
"code": -1
},
"data": null
}
}
Process completed
kyvos.viewer.db.onDuplicateWidget: This event is triggered to inform the host application that the duplicate widget process is completed.
{
"integrationId": "",
"msgId": "17294921545274127095026173819164",
"msgName": "kyvos.viewer.db.onDuplicateWidget",
"payload": {
"info": {
"status": "success",
"desc": "widget duplicated successfully.",
"extDesc": "",
"code": 0
},
"data": {
"wbId": "17028888620297127014080187683451",
"wbName": "AllViz",
"dbId": "Dashboard17291538892432127073099112188766",
"dbName": "Dashboard 12",
"cardInfo": [
{
"cardId": "dbwidget17294921540085127097080123619503",
"cardTitle": "Area Copy 1",
"cardType": "DATA_CARD"
}
]
}
}
}
Points to consider
This API will return failed status if dashboard is in view mode.
This API will return failed status if the widgetId is null, not provided or is not present on the current dashboard.
This API will return failed status if the widget is of type group card.
This API will return failed status if the workbook is newly created.
This API will return failed status if user don't have appropriate access rights.
Sample
Copyright Kyvos, Inc. All rights reserved.