Skip to main content
Solved

Make a loop without limit

  • August 6, 2018
  • 5 replies
  • 5 views

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

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.

5 replies

takashi
Celebrity
  • 7842 replies
  • 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
  • 8391 replies
  • 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
  • 8391 replies
  • 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"?

Almost exactly the same :-)

geo-x
Supporter
Forum|alt.badge.img+6
  • Author
  • Supporter
  • 89 replies
  • August 6, 2018

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
  • 89 replies
  • 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"?

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