cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

API to read structure filter definition

HelesicPetr
22-Sapphire I

API to read structure filter definition

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

 

 

 

6 REPLIES 6
xolomon
14-Alexandrite
(To:HelesicPetr)

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 I
(To: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

HelesicPetr
22-Sapphire I
(To:xolomon)

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.

 

HelesicPetr_0-1671007495324.png

 

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.

 

HelesicPetr_0-1671096237963.png

 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

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

Announcements

Top Tags