Add Widget Script Indicator

Comments

13 comments

  • Avatar
    Movile Service

    Very nice!

    But nowadays the Text widget does not have an edit button, but it is possible to add script into it. So we need to discover it´s widgetId in order to chenge the script. It would be very nice if scriptIconIndicator works with Text Widgets.

    0
    Comment actions Permalink
  • Avatar
    Julien Laroche

    Hi David, I was debugging another plugin with Lidor Rosencovich and he realized that the Widget Script Indicator plugin was generating some unwanted errors in the console when buttonObj is undefined. He added a condition to check if buttonObj is defined to get rid of all the errors. So it's fixed on our version, but would you mind to fix the official plugin also? Thanks

    0
    Comment actions Permalink
  • Avatar
    Oxana Noa Umansky (Edited )

    Hi Julien,

    Thanks for following up on this and sending over the fixed version!

    Just wanted to make sure that anyone who reads the comments in the future knows that the current plugin version is the most up to date. 

    Oxana

     

    0
    Comment actions Permalink
  • Avatar
    Aviv Avidan

    is it possible to enable the icon also when there's no script in it? so when I click it I can edit the script right ahead without entering the widget edit page.

    0
    Comment actions Permalink
  • Avatar
    Michael Becker

    Hi Aviv,

     

    There is a plugin which moved edit script button to the dashboard level menu. I can't find it now, but there was something like that on the community. Maybe Oxana could help on locating it? :)

    0
    Comment actions Permalink
  • Avatar
    Sam Ovenshine

    @Aviv, if you look at the plugin script (scriptIndicator.js), here are lines 29-30:

    // Check if the widget has a script and that the user is not a viewer
    if (args.widget.script && !args.widget.dashboard.userAuth.base.isConsumer){

    You would need to remove the first condition, save the file, and restart IIS.

    0
    Comment actions Permalink
  • Avatar
    Aviv Avidan

    thanks @Sam, it worked 

    0
    Comment actions Permalink
  • Avatar
    Lee Herman

    Has anyone tried this in v7? I installed it, restarted iis. No icons are visible.

    -1
    Comment actions Permalink
  • Avatar
    Lee Herman

    Ah, it only appears when there's a script. Duh.

    -1
    Comment actions Permalink
  • Avatar
    Jim Thomas

    Is it possible that this plugin is not working for v7.2?  It doesn't seem to be working for me.  Also I have been using the AddEditScriptToWidgetDashboardMenu plugin for several years, but it has disappeared from the Plugins list.

    0
    Comment actions Permalink
  • Avatar
    Jeremy Naiden

    Hi David,

    It appears that this is hosted on your Google drive.  Would you mind granting access, please?

    Thanks!

    0
    Comment actions Permalink
  • Avatar
    Sandy Ward

    Hi - I downloaded for V7.2 and it does not seem to be working - no icons are visible where there are widget scripts.

    thanks for any help you can give-

    Sandy

    0
    Comment actions Permalink
  • Avatar
    Ted Whalen

    Does anyone know if this Plugin works with Sisense version 7.4.x? I cannot get this plugin to work on 7.4.x.

    0
    Comment actions Permalink

Please sign in to leave a comment.