I have picktreeitem that changes parameters in the source when another picktreeitem is selected. I've done this using
where datasource is set using
The problem I've found is that the tree is cached, so the first time through it properly sets the parameter and retrieves the appropriate tree. The second time through it also appropriately sets the parameter, but doesn't refresh the root of the tree. I've tried
but this doesn't seem to affect the tree. Is there anything I can do short of destroying and recreating the tree.
Code:
datasource.setDefaultParams(new HashMap(){{ if(parentId != null) { put("default.parent.id", parentId); } }});
Code:
setDatasource or setOptionDataSource
Code:
invalidateDisplayValueCache() and DynamicForm.resetValues()