The "Accordion" plugin

Comments

69 comments

  • Avatar
    Hila Kantor

    In order to change the color of the widget:

    1. go to: C:\Program Files\Sisense\PrismWeb\plugins\accordionPlugin\styles
    2. Edit the widget css file:
    3. Replace #187D7B with your desired color
      For example:

      (In the given example I used Notepad ++)
  • Avatar
    Stefan

    This plugin is really great!

    Is it possible to have the frame open on the side (Horizontaly) rather than at the bottom?

     

    Thanks!

  • Avatar
    Michal

    Hi

    Thanks for the plug in

    is it possible to change the size (height)  of the accordion?

    I tried to change in the css code but couldn't get to the right parameter

  • Avatar
    Hila Kantor

    Hi Michal,

    You can change the default height in the main.js file of the plugin:

  • Avatar
    Michael Becker

    Hi,

     

    is there a possibility to skip log in screen within accordion, or maybe I'm doing something wrong?

    Michał

  • Avatar
    Takashi Binns

    Hi Michael,

     

    If you are getting a login screen on the accordion, then its probably because the URL you are using to access the top level dashboard is different than the one used for the sub-dashboards.  For example, you might be building it on the local Sisense server and using localhost as your URL but the sub-dashboards are set to something like "dashboard.mycompany.com".  In order for authentication to get passed, you just have to make sure these URLs are the same.

  • Avatar
    Aviad Harell

    If anyone is having trouble getting the filters to work, you just need to make sure that dimension text matches the filters exactly.  A quick way to do this is to open up Chrome's javascript console and run the code below.  It will print out the exact dimension text for every filter on your dashboard.

    $.each(prism.activeDashboard.filters.$$items, function() { console.log(this.jaql.dim);})
    

     

     AccordionScript.png

  • Avatar
    Michael Becker

    Thanks Takashi, that was exactly the case!

  • Avatar
    Stefan

    Is there someone who can help me out with this one: Is it possible to have the i-frame open on the side (Horizontaly) rather than at the bottom (vertically)?

     

    Thanks!

  • Avatar
    Eli

    The plugin was updated:

    Sub dashboards that starts with the prefix '_accrd_' will be hidden for none owner users form the dashboards panel.

  • Avatar
    Sinu Joseph

    Hiding sub dashboards was an important feature... Thank you Mr. Solution Architect... :)

  • Avatar
    Michal

    Hi, I tried to hide the sub dashboards but it didn't work...

    I added the _accrd_to the dashboard name, now it looks like this: _accrd_CA

    but, the users can still see 

  • Avatar
    Joseph Peters

    Hi Michal, it may be that you need to replace your old plugin folder with the updated one.  This isn't something built into SiSense itself but rather part of the plug in code.  On a side note, if you already have a name format for your embedded dashboards you can edit the 'main' script to search for any string to hide the dashboards.  For instance, I was using 'EMB ' at the beginning of mine so I changed _accrd_ to 'EMB ' in the file and all my dashboards were hidden without having to change the name of each dashboard.

  • Avatar
    Vinod Rajasekaran

    I tried doing this but editing the script opens a blank page with the address base_url/app/scripteditor#/dashboards/551a119110ba3bbc1200023d/widgets/undefined. I see this happens with some other widgets too. Any  ideas if this is related to the plugin or something in my installation ?

  • Avatar
    Michael Becker

    Vinod,

    before you can edit script for a widget you must create it and click apply at least once so it is created in SiSense DB, this will allow editing script for that widget.

  • Avatar
    Hila Kantor

    Important note:

    Angular routing works with the "#" format for URLs. In Chrome, you can use either "page#/params" format, or "page/#/params" format, but in FF and IE only the second format works.

    So all you need to do, is add that forward slash to the url.

    So, if the accordion's url was "http://10.0.0.5/app/main#/dashboards/5523d58346707c3cb5000014"
    you need to change it to "http://10.0.0.5/app/main/#/dashboards/5523d58346707c3cb5000014"

  • Avatar
    Vinod Rajasekaran
    Would the accordion plugin work with the upcoming Text widget in release 5.7 ? This would make for really nice tabbed dashboard views with the sub dashboards hidden from users.
  • Avatar
    Michael Becker

    It won't for now since TextBox does not have ability to put JS behind it :(

  • Avatar
    clickdashboard

    Hi Hila. Thank you for sharing! I'd like to join Vinod for asking to have TextBox this feature as well. It's reasonable, since the Indicator already has a title which is relevant to it's value (for example: Indicator with title "Total Revenue" shows a number 3.93M). How can you 'hint' to the user, that he need to click on the Indicator? How can you 'hint' to the user,that Accordion dashboard will show "Revenue vs Units Sold" ?

    In addition, I noticed in the figures above, that the filters in "parent dashboard" (years 2012-2013) do not influence the popping up "Accordion dashboard" (show all years from 2010 to 2013). Is it by design? The expected (intuitive) behavior is that the selected filters will populate to the connected Accordions.

    Thank you in advance,

    Pavel from Click

  • Avatar
    Stefan

    Hi Hila,

    I agree with Pavel on the suggestion how you can 'hint' a user to click on something in general. For example an Indicator or an image or something else. Can you take this into account for a next update?

    What I would suggest and would like to see is, that if something is clickable you see a hand instead of an Arrow. The hand makes it clear that the user can click on something for example if you use the accordion plugin under an indicator.

     

    Hopefully you can work with this?

     

    Kr,

    Stefan

  • Avatar
    Joseph Peters

    Anyone have any ideas on how to embed one accordion dashboard within another?  We've tried this but the second embed doesn't appear to populate.  Wondering if there might be a change we can make to the plugin to allow this.

  • Avatar
    Konstantinos

    I have noticed that Accordion update has by default dependent results with sup-dashboard's filters. Is it any way to control this thing?

  • Avatar
    Michael Becker

    @Konstantinos - Step 4 in instruction. I believe you can specify non-existing filter and this way other filters wont affect sub-dashboards. Other way would be to edit main.js file, maybe editing var filters to empty would solve it but I'm not sure about that.

  • Avatar
    Konstantinos

    @Michal - Step 4 indicates how to use filters from sup-dashboard in your accordion. I have checked the main.js, but since my knowledge is limited in js i don't want to change anything there. The problem is that my accordions used to work perfectly before.

  • Avatar
    Stefan

    Hi Aviad,

    I have trouble getting the filters to work. You mention something about Chrome's javascript. This is kind a vague to me. I'm not a technical guy. Can you please show me step by step how to find and how I need to implement this in the Accordion in Sisense?

    KR,

    Stefan 

  • Avatar
    Michael Becker

    @Stefan,

    If you use Chrome (or any other browser) you can press F12 and at the bottom you'll see a browser console. Among the tabs at the top find 'Console' section, paste the code Aviad has provided and run it. You should get the list of filters for Dashboard you're currently displaying. Hope it helps

    Regards,

    Michał

  • Avatar
    Stefan

    @Michal: Thanks a lot!

  • Avatar
    Hila Kantor

    There's an issue with IE maximum query string length - IE limits maximum URL length to 2048. Therefore, when using this plugin in IE with many dashboard filters - it might not work. 

  • Avatar
    Joseph Peters

    Is there a way to change the code to allow this to work with a bar chart?

  • Avatar
    Nomava`

    hi guys

    my subdashboard dashboard is still showing even with the prefix '_accrd_'. I only started using this plugin today so maybe I'm doing something wrong.

    I've also read all the comments and suggestions but nothing works.

     




    accrd.png

Please sign in to leave a comment.