I'm using DocumentField.createEnumeratedField for some document fields in my plugin. This is working fine, but now I want to change the allowed values for that field, and I can't get that to work.
I create the field on startup of Geneious and I can see that the new values are correctly displayed when calling getEnumerationValues(). But they are not shown in the combo box of the GUI. The same happens when I try to get the DocumentField specifically from one document (via getDisplayableFields()), then call setEnumerationValues() on the field and saveDocument on the document.
How do I update the possible values on an enumerated field for all existing documents?
Thanks in advance,
Please sign in to leave a comment.