Editor: Create new rows from data in an existing row
Editor: Create new rows from data in an existing row
Can Editor allow new rows to be created, populated with an existing row?
e.g. a user wants to copy an existing row 10 times and change just one column in each newly copied row (because the other data is common), how can this be done?
e.g. a user wants to copy an existing row 10 times and change just one column in each newly copied row (because the other data is common), how can this be done?
This discussion has been closed.
Replies
1. Use the API from DataTables to get the values of each field and use Editor's 'set' method to set the value based on your template row. Then call 'submit' to submit the value.
2. Similar to 1, but call 'edit' on a row with Editor and then use the 'get' method to get the value of each option (without showing the edit form visually) and use that information to populate a 'create' call which will be submitted to the server.
Hope that helps!
Regards,
Allan