Hi,
I’ve made a custom widget with mapped columns so that I’m not dependent on how people names their columns.
But then I don’t know how to insert data back into that table with the mapped columns.
The method I’m using to insert data is
grist.selectedTable.create({
fields: {
Name: data.name,
City: data.city,
},
});
but Name and City which are referenced in the fields object refer to the Table columns and not the widget mapped columns.
How to avoid this dependency and use my mapped columns?
Cheers!