How do custom field renderers affect mass actions in tables?
We have one conditionally rendering fields as read-only in a table, but when you go to run a mass update, the field is set as read-only, regardless of which records you have selected.
From what I can tell, it appears it’s checking the condition for only one of the records & applying that to the renderer. Can anyone shed more light on how custom field renderers interact with mass actions in tables?
Thanks!
-Pat
Page 1 / 1
Mass Update only lets you edit fields that are NOT marked as “Read Only” from the Page Composer.
Mass Update will run your Custom Field Renderers, but in “context” of a generic row that, in general, does not have any field values pre-populated.
Currently the best approach for these circumstances is to run slightly different code logic in case your field renderer is being used by mass-update.
One way you can check whether your field renderer is being run by Mass Update is this:
var inMassUpdateContext = !field.model.id;<br>if (inMassUpdateContext) {<br> // Do something<br>}
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.