Adding Logo/Image to a dashboard

Comments

74 comments

  • Avatar
    Philip Lima

    Problem solved. You need to make sure the folder is named just "imageWidget" since there is a hard-coded reference to the folder name in the widget. In the current version that is posted, the folder is named "imageWidget_05_13_2016"

    Once you unzip this and place it in the plugins folder, remove the date portion of the folder name "_05_13_2016" and you'll be all set.

    1
    Comment actions Permalink
  • Avatar
    Karen Stanton

    I have set up the imageWidget as per this thread and it is visible when I export the dashboard to PDF however it is not visible on the interactive dashboard. 

    Any recommendations to 'fix' this would be greatly appreciated. 

     

    0
    Comment actions Permalink
  • Avatar
    Avi Tavdi

    Hi Karen,

    What do you see on the dashboard? empty widget? can you upload an image?

    In addition can you please open the developer tool (F12 on chrome) and see if there are any errors on the console tab?

     

    Thanks!

    0
    Comment actions Permalink
  • Avatar
    Nick Burleigh

    Hi,

    I have been using this plugin successfully for about 6 months now. Just noticed that there was a new version that included an option to add a link to the image, which would be great for our use-case. I removed the old version, downloaded the new version (the one currently posted in the main section above), added to plugins folder and reset IIS. I still don't see a box for a URL in the Design section (it looks just like the old version), and now my image isn't working (shows broken image icon, even though the image shows up in a browser).

    I even re-named the unzipped file back to imageWidget from ImageWidget (de-capitalized the leading 'i'). Still nothing.

    Also, I think someone needs to check to make sure that the version posted above is indeed the latest version. All the files in that folder are timestamped March 29, 2016.

    (See attached screenshots.)

    Thanks!


    0
    Comment actions Permalink
  • Avatar
    Sai Katare

    Hi,

     

    I am facing issues when fetching an image from the local desktop.

    It shows a broken image when the Link of image is provided. How to fetch images from local system.

    Request your immediate assistance to sort this issue.

     

    0
    Comment actions Permalink
  • Avatar
    Oxana Noa Umansky

    Hi Sai,

    I've created a ticket for this post, so that our support team can investigate it further. 

    Please note, you can track the progress of your tickets by visiting the "My Activities" page under your profile.  

    Thanks,

    0
    Comment actions Permalink
  • Avatar
    Yoni Lerner

    Hi Sai,

    Sisense uses Prismweb directory as a "Home page" meaning that if you wish to get a file from there like in your case the path you need is only \webimages\name of file

    I Prefer to put all images in the Resources\Images folder I created so it will look like this

    Hope that helps.

    1
    Comment actions Permalink
  • Avatar
    Jim Thomas

    I need to reduce the image widget height below what is allowed.  Is there an easy script to do this?

    0
    Comment actions Permalink
  • Avatar
    Yoni Lerner

    Hi Jim,

    the easiest is to resize the image with any image editor program  

    0
    Comment actions Permalink
  • Avatar
    Yoni Lerner

    Hi Guys,

     

    If you wish the image will be clickable and open on a new tab instead of the current one, please follow the following:

    1. Add an image and a value in the url

    2. open the widget edit script and add the following script - change the URL to your preference.

    var link="http://www.cnn.com"



    widget.on('ready', function(w, args){


     $(".image-link", element).attr("href",link);


     $(".image-link", element).attr("target", "_blank");


    });

    3. Save

     

    0
    Comment actions Permalink
  • Avatar
    James Matthiesen

    Hi all,

    Are there any image constraints for the Image Widget plugin? Either in file-type or size?

    I looked around in the documentation, but perhaps I have missed something.

    Thanks,

    0
    Comment actions Permalink
  • Avatar
    Xavier Donnelly

    So, I've been following the directions in this KB article to create some custom navigation using the imageWidget: https://support.sisense.com/hc/en-us/articles/230651628-Custom-Navigation-Homepage-with-applied-scope

    This article seems to use a previous version of the widget because it required custom Javascript code for each widget to have it link to a dashboard. With this latest version of the imageWidget, the url for each widget is entered in the design section directly, and it works.

    The problem is, the previous version allowed the javascript code to grab all the filters on the current dashboard and append them to the url for the dashboard you're clicking through to. The new version does not allow that. Or, at least I can't figure out how to modify the javascript code to append the "?filter=" JAQL to the url pasted into the design section for the widget:

    The sample Javascript code from the KB article reads like this:

    widget.on('ready', function() {
    	
    	    $(element).on("click", function() {
            
    		var filters = [];
    
            widget.dashboard.filters.flatten().forEach(function (f) { filters.push({ jaql: $$.object.clone(f.jaql, true) }); }); // get dashboard filters
            widget.metadata.filters().forEach(function (f) { filters.push({ jaql: $$.object.clone(f.jaql, true) }); }); // get widget filters
    			
    		var productDashboardId = "54bd793d42c8365426000022"; // target dashboard id
    			
            window.location = "/app/main#/dashboards/"+productDashboardId + "?filter=" + encodeURIComponent(JSON.stringify(filters));
        });
    })


    Can I change it so the dashboard and widget filters are passed through the image's url to the underlying dashboard?

    0
    Comment actions Permalink
  • Avatar
    Eric Pouliot

    Hi,

    Hoping someone can respond to Xavier's previous question.

    I'm trying do something similar where I want the URL of of the image to display an image dynamically, based on a dashboard single-select filter.

    Example, I have 3 companies, and based on the company selected, that company's logo appears on the dashboard. The name of the image file = the company name value in the filter.

    Alternatively, I could store the image URLs in the elasticube, and if the image widget's left panel would allow you to add a field and select the first value in that set, that would be even better.

    Please advise.

    Thanks!

    0
    Comment actions Permalink
  • Avatar
    Michael Becker

    Hi Eric,

     

    i think that this might be an answer- https://support.sisense.com/hc/en-us/community/posts/221224848-iFrame-Widget- . If you have images in web format, you could use iframe widget to embed them in your dashboard instead of this plugin. In iframe widget you have the ability to set link dynamically through filters selection. Hope it helps.

    Regards,

    Michał

    0
    Comment actions Permalink
  • Avatar
    Eric Pouliot

    Hey Michael,

    Thanks very much for responding to this thread. This is very helpful and although I'd prefer using the image plugin, the Iframe plugin is working for me.

     

    On a related note, if ever you want to connect and compare notes regarding our respective Sisense implementations, I'd love to. I asked Sisense to connect us but they haven't to this point, based on your posts it appears we have some interesting common needs and challenges.

     

    Thanks!

    0
    Comment actions Permalink
  • Avatar
    Michael Becker

    Hi Eric,

    I'm more than happy to connect! I will write to Oxana if she can make an introduction.

    Regards,

    Michał

    0
    Comment actions Permalink
  • Avatar
    Oxana Noa Umansky

    Eric and Michael, happy to help!

    Please check your inboxes. 

    Thanks,

    Oxana

     

    0
    Comment actions Permalink
  • Avatar
    James Monnier

    The Image Widget will not function in the 7.1 version after we upgraded from 6.7. 

    I have downloaded and installed the plugin from this page and I receive the following error

     

    widget type:imageWidget is not registered

     

    Note: "ImageWidget" is also not an option on my list of widget types when I follow the instructions listed above. This worked flawlessly in our 6.7 deployment. 

     

    Does anyone have any ideas?

    Thank you - Jim

    0
    Comment actions Permalink
  • Avatar
    Christopher Tangora

    I saw something similar with our instance and had to remove the plugins, restart iis, re-add them and re-start iis.

    We were having multiple issues and after that everything started working correctly (in 7.0).

    0
    Comment actions Permalink
  • Avatar
    Alexandre Biton

    Hello all, 

     

    Anybody had trouble exporting pdf with the latest version of this plugin ? 

    Our organization can't export pdf with image widget anymore and neither iis reset nor installation repair is fixing this issue. Waiting for the next update. 

    PS : We are working with V7.1

    Thanks for your help. 

     

    Regards, 

     

    Alex. 

    1
    Comment actions Permalink
  • Avatar
    Alexandre Biton

    Hi there,

     

    I still have the same problem with the last version of this plugin. Any news ? Do I need to create a ticket ? 

     

    Regards, 

     

    Alex. 

    0
    Comment actions Permalink
  • Avatar
    Li Li

    Hi, All,

    I had this plugin working fine with 7.0, using IIS virtual directory as instructed by the 2nd comment of this thread. I just upgraded Sisense to the latest 7.2 a few days ago, and now the logo images are no longer showing. It appears NodeJS has changed the virtually directory behavior, as when I try to access the image address from a browser, it doesn't display the image, instead it displays "api not found". Any ideas?

    Thanks,
    -Li

    1
    Comment actions Permalink
  • Avatar
    Ronen Avidor

    Hi Li,

    With the release of 7.2, we are no longer using IIS. What you can do is put your image in the following directory C:\Program Files\Sisense\app\client\resources. for the image URL use something like this /resources/sisenselogo.png.

    I hope that this helps.

     

    Ronen

    0
    Comment actions Permalink
  • Avatar
    Erin Frazer (Edited )

    Hi Ronen, 

    Does that mean we have to re-link every picture in dashboards? We are having too many pictures. Is it any way that we don't have to do it again?

    And also, will the link work with sub-folder of 'resources' ?

    Thank you.

    2
    Comment actions Permalink
  • Avatar
    James Monnier

    Could we please have clarity to Ronen's question. Doing this to 150 dashboards is just not acceptable.

    0
    Comment actions Permalink
  • Avatar
    Roopa Raghavan

    broken image icon while using this plugin. We have Sisense version 7.2 and I have the plugin in Sisense/app/plugins folder and the images in Sisense/app/resources/Images folder.

    I have re-downloaded plugin, restarted IIS and my dashboard still won't display the image. It shows fine in the browser.

    Anyone else facing this issue? I'd appreciate any help or suggestion. Thanks!

    1
    Comment actions Permalink
  • Avatar
    James Monnier

    Did you try entering the path in the widget as /resources/imagename

     

    i.e. /resources/Logo1.jpg

    1
    Comment actions Permalink
  • Avatar
    Roopa Raghavan

    @James Monnier Thanks for your suggestion, I tried that too, still doesn't work. I put the image in the Images folder and also in the resources folder directly to test. Like I said, image shows up fine on the browser so my path is correct.

    These are all the paths I've tried so far - 

    http://<IP>/resources/Images/mypic.jpg

    http://<IP>/resources/mypic.jpg

    /resources/Images/mypic.jpg

    /resources/mypic.jpg

    Any other suggestions? Thanks again.

    0
    Comment actions Permalink
  • Avatar
    James Monnier

    Are you on 7.2.1 or 7.2?

    I had an issue with the addons not working correctly and was informed by Sisense support that it was a known issue with the release of 7.2 and that there was an update to resolve it. We are running now on 7.2.1.11002 and we have not had any issues since.

    hope this helps.

    0
    Comment actions Permalink
  • Avatar
    Roopa Raghavan

    James, thanks again for your input. We are running Version: 7.2.0.12014

    So this imageWidget was working just fine a couple weeks ago on the same version and its now, so I didn't even think of looking into the version. We do seem to be behind you on the version that we are running. I'm not sure if that can be the issue. Thanks for helping explore possibilities!

    0
    Comment actions Permalink

Please sign in to leave a comment.