Skip to main content
Nintex Community Menu Bar
Question

Unable to change a table's mode dynamically through code

  • July 10, 2024
  • 2 replies
  • 10 views

Forum|alt.badge.img+4

Hi,

I’m attempting to dynamically re-render a ‘readonly’ table in ‘edit’ mode using code. I’ve referenced the following support thread when writing my code: https://community.skuid.com/t/how-to-make-a-table-component-read-only-dynamically.

Here’s the code I’m using on my page:

var table = skuid.$(‘.myTableClass.nx-skootable:visible’).data(‘object’);
table.mode = ‘edit’;
table.list.render({doNotCache:true});


The table is re-rendered, however it will not change to edit mode (or vice-versa if I set it up the other way).

Thanks for the help!

Kartik


2 replies

Forum|alt.badge.img+11

Try this:

var table = skuid.$('.myTableClass.nx-skootable:visible').data('object');<br>table.list.mode = 'edit';<br>table.list.render({doNotCache:true});







Forum|alt.badge.img+4

Worked like a charm, thank you!