I would like to store data in a document tag and allow users to view & modify the data using a perspective table. The table is bound to a custom property:
So far, I can get the table to display the data, but I can’t figure out how to write changes back to the tag. If I set the binding to “Bi-Directional”, values immediately revert if I try to change them.
I have also tried disabling the “Bi-Directional” option and creating a “Save” button to write back with a script. This seems the most promising, but I’m still having trouble.
This code works if I create a dictionary and write it to the document tag.
value = system.util.jsonEncode(str(dict)) system.tag.writeBlocking([path],[value])
But if I try to encode the bound property like this:
parValue = self.view.custom.object value = system.util.jsonEncode(str(parValue)) system.tag.writeBlocking([path],[value])
My memory tag gets a bad value:
Anyone have any ideas?