Skip to main content
Archived

list element selection when element number is an attribute value

Related products:Transformers
  • September 14, 2016
  • 4 replies
  • 66 views

helmoet
Forum|alt.badge.img+8

Hi guys,

It's allmost to simple to imagine that no-one else has thought of this, but when I try to access the elements of a list from an attributecreator, the only possible choices are numbers from 0 to .... for the selection of an individual item of the list. Wouldn't it be a great idea to enable also an attribute reference for a number? So there is an attribute _list_index that I can select as the element sequence number for the element to select? Like the ListIndexer, so one does not have to use that transformer anymore, too.

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
  • September 14, 2016

You can still do it, although it's a bit of a mouthful to type in manually:

my_list{@Value(my_index)}.item

I agree it would be more elegant to be able to select it from the the dialog.


tim_wood
Contributor
Forum|alt.badge.img+8
  • Contributor
  • May 4, 2018

tim_wood
Contributor
Forum|alt.badge.img+8
  • Contributor
  • May 4, 2018
Note from Safe: We had to turn off the formatting in this comment due to the community migration. In 2017.1.1.1 the correct syntax needs to be:

 

@Value(my_list{@Value(my_index)}.item)

 


tim_wood
Contributor
Forum|alt.badge.img+8
  • Contributor
  • June 22, 2018