UI-only dynamic model and table in edit mode

Hi Mark, I’m sorry to see that your post remained without an answer and you probably figured out a resolution in the meantime. However, we checked your page and could find out that the fields in your dynamically created UI-only model don’t contain full metadata. That’s why you can’t address the field’s editability.
To check that, you can preview your page, open the browser console and enter the following line and hit enter:

skuid.model.map().mdlDynamic

Go to “fields” and open field details to see that it only contains the metadata that you set up in your JS: displaytype, id, and label.

If you would create a new UI-only model declaratively in the Skuid Page Composer, add a field, place a table on the page and check the browser console for the NewModel:

skuid.model.map().NewModel

You can see which metadata is usually available for UI-only fields, e.g. “editable: true”:

That said, we recommend to either create a UI only model declaratively in the Skuid Page Composer and use JS to populate the field values. That way you benefit from having all metadata available.
Or, if you need to create the UI-only model dynamically, we recommend to add the missing metadata to your JS “createDynamicModelAndTable”. Then you might not even need the second button + JS, because the field’s “editable” is “true” already.

I hope this is helpful for you.

Regards,
Luzie & team