Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X
Hi,
you can have a look "NavigationCriteria" object and related methods:
Fetch Navigation Criteria:
NavigationCriteria navigationCriteria= NavigationCriteriaHelper.service
.getNavigationCriteria(filterName);
navigationCriteria.getConfigSpecs() and find the one with WTPartConfigSpec.
Cheers,
Xolomon
Hi @xolomon
Thank you for your replay.
I know the NavigationCriteriaHelper but I haven't found a way how to read actual user's settings from the Structure filter
I will check it tomorow. 😄
PetrH
Hi @xolomon
The NavigationCriteriaHelper.service can return saved filters. I can not find the actual settings which could be modified by user any time.
I can list all saved filters and get configSpecs for filter by name, but it is not what I need.
I would get actual settings that is read in a configure wizard. But I'm not able to locate where the filter specification is read and by what API.
PetrH
I just add a example
A custom table in custom tab should shows tree based on Structure filter, but I can not find a way how to get the settings of actual filter settings in the TreeDataHandler or TableBuilder.
as a workaround I use an own lifecycle filter but I would like to know to get the structure filter.
PetrH
Hi, did you ever find a solution, I need to get the config spec from the user session for attribute roll up in configurable structures
No. The solution does not exist.
The point is that the information is just in the explorer, and there is not any known api to get this information.
You have to use some js functions but it is hardcoded and the effort to get it is too time consuming.
.So you can just use saved filters...
Instead of getting the filter I created wizard, where the user has to set a filter created by me in own UI and based on the users setting I work with own table structure.
PetrH