Skip to main content
Archived

reverse list element selection

Related products:FME Form
  • December 7, 2016
  • 4 replies
  • 105 views

thomas_g
Contributor
Forum|alt.badge.img+13

Hi!

Could you facilitate to select a list element from the back?

For example, when accessing a particular list element in a Tester, I can input a number > 0 in the list element selection dialog. But why not from the back like -1 or -2.

Sure I can use a ListElementCounter before, subtract -1 of the result in the following transformer of my choice and submit a _list{@Value(_element_count)} (what I have to type manually, as it's not possible in the list element selection to chose an attribute as value). Or I can use the ListIndexer before (where actually it is possible to choose the elements from the back), and create additional attributes, I don't really need.

Why making life harder than necassary? Wouldn't it be better to do this things just in one step using only the list element selelction dialog?

Of course this refers to all Transformers where I may need to input list elements as a parameter value.

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

david_r
Celebrity
  • December 7, 2016

thomas_g
Contributor
Forum|alt.badge.img+13
  • Author
  • Contributor
  • December 7, 2016

Hi David, I know. I wrote it in my description. I think it's an unnacessary step. It would improve FME, when I could select these elements already in the list elements selection dialog.


david_r
Celebrity
  • December 7, 2016
Ah, sorry, I didn't see. I agree that negative list indexes would be more elegant.

 

 


tnarladni
Enthusiast
Forum|alt.badge.img+23
  • Enthusiast
  • April 24, 2018

When you have a list of coordinates, measures, you can select -1 to choose the last index in the list, but when it's just a list of things, you can't. Please put this in your list transformers. It's been two years since the idea.