I try to update a choice list with the plugin API (custom widget).
My Choice list is called “Position” with elements from “1” … “81”.
I try to update the list like so (and various other tries i do not show here…):
await grist.selectedTable.updateRecords({"Position": ["1", "2"]},[1])
I expect to see now two elements in the choice list 1 and 2.
But what happens instead is i just see “1” but in red, so i guess its not a choice list value.
Any idea how to update a choice list with the plugin api?
Another question, where is the plugin api documented? I do not find any documentation about the updateRecords
but i see (at least some) documentation about the update
endpoint, unfortunately i cannot get update
to do anything at all…