The "Accordion" plugin

Comments

74 comments

  • Avatar
    Hila Kantor

    Hi Nomava`,

    The _accrd_ should be added to the Dashboard name, not to the widget name.

    0
    Comment actions Permalink
  • Avatar
    Joseph Peters

    I can't get the filters to pass to the sub dashboard correctly.  I see that a lot of other users have similar issues and none of the recommended solutions have worked for me so far.

    I used the console to get the filter I want to apply [Vessel Table.Vessel Name] and added this to the javascript code.  I've tried formatting the text multiple ways: 

    filters: ['[Vessel Table.Vessel Name]'],

    filters: ["[Vessel Table.Vessel Name]"],

    filters: [Vessel Table.Vessel Name],

    but nothing has worked.  Is there an issue with table and field names that have spaces or am I just missing something?

     

    0
    Comment actions Permalink
  • Avatar
    Raj Grandhe

    I've updated this plugin to accept dashboard name, instead of Url. We have dashboards deployed in multiple environments and this update allows to configure the plugin based on dashboard name. The change is in main.js. The attachment contains all files including the updated main.js. I hope someone finds it useful. If there is a way to get this change officially - it will be great!

    Usage: (On the parent widget where you want to show the accordian):

    widget.on('ready', function(se, ev){
    Accordion({
    element: element,
    widget: widget,
    dashboard: dashboard,
    //filters: ['[<table name>.<table field>]'],
    default: false,
    dashboardName: '<name of the dashboard to show>. ex _accrd_test1'
    });
    })

     

     




    accordionPlugin_AcceptDashboardName.zip
    0
    Comment actions Permalink
  • Avatar
    Ilan Shichor

    Very helpful Raj, thanks so much!

    0
    Comment actions Permalink
  • Avatar
    Malinda Jepsen

    Perfect!  Thank you Raj!  I also hope that all "supported" plugins will be updated in this way!

    0
    Comment actions Permalink
  • Avatar
    Oleg Fil

    The plugin is updated with Raj's improvements to support dashboard name in the configuration.  Supported v6 and higher.

    0
    Comment actions Permalink
  • Avatar
    Joseph Peters

    I've had a hard time getting filters to work but I think I finally have some insight for other users.  As far as I can tell the filters line in the code should actually be a list of filters to exclude from the dashboard.  I was originally under the impression these were filters to include.

    Also you should only have one set of quotation marks in the first set of square brackets.  The example above shows quotes around each filter name but I couldn't get that to work.  

    Here is an example filter line which works for me:

    filters: ['[CN Combined.Segment],[CN Combined.Account Name]'],

    This will make it so the segment and account name filters don't affect the embedded dashboard but the rest of the dashboard filters will still apply.

    2
    Comment actions Permalink
  • Avatar
    Tim Coppola

    Is there a reason this only works with indicator widgets, rather than let's say a column chart?

    0
    Comment actions Permalink
  • Avatar
    Nick Burleigh

    Hi,

    I was wondering why the "Edit Widget" pencil icon gets eliminated from widgets in the accordion. Is there a way to keep that icon there, so that users can go into edit widget mode?

    Thanks!

    Nick

    0
    Comment actions Permalink
  • Avatar
    Mukhsin Fahmi

    Hi,


    Sometimes I need to shrink or enlarge the height of the iFrame to fit its contents, so I've added simple functionality to set custom height of the iFrame.


    the main.js:

    defaultHeight = params.height || 500;

     

    usage:

    Accordion({
    element: element,
    widget: widget,
    dashboard: dashboard,
    //filters: ['[<table name>.<table field>]'],
    default: false,
    dashboardUrl: 'http://' + location.host + '/app/main#/dashboards/586b083be5b5dab0130014cd',
    widgetFiltersInheritance: true,
    height: 350
    });

    I suggest to the Sisense forum developer to add functionality to add code wrapper to the comment like stackoverflow or just use markdown here.


     


    Thanks


     

    0
    Comment actions Permalink
  • Avatar
    Oxana Noa Umansky

    Hi Mukhsin Fahmi,

    Thanks for sharing this tip with us!

    With regards to the community platform recommendation, unfortunately, as of now, there is no code wrapper functionality in the comments section. We are working on improving the platform and I will be looking into adding this functionality in the future. 

    If you have any other feedback or ideas how we can improve the community platform, please don't hesitate to share with us in the Community Support forum.

    Thanks,

    Oxana

    0
    Comment actions Permalink
  • Avatar
    Oxana Noa Umansky

    Hi Mukhsin Fahmi,

    After digging deeper into the platform, I've found that this feature is available! 

    You can wrap the code (as I did with the code in your comment) by clicking on Paragraph Styles and then Code. Please see the image below. 

    Hope this helps.

    Thanks,

    Oxana

    0
    Comment actions Permalink
  • Avatar
    Mukhsin Fahmi

    Hi @Oxana,

     

    Great to hear that. I will post more, definitely.

     

    Thanks

    1
    Comment actions Permalink
  • Avatar
    Jayesh Vaswani

    I have implemented the accordion plugin and it just keeps spinning.  No dashboard is being shown.

    -1
    Comment actions Permalink
  • Avatar
    Jayesh Vaswani

    I got this issue resolved. I was giving the folder name in the URL once I removed it is working now. 

    1
    Comment actions Permalink
  • Avatar
    BI Reporting

    We were about to upgrade to V6.6 and found from release notes that Accordion plugin does not support sisense reports.Release Date: April 18, 2017.

    Could anyone verify if you have update plugin compatible to V6.6 version. Thanks!! 

    0
    Comment actions Permalink
  • Avatar
    Inbal

     Dear Sisense Analytics,

    The Accordion Add On is working well in V6.6

    Regards,

    0
    Comment actions Permalink
  • Avatar
    Ayanda Dube

    Good Day,

    Is there any way of making filters available in the sub-dashboard? That is, I want to have sub-dashboard filter that affects only those widgets in the dashboard.

    Thanks,

    Ayanda

    0
    Comment actions Permalink
  • Avatar
    Jim Thomas

    Can this be made to pass filter values to a sub dashboard built on a different ElastiCube?  I have the same table and column names between the two dashboards, but it doesn't seem to work.  I have used the filter check script to check the active filter values.  The table and column names are the same, but no joy.

    Thanks, Jim

    0
    Comment actions Permalink
  • Avatar
    Jim Thomas

    Can you provide some javascript to add to the widget script to add an icon to the widget title bar to indicate an accordion is available?  This would be similar to the functionality of the "jump to dashboard" plugin that adds an icon if a dashboard jump is configured.  Thanks, Jim

    0
    Comment actions Permalink
  • Avatar
    Michelle Mangion

    Hi,

    I definitely support Jim's proposal as it would be a useful and UX friendly having an icon on the widget to indicate that there is an accordion. Looking forward to an upgrade or some javascript widget script.

    Thank you.

    Michelle

    0
    Comment actions Permalink
  • Avatar
    Oxana Noa Umansky

    Hi Ayanda, Jim and Michelle,

    Thank you for your feedback. 

    I'll share your ideas with the team and we'll get back to you with more information.   

    0
    Comment actions Permalink
  • Avatar
    OJ Chakrabarti

    Hi

    I cannot seem to get the filters working on the accordion dashboard.

    I have an indicator widget which has two filters on it, I have an accordion which is working from the indicator widget but the indicator widget filters are not being passed to it.  The accordion dashboard is displaying all the data, I have no filters on the accordion dashboard as I want it to use the filters on the indicator widget.

    I am wondering if a jump to would be better?

    Any ideas?

    Thanks

    Lisa

    0
    Comment actions Permalink
  • Avatar
    Jim Thomas

    Lisa,

    You need filters on the Accordion dashboard for the values you are passing to apply against.  Try adding them to your accordion dashboard and see if that doesn't do it.

    Regards,  Jim Thomas

    0
    Comment actions Permalink
  • Avatar
    OJ Chakrabarti

    Hi Jim

    Thanks for the reply.

    Unfortunately not.  I have added the same filters on the accordion dashboard but the values are not being passed from the widget.

    I wonder if my understanding is incorrect.

    I have an indicator widget which is showing me total sales for a department.  I have build an accordion to show me the number of sales for each product line by department.  I expected the accordion to only show me sales for the product line for the department I have filtered on in the widget.

    I was hoping to have an indicator widget for each department (5 in total)  and use the same accordion dashboard so that when I display the accordion dashboard it would show me the sales by product line for which ever department I have filtered on in the widget.

    Back to the drawing board I think

    Lisa

    0
    Comment actions Permalink
  • Avatar
    Jim Thomas

    Lisa,

    I have used the Accordion a number of times with success, but always passing dashboard filters.  Never widget filters.  Someone from the Sisense team would need to answer whether widget filters function with it.  You might try adding one of your widget filters to the parent dashboard and see if that functions.  That will tell you whether you have the widget script configured correctly.

    Good Luck, Jim

    0
    Comment actions Permalink
  • Avatar
    Antonio Santos

    While the accordian prefixed objects are hidden in the web app, they are not hidden in the mobile. Is it possible to hide them on the mobile app to de-clutter the user experience for better adoption?

    0
    Comment actions Permalink
  • Avatar
    Jim Thomas

    We use the Accordion plugin extensively.  We have just discovered that the PDF export of dashboards calling the plugin generates an error that mentions the Accordion. See attached screenshot. This happens on all dashboards that utilize the accordion function. The dashboard does export with a manual export. However, I tested a scheduled emailed report and it failed.  The admin account got an email on the failure.

    Since we are in production, a quick fix for this would be greatly appreciated.

    0
    Comment actions Permalink
  • Avatar
    Malinda Jepsen

    Quick Question: do all of the widgets in all of the accordions load when the dashboard is loaded or do they load when the accordion is expanded?  Thanks!

    0
    Comment actions Permalink
  • Avatar
    Michael Becker

    Hi Malinda,

     

    Accordion loads up widgets when you click on it, it is not a visual trick like Tabber. So in general it saves loading time on larger dashboards.

    Regards,

    Michał

    0
    Comment actions Permalink

Please sign in to leave a comment.