Skip to main content
HelesicPetr
22-Sapphire II
22-Sapphire II
December 13, 2022
Question

API to read structure filter definition

  • December 13, 2022
  • 2 replies
  • 3458 views

Hello community gurus,

 

Have you ever found an API to get structure filter definition?

I haven't been successful.

 

I need to read the structure filter definition in my own table but I can not find any possibility to do it till now.

 

Any help or hint is appreciated

 

PetrH

 

HelesicPetr_1-1670941464400.png

 

 

 

2 replies

14-Alexandrite
December 13, 2022

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

HelesicPetr
22-Sapphire II
22-Sapphire II
December 13, 2022

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

HelesicPetr
22-Sapphire II
22-Sapphire II
December 15, 2022

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.

 

HelesicPetr_0-1671096237963.png

 PetrH

15-Moonstone
December 3, 2024

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

HelesicPetr
22-Sapphire II
22-Sapphire II
December 3, 2024

Hi @khimani_mohiki 

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