I have a table "Categories" in a database, I would like each category to create a new section in the accordion. But it doesn't works.
I have tried to copy the structure of one section in custom, and then duplicate it with a script. But it duplicate a reference to the copy, not the copy itself, and when I change the parameter to my view the initial copy was changed too.
Bind Accordion.props.items against a Named Query which returns the categories as a list/set/array, and make sure to set the format of the binding to "json".
Now add this transform.
FWIW, this is expected behavior of Python/Jython when manipulating objects. If you wish to use such a "template" pattern in your code, whether for Perspective or elsewhere, your instances need to be deep copies of the template before they are updated with the per-instance customizations.
I've try with "copy.deepcopy()" but an exception is raised. I don't know which one, because the text was too long for the tooltip in the binding configurator. And there is no log in the gateway.