Get all operator from a parameter

Get all operator from a parameter

minet.axel
Enthusiast Enthusiast
601 Views
3 Replies
Message 1 of 4

Get all operator from a parameter

minet.axel
Enthusiast
Enthusiast

Good morning all,

I am looking for a way to get all the operators for a given parameter. Do you have any idea, I couldn't find anything in the API that allows me to do this.
The goal is to recover these values:

 

Sans titre.png

 

And create the right filter according to the user's choice :

 

"equals" :

ParameterFilterRuleFactory.CreateEqualsRule(

 

"is greater than or equal to" :

ParameterFilterRuleFactory.CreateGreaterOrEqualRule(

 

thk

0 Likes
602 Views
3 Replies
Replies (3)
Message 2 of 4

minet.axel
Enthusiast
Enthusiast

Do I need to test the type of parameter and create the list against the type of parameter (storageType)?

0 Likes
Message 3 of 4

franciscopossetto
Advocate
Advocate

Hey,

 

I think you are right. You could check the storage type. In that way, you will be able to know if a method is available to be used over a certain parameter or not.  Once you validate the method, you get the operator.

Github:
https://github.com/franpossetto
0 Likes
Message 4 of 4

minet.axel
Enthusiast
Enthusiast

I will test this. thank you.

0 Likes