The Smart Label

Comments

103 comments

  • Official comment
    Avatar
    Camille Desrochers (Edited )

    This plug in works on Version: L8.0.5.156. Only drop the plug in folder contained in the download folder into the plug ins folder in Sisense.

    Comment actions Permalink
  • Avatar
    David Burke (Edited )

    Dynamic dashboard title??

     

    I'm trying to create a dashboard title that is dynamic, for example "Dave's Dashboard" or "Mary's Dashboard" based on the user running it (that's just an example.)

     

    I haven't seen this plugin used in that way. Does anyone know if it's possible or if there is alternate code to do it?

     

    Thank you!

    2
    Comment actions Permalink
  • Avatar
    David Burke (Edited )

    Can smart labels be used within existing widgets? For example (see screenshot), rather than writing "Last Month" and "Prior Month" in an indicator widget, I'd love to simply write "October" and "September" based dynamically on the report run date. I'm guessing I can pull the run date from session variables but even if so, not sure how I could overwrite the values titles. Thanks in advance! 

     

     

    2
    Comment actions Permalink
  • Avatar
    Ravid Paldi

    @David Burke

     

    You can't use the smart label within other widgets BUT:

    - If you want to have a smart label above a KPI widget that says the current month - you can hack it via the Cube by simply creating a dummy custom table with one field and one value that's equal to today's month and then use it in the Smart Label

    - OR, Sisense released a really cool widget that's called BloX, perfect for KPIs and spot on to what you're looking to achieve. Open the link below to read more

    https://www.sisense.com/marketplace/blox-widgets/

     

    Feel free to touch base if you need some help (: 

    2
    Comment actions Permalink
  • Avatar
    Sergey Borodich

    @Avi, all files are there, but I still get this error, tried restarting IIS - no luck.

    Is there anything I can do to "reregister" it?

    Thanks!

    1
    Comment actions Permalink
  • Avatar
    Nick Bernini

    Using Sisense 6.4 and this plugin is working fine.  However, if I have 2 filters on the dashboard and one is dependent of another, then this widget shows no data.  Is it possible to have this plugin work for dependent filters as well?  Ultimately, my users will have a set of dependent filters like Brand->Category, and then a 3rd filter, say Month, that is not dependent.  We would like all 3 of these filters to be able to be displayed in the widget.

    1
    Comment actions Permalink
  • Avatar
    Malinda Jepsen

    As an update to my leading comma issue:  I was able to figure it out.  I had more than one row returning data for that SmartLabel.  Once I added a filter to it to ensure it would only display one value, the comma disappeared.  

    1
    Comment actions Permalink
  • Avatar
    Maxim Havva

    Dear all,

    How can we limit the number of values displayed by this plugin?

    The use case is: As long as a dashboard-level filter set to display one or few items - it just works fine;

    Once a user (possibly, unconsciously or by accident) hits "select all" - the plugin returns ALL values - which is entire column and it will cause a huge query (entire column) - will freeze the dashboard for a long while

    Dow do I eliminate this usecase/scenario?

    Is that any patch that can limit number of selected items?

    Thank you!

    1
    Comment actions Permalink
  • Avatar
    JJ Chritton

    I've downloaded the newest version of the Smart Label plugin from 8/13 and it seems like the previous update from 4/27/2016 where the plugin is supposed to display "ALL" if the filter is set to include all does not work. Instead, I always see the full list of items in the list. I am on version 7.1 but I believe the "All" functionality didn't work on 6.7 either. I would use this widget a lot more if the "All" selected functionality actually worked correctly. 

    Another QA note: when editing the widget, the list of values is actually labeled "test" instead of "Values".

    Minor formatting request: I want to be able to make the category name bold or something so that it's easier to see the distinction between the category name and the selected values. It also helps draw the user's eye to this information, which is usually important for understanding what data they are looking at.

    Ex. Selected Group: Northern Region, Southern Region

    1
    Comment actions Permalink
  • Avatar
    Oksana Partridge

    The Smart label format change causing the print to pdf error "Something went wrong..." pops up.  Is there a way to fix it?

     

    1
    Comment actions Permalink
  • Avatar
    Kirk Peterson (Edited )

    EDIT: 

    I found a better way:

    widget.on('initialized', function(w){
          w.title = prism.user.firstName + ' yay';
    });

    ORIGINAL COMMENT:

    David,

    You could add a widget script like:

    jQuery.get('/api/users/loggedIn',function(user){
           prism.activeWidget.title= user.firstName + ' custom text';
    });

    Check out the network tab of the console to see everything returned from /users/loggedIn

    1
    Comment actions Permalink
  • Avatar
    Shalini Gopalakrishnan

    Hi @Hila Kantor, can I get access to download the latest version of smart label? The one at the link : https://support.sisense.com/hc/article_attachments/115015548547/smartLabelWidget_08Jun17.zip gives me an error saying " widget is not registered". This error is intermittent.

    1
    Comment actions Permalink
  • Avatar
    Jim Thomas

    Brian,

    The script below will allow you to format multiple elements of the SmartLabel.  Just comment out or remove the tags you don't need.  I hope it is helpful.

    //FORMAT SMARTLABEL

    widget.on('ready', function(se, ev){

    $(element).css('background-color','#CE1127');//changes the widget's background

    $(element).css('color','#3a77d8'); //text color

    $(element).css('font-weight','bold'); //font style

    $('widget-header' ,element.parent()).css('background-color','#CE1127'); //changes the widget's title background

    })

     

    Regards,  Jim Thomas

    1
    Comment actions Permalink
  • Avatar
    Brian Wilson (Edited )

    Thanks Jim

    Closing the loop, Katie was able to update the script for me:

    /* Bolds the category label in SmartLabel Widget */
    widget.on('ready', function(se, ev){
    $('span.smartLabelRowTitle',element).css('font-weight','bold'); //font style
    })

    Also, I wanted to add leading between the categories but not between lines (i.e. create paragraphs, not just double-space. This let me do that:

    $('div.smartLabelRow',element).css('margin-bottom','14px'); 
    1
    Comment actions Permalink
  • Avatar
    Jessica Orlando

    Any update on the widget not downloading to PDF and causing an error? This is frustrating when users want to download their dashboards to PDF

    1
    Comment actions Permalink
  • Avatar
    Sinu Joseph

    is it possible to add a bg image instead of giving color

    0
    Comment actions Permalink
  • Avatar
    Nicole Blake Tran

    When will the capability to format the text become available for users?

     

    0
    Comment actions Permalink
  • Avatar
    Boaz Farkash

    A built-in text widget will be available in 5.7.5 (March).

    0
    Comment actions Permalink
  • Avatar
    Stefan

    Hi Boaz, does this also apply for the text widget? Now I have only 5 text styles to choose from. 

    Is it than possible to customize your text in size, colour and font?

    Thanks

    0
    Comment actions Permalink
  • Avatar
    Boaz Farkash

    Hi Stefan, It will be possible to change text colors and background colors, but fonts and font sizes will be limited to a predefined list to choose from.

    0
    Comment actions Permalink
  • Avatar
    Sinu Joseph

    Hi Stefan.... Try the following code

    widget.on('ready', function(se, ev){
    $(element).css('background-color','#CE1127');//changes the widget's background
    $(element).css('color','white'); //text color
    $(element).css('font-weight','bold'); //font style
    $('widget-header' ,element.parent()).css('background-color','#CE1127'); //changes the widget's title background
    })

    0
    Comment actions Permalink
  • Avatar
    Alon Ahronberg

    Plugin updated to allow visible title

     

     

    0
    Comment actions Permalink
  • Avatar
    clickdashboard

    Thanks guys! 

    0
    Comment actions Permalink
  • Avatar
    Simon

    Can you please add this feature to your new text widget?

    0
    Comment actions Permalink
  • Avatar
    Malinda Jepsen

    Does this no longer work in 5.8.2.15?  I was trying to use the text widget, but it doesn't work to add data from the cube does it?  Isn't it just static text?

    0
    Comment actions Permalink
  • Avatar
    Evan York

    Is it possible to format dates through custom javascript?  It seems that the date formatting option doesn't work with this plugin.




    sisense_smartlabel_format.png
    0
    Comment actions Permalink
  • Avatar
    Vinod Rajasekaran

    This does not seem to work as compared to the older plugin from last year. We always get a blank widget. - We are on release 6.0.

    Any ideas ?

    0
    Comment actions Permalink
  • Avatar
    Mohana S

    Is there any way to have jump to option work from smart label?

    0
    Comment actions Permalink
  • Avatar
    Takashi Binns

    @Evan, Please download the latest version, I've added support for formatting to get passed through

    @Mohana, Currently the jump to dashboard plugin does not support the Smart Label.  This would require a change with the Jump To Plugin

    Thanks,

    -Takashi

    0
    Comment actions Permalink
  • Avatar
    Si Sense

    The latest version doesn't work for us in 6.2.0.336 either. We just get a blank widget.

    Chrome error console shows the following:

    common.js?g=gocoAodcg:47 error refreshing widget: 'Respondent'. (inner exception: TypeError: Cannot read property 'dim' of undefined) - TypeError: Cannot read property 'dim' of undefined

    at .<anonymous> (http://p2-sisense-c001:8081/plugins/main.js:3468:29)
    at Function.ce.extend.each (http://p2-sisense-c001:8081/js/common.js?g=gocoAodcg:34:13423)
    at addFilters (http://p2-sisense-c001:8081/plugins/main.js:3465:7)
    at Object.prism.registerWidget.data.buildQuery (http://p2-sisense-c001:8081/plugins/main.js:3539:4)
    at buildWidgetQuery (http://p2-sisense-c001:8081/js/app-main.js?g=gocoAodcg:177:9081)
    at execute (http://p2-sisense-c001:8081/js/app-main.js?g=gocoAodcg:177:9905)
    at http://p2-sisense-c001:8081/js/app-main.js?g=gocoAodcg:6:6529
    at Object.o [as forEach] (http://p2-sisense-c001:8081/js/common.js?g=gocoAodcg:6:788)
    at refresh (http://p2-sisense-c001:8081/js/app-main.js?g=gocoAodcg:6:6495)

     

    0
    Comment actions Permalink

Please sign in to leave a comment.