Skip to main content
Solved

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

  • February 3, 2021
  • 4 replies
  • 58 views

ebygomm
Influencer
Forum|alt.badge.img+44

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).

 

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

4 replies

ebygomm
Influencer
Forum|alt.badge.img+44
  • Author
  • Influencer
  • 3427 replies
  • 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+37
  • Contributor
  • 2002 replies
  • 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+44
  • Author
  • Influencer
  • 3427 replies
  • 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).

 

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


jdh
Contributor
Forum|alt.badge.img+37
  • Contributor
  • 2002 replies
  • February 3, 2021

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

Just be careful if your list attribute names have spaces.