Table Sum Function Not Functioning when "Allow Scroll Bars" is enabled w/ "Keep Header Visible" enabled

  • 1
  • Problem
  • Updated 2 months ago
  • Acknowledged
Photo of mB Pat Vachon

mB Pat Vachon, Champion

  • 42,804 Points 20k badge 2x thumb

Posted 3 months ago

  • 1
Photo of Luzie Baumgart

Luzie Baumgart, Official Rep

  • 1,618 Points 1k badge 2x thumb
This issue is currently under investigation.
Photo of Luzie Baumgart

Luzie Baumgart, Official Rep

  • 1,618 Points 1k badge 2x thumb
During the investigation, Pat and we could find out together that the core issue here was that the SUMs in the footer are not updated automatically if you edit any value. This is a product defect that only happened when "Allow scrollbars" and "Keep header visible" were enabled. There are some interactions that lead to an update of the SUMs, however they are not a solution or workaround, rather FYI. The SUM in the floating footer updates for unsaved values only if one of the following is true:

- the changes are saved
- or the window size changes
- or you scroll down to the bottom of the table
- or the whole table is visible on the page (without scrolling)

This issue has been reported to our development team in order to be fixed on a future version. Until then, you can use the following workaround:

1) Add an In-Line Snippet, it only contains one line: skuid.$(window).resize();
2) Add a model action (to the model that is used in the table). Initiating event of the action is "Row in model updated" (any field) and the action is "Run a Skuid JavaScript Snippet". Select the snippet from step (1).

So any time a field is edited, the snippet will run and changes the browser size, what forces the table to update. The workaround is invisible on the page because the window is not resized to a different size.