Skip to main content
Question

AttributeKeeper keeps the attribute only for the first feature

  • January 18, 2022
  • 3 replies
  • 14 views

Hello,

I'd like to "remember" an attribute and use it to populate an attribute of another feature in the same execution.

I thought AttributeKepper would do the job (because of the name haha), but the value of the attribute is empty, except in the first pass through the breakpoint.

 

3 replies

caracadrian
Contributor
Forum|alt.badge.img+23
  • Contributor
  • 571 replies
  • January 19, 2022

Can you give us a more detailed example of what you would like to do? Maybe a sample of your work.


nielsgerrits
VIP
Forum|alt.badge.img+60
  • 2938 replies
  • January 19, 2022

Do you want to use an attribute from a previous row? You can do this in an AttributeCreator using "Adjacent Feature Attributes":

AttributeCreatorParameters


  • Author
  • 15 replies
  • January 19, 2022

Many thanks guys!

I have sorted it out. The problem was, I had 2 attributes / features going to the Supplier port of a FeatureMerger. Both come from an particular AttributeKeeper. The flow looked like this:

feature_merger1When I added a dedicated FeatureMerger for both, the behavior was as expected.

Thank you for your time!