Skip to main content
Solved

Custom transformer - providing name of list(s) as an input parameter


ebygomm
Influencer
Forum|alt.badge.img+38

Is it possible to set up a parameter for a custom transformer so it allows selection of a list, not just a single element of the list?

Best answer by jdh

Depending on which transformer you use to publish the list parameter, the behaviour is different.

Given a feature with

_list1{}

_list2{}.a

_list2{}.b

 

If you use a listIndexer you will have a choice of _list1{} or _list2{}.

If you use a listDuplicateRemover your choices will be _list1{}, _list2{}.a, _list2{}.b

If you use a listConcatenator your choices are _list1{}, list2{}, _list2{}.a, _list2{}.b

 

The only one I know that let's you chose multiple lists is the attributeRemover (Lists to Remove).

 

View original
Did this help you find an answer to your question?

4 replies

ebygomm
Influencer
Forum|alt.badge.img+38
  • Author
  • Influencer
  • February 3, 2021

So if I create a parameter by finding an existing transformer that takes a list as a parameter and create a user parameter that way rather than in the navigator I can create a parameter for a single list selection, but multiple list selection doesn't appear to be possible?


jdh
Contributor
Forum|alt.badge.img+28
  • Contributor
  • Best Answer
  • February 3, 2021

Depending on which transformer you use to publish the list parameter, the behaviour is different.

Given a feature with

_list1{}

_list2{}.a

_list2{}.b

 

If you use a listIndexer you will have a choice of _list1{} or _list2{}.

If you use a listDuplicateRemover your choices will be _list1{}, _list2{}.a, _list2{}.b

If you use a listConcatenator your choices are _list1{}, list2{}, _list2{}.a, _list2{}.b

 

The only one I know that let's you chose multiple lists is the attributeRemover (Lists to Remove).

 


ebygomm
Influencer
Forum|alt.badge.img+38
  • Author
  • Influencer
  • February 3, 2021
jdh wrote:

Depending on which transformer you use to publish the list parameter, the behaviour is different.

Given a feature with

_list1{}

_list2{}.a

_list2{}.b

 

If you use a listIndexer you will have a choice of _list1{} or _list2{}.

If you use a listDuplicateRemover your choices will be _list1{}, _list2{}.a, _list2{}.b

If you use a listConcatenator your choices are _list1{}, list2{}, _list2{}.a, _list2{}.b

 

The only one I know that let's you chose multiple lists is the attributeRemover (Lists to Remove).

 

A ha, creating the Parameter from the attributeRemover is the answer. Thanks


jdh
Contributor
Forum|alt.badge.img+28
  • Contributor
  • February 3, 2021
ebygomm wrote:

A ha, creating the Parameter from the attributeRemover is the answer. Thanks

Just be careful if your list attribute names have spaces.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings