My widget is broken and I cannot edit or delete it

Comments

3 comments

  • Avatar
    Ashish Srivastava

    I tried this however it says

    The Dashboard you're looking for doesn't exist anymore.
     
    Any suggestions around it?
    1
    Comment actions Permalink
  • Avatar
    Ruslan Bondarenko

    Hello Ashish Srivastava

    The error message you got indicated that you have inserted a wrong OID or in a wrong place. Please double-check the manual steps 5 and 6. Otherwise, please create a request for Sisense Support and we will be glad to assist you.

    Thanks in advance!

    Best regards

    Ruslan

    0
    Comment actions Permalink
  • Avatar
    Ruslan Bondarenko

    Also, you can run the script below from WEB console while standing on the dashboard with issue:

    var redrawWidgets = false;
    for (j=0; j<prism.activeDashboard.layout.columns.length; j++) {
    var newCollection = []
    prism.activeDashboard.layout.columns[j].cells.forEach(function(item) {
    var data = [];
    for (k=0; k< prism.activeDashboard.widgets.$$widgets.length; k++) {
    data.push(prism.activeDashboard.widgets.$$widgets[k].oid)
    }
    var newItem = [];
    var widgetsToDisplay = item.subcells
    for (i=widgetsToDisplay.length-1; i>-1; i--) {
    if (data.indexOf(widgetsToDisplay[i].elements[0].widgetid) !== -1) {
    newItem.push(widgetsToDisplay[i]);
    }
    };
    if (newItem.length !==0) {
    item.subcells = newItem.reverse();
    newCollection.push({
    subcells: newItem,
    $$hashKey: item.$$hashKey
    })
    }
    })
    if (prism.activeDashboard.layout.columns[j].cells.length !== newCollection.length) {
    redrawWidgets = true;
    }
    prism.activeDashboard.layout.columns[j].cells = newCollection
    }if (redrawWidgets) {
    prism.activeDashboard.$dashboard.updateDashboard(prism.activeDashboard, 'layout');
    prism.activeDashboard.widgets.$$widgets.forEach(function(widget) {
    widget.redraw()
    })
    }
    0
    Comment actions Permalink

Please sign in to leave a comment.