Skip to main content
Solved

Explode lists with a minimum of transformers


Forum|alt.badge.img

I have a list containing several list as this example :

A{}.B{}

 

A{}.C{}

 

A{}.D{}

So I use a ListExploder for the A list. Then I have to use 3 ListExploder for each remaining list B, C and D.

Is there another way to do it minimizing the amount of ListeExploder in my project?

Thanks.

Best answer by takashi

Hi @slerendu, if each feature has all the components ('A{}.B{}' AND 'A{}.C{}' AND 'A{}.D{}'), I don't think you can avoid using three ListExploders (unless you write a Python script). If each feature has only a single component ('A{}.B{}' OR 'A{}.C{}' OR 'A{}.D{}'), you can rename the component (B, C, D) to an identical name using ListRenamers.

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

3 replies

takashi
Contributor
Forum|alt.badge.img+19
  • Contributor
  • Best Answer
  • July 12, 2016

Hi @slerendu, if each feature has all the components ('A{}.B{}' AND 'A{}.C{}' AND 'A{}.D{}'), I don't think you can avoid using three ListExploders (unless you write a Python script). If each feature has only a single component ('A{}.B{}' OR 'A{}.C{}' OR 'A{}.D{}'), you can rename the component (B, C, D) to an identical name using ListRenamers.


Forum|alt.badge.img
  • Author
  • July 12, 2016
takashi wrote:

Hi @slerendu, if each feature has all the components ('A{}.B{}' AND 'A{}.C{}' AND 'A{}.D{}'), I don't think you can avoid using three ListExploders (unless you write a Python script). If each feature has only a single component ('A{}.B{}' OR 'A{}.C{}' OR 'A{}.D{}'), you can rename the component (B, C, D) to an identical name using ListRenamers.

Hi Takashi, thanks for your answer. Ok, I'll do it.

For the use of ListRenamers, I saw your answer on the other post ;-)

https://knowledge.safe.com/questions/5036/using-2-list-exploders-at-once.html

BTW, how do you manage to add a link to my name (@takashi)?


gio
Contributor
Forum|alt.badge.img+15
  • Contributor
  • July 12, 2016

Just type the name of the poster. (or any other member) Correctly spelled of course...


Reply


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