Skip to main content
Solved

Make a loop without limit


geo-x
Supporter
Forum|alt.badge.img+6

Dear FME community.

I would like to make a loop with concatenation of values like a hierarchy.

The result like that :

In this case I can have 1, 2, 3, ... x levels, that's why I don't know how to do that.

Thank you for your help.

Best answer by david_r

You could use the VariableSetter and VariableRetriever for this, see attached template (FME 2018.1).

Result:

build-hierarchy.fmwt

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

5 replies

takashi
Evangelist
  • August 6, 2018

Hi @lalandexavier, it's an interesting challenge. This is my first inspiration.

# Possibly the RESULT for ID = 6 should be "B/F"?


david_r
Celebrity
  • Best Answer
  • August 6, 2018

You could use the VariableSetter and VariableRetriever for this, see attached template (FME 2018.1).

Result:

build-hierarchy.fmwt


david_r
Celebrity
  • August 6, 2018
takashi wrote:

Hi @lalandexavier, it's an interesting challenge. This is my first inspiration.

# Possibly the RESULT for ID = 6 should be "B/F"?

Almost exactly the same :-)

geo-x
Supporter
Forum|alt.badge.img+6
  • Author
  • Supporter
  • August 6, 2018
david_r wrote:

You could use the VariableSetter and VariableRetriever for this, see attached template (FME 2018.1).

Result:

build-hierarchy.fmwt

Thank you very much @david_r that's perfect !

geo-x
Supporter
Forum|alt.badge.img+6
  • Author
  • Supporter
  • August 6, 2018
takashi wrote:

Hi @lalandexavier, it's an interesting challenge. This is my first inspiration.

# Possibly the RESULT for ID = 6 should be "B/F"?

Thank you very much @takashi Your answer complete the answer of @david_r

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