chart back button has actions

Jack Sanford
Jack Sanford San Antonio, TX ๐Ÿ’Ž๐Ÿ’Ž
edited June 25, 2020 in Ideas
This is a question but I think it's an idea too.

We have a chart and a table showing similar data a bunch of records with category and subcategory fields. The chart has columns with number of records per category, and the table shows all the records. When you click a column it drills down to a chart of all the records for that category grouped by subcategory. It also filters the table.ย 

We now need to figure out how to get the table to filter yet again when the Back button is pressed, or rather to un-filter. When you click Back, table stays to where it's just showing records from one category instead of again showing all records from all categories.ย 

I think we could do this if we reworked our chart and table to use the same model, but is there another way? If not, I'm proposing an idea to Add Actions to Chart Back Button.ย 
5 votes

Awaiting Review ยท Last Updated


  • Linus Twizell
    edited December 6, 2016

    I agree this is sorely needed!

    I get round the issue by having a beforerender snippet on the first chart that unsets the condition on the table model and requeries it - so when you click back from the second chart it gets executed.

    var params = arguments[0], $ = skuid.$;
    ย  ย  var tableModel = skuid.model.getModel('TableModelName');
    ย  ย  var tableCondition = tableModel.getConditionByName('TableFilterConditionName');
    ย  ย  tableModel.deactivateCondition(tableCondition);
    ย  ย  tableModel.updateData();

    Hope this helps,
  • Pat Vachon
    Pat Vachon ๐Ÿ’Ž๐Ÿ’Ž๐Ÿ’Ž
    edited June 25, 2020
    Just came across this requirement with a client. Simple use of displaying records table below chart and drilling into chart using action framework further filters table.
  • Jack Sanford
    Jack Sanford San Antonio, TX ๐Ÿ’Ž๐Ÿ’Ž
    edited June 7, 2019
    beforeRender snippets work great at this, until you start loading page includes elsewhere and all your charts refresh.

    my new favorite workaround is to avoid using chart sets and instead just have multiple standalone charts, with actions on the series to populate a ui field to render the right chart.ย 

    Then you get to add your own back button!!
  • Arne-Per Heurberg
    Arne-Per Heurberg โœญโœญโœญโœญ
    edited June 7, 2019
    you can also override the back button which is just Highcharts anyway. Though you need to add logic to track where you are in the chart tree. lol
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!