Sorting table results in uncaught exception

  • 1
  • Problem
  • Updated 3 years ago
  • Solved
Hello -

Encountering an unhandled exception when sorting a table.  The scenario that exposes this is when a row in the table has been edited and then you try to click the sort arrow.  As soon as a edit is detected, skuid disables filter buttons, search box and the arrow div but the event listener is still attached.

Error: Uncaught Model '<modelname>' has unsaved changes. To update this model's data, you must first save or cancel the changes.

Steps to Reproduce:

1) Create tab page (stock page) for Account leaving all defaults
2) Edit a row's "Account Name" field value - Search area & order arrow icons will "dim"
3) Click the Account Name sort arrow

Actual Result:
Uncaught Model exception

Expected Result:
Nothing happens :)  Debatable if arrows should be hidden rather than disabled since the user might not notice the "dim" effect and will click it anyway.  At a minimum, event listener should be unattached or check to see if span is disabled before requery.

Thanks!
Photo of Barry Schnell

Barry Schnell, Champion

  • 18,076 Points 10k badge 2x thumb

Posted 3 years ago

  • 1
Photo of Zach McElrath

Zach McElrath, Employee

  • 49,004 Points 20k badge 2x thumb
Official Response
This has been fixed as of Superbank Patch 9, now available on Skuid Releases.