The Smart Label

Comments

105 comments

  • Avatar
    Jim Thomas

    Evgeni,

    Don't see an upload capability here.  Guessed at your email, but it bounced.  I'm using the updated version you posted that supports dependent filters.  I will add to the ticket (#39376) and ask them to forward to you.

    Regards, Jim

    0
    Comment actions Permalink
  • Avatar
    Evgeni Rovinsky (Edited )

    Jim,

    If it's the latest version that fails after updating, I will have to investigate it and find the reason.

    The name of the plugin is the same.

    I will check on 6.5 -> 6.6 and get back to you.

    0
    Comment actions Permalink
  • Avatar
    Brian Wilson (Edited )

    I'm also having an issue with the smart label + dashboard dependent filter. I've tried the May 23 2017 version and the June 8 2017 version.

     

    Selecting Display Only First shows the first value for both levels of the filter. Display All shows ALL values for both levels of the filter.

    So if I select Europe > England + Scotland + Wales (3 checkboxes selected out of all countries of Europe available), I either show:

    Display Only First: Continents: Europe Countries: Albania

    or

    Display All: Continents: Europe, North America, South America, Asia, Australia, Antartica Countries: Albania, Armenia, Argentina, Australia... etc. etc....

    0
    Comment actions Permalink
  • Avatar
    Sanjoy Ghosh

    Displaying data in "Smart Label" in chronological order referred in the screenshot attached below highlighted in red.
    .
    For eg: It should display as PY8,PY9,PY10 etc in smart Label widget (named as "Period" in screenshot) but now it is displaying as PY10,PY11,PY12,PY8,PY9.


    Please suggest a solution.

     

    0
    Comment actions Permalink
  • Avatar
    JJ Chritton (Edited )

    Hide title bar also doesn't work with smart label widget.

    Update: see this post on the "hide titles" plugin for an additional script that is required to make it possible to hide titles for the smart label plugin:

    https://support.sisense.com/hc/en-us/community/posts/221225888/comments/360000402593

    0
    Comment actions Permalink
  • Avatar
    Ariel Hayoun

    Hi.

    Is there a script which could change the Smart Label visual properties (color, background color etc..) based on the value it displays (meaning using some value based condition) ?

    0
    Comment actions Permalink
  • Avatar
    Duncan Wakefield

    If the Smart Label has an error you cannot edit or delete the widget.  For example, I changed the name of the field being used in the Elasticube which produced the error and neither the edit button works, or the drop down menu.

    The only way to edit is to find the widget id, edit another widget on the dashboard and replace the widget id in the URL.

    0
    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
    Megan Moss

    I've been wondering this too, Maxim!

    0
    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
    Hugo Cabello

    Hi, based on latest update we can change the background color and font color but seems like this option is not available on version 7.1 ? !

    0
    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
    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
    Megan Moss

    I'm trying to download the current version of this from the link above, but it's taking me to a google drive and saying I'm denied access. Is the download link on the plugins list page the same version? 

    0
    Comment actions Permalink
  • Avatar
    Sarathy Ganesan

    In Date filter, if we select one or multiple dates from list, it displays fine in Smart Label. But, when we select dates Calendar view, Smart Label shows blank. is there any work around for that or fix?

    0
    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
    JJ Chritton

    I have actually been noticing the same thing as Shalini, that occassionally the smart label widgets throw yellow <!> errors that say something about widget is not registered as well. I haven't been able to track down why the errors are so intermittent either. 

    0
    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
    David Burke

    @Ravid

    Thank you sir. BloX looks great. Not on 7.2 yet but can't wait to play with that.

     

     

    0
    Comment actions Permalink
  • Avatar
    Ravid Paldi

    @David, 

     

    You are welcome. 

    There is a way to install it as a plugin on earlier versions if you'll touch base with your CSM but I wouldn't recommend it for versions that are earlier then Sisense 6.7

     

    With the above in mind, you have it on Sisense 7.2, but you need to install it first. You have explanations in the Technical tab

     

    Cheers,

    Ravid

    0
    Comment actions Permalink
  • Avatar
    Ravi Verma

    Hi,

    I downloaded the plugin and follow the steps but not able to see anything like smart labels.

    Do I need to update something at cube level. Can anyone please help.

     

    Thanks

    0
    Comment actions Permalink
  • Avatar
    Michael Becker

    Hi Ravi,

    Smart Label is a stand alone widget, it won't add smart labels to any other widgets. It is like text label on dashboard which dynamically changes its' content. Hope it helps.

     

    Regards,

    Michał

    0
    Comment actions Permalink
  • Avatar
    Brian Wilson

    Following up on @JJ Chritton above,

    Is it possible to bold the category labels?

     

    Country: Albania, Argentina, Bolivia

    0
    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

    Thanks Jim. That script will bold everything, however. I'd like to just bold the field name.

    It looks like the class is SmartLabelRowTitle, but I'm unsure of the syntax.

    0
    Comment actions Permalink
  • Avatar
    Jim Thomas

    Brian,

    In editing the elements in the browser, I was able to style just the Category label using the smartLabelRow tag, but I was not able to translate that to the widget script successfully.  I suggest you put in a ticket saying you need to style that tag and see if Support will provide the script.

    Sorry, Jim

    0
    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
    Jim Thomas

    Brian,

    Thanks for letting me know.  I will file this script for future use.

    Regards, Jim

    0
    Comment actions Permalink

Please sign in to leave a comment.