Skip to main content
Nintex Community Menu Bar
Question

Unable to change a table's mode dynamically through code

  • July 10, 2024
  • 2 replies
  • 0 views
  • Translate

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


Did this topic help you find an answer to your question?

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});






Translate

Forum|alt.badge.img+4

Worked like a charm, thank you!

Translate

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings