Skip to main content
Question

Calculate Field based on feature writer summary attribute

  • February 14, 2019
  • 3 replies
  • 14 views

ladeef
Contributor
Forum|alt.badge.img+1

This seems like a simple operation, but I can't seem to figure it out. I have a feature writer output that contains the summary field total features written. I'm trying to use this attribute to populate 4 records from a table from another feature class after the writer is done. I just need the same "total features written" to be applied to 4 rows.

I'm trying to get 1487 in all of the totalfeatures field.

I'm also trying to use "total features written" to do some calculations after the fact, but everything comes up missing.

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.

3 replies

ebygomm
Influencer
Forum|alt.badge.img+44
  • Influencer
  • 3429 replies
  • February 14, 2019

You could use a featuremerger with a merge type of attributes only. The 4 records from your table go into the requestor, the features written attribute is the supplier, join on 1.

 

You could also try using a variable setter and a retriever, but you need to then ensure that the variable is set before you retrieve it.


ladeef
Contributor
Forum|alt.badge.img+1
  • Author
  • Contributor
  • 7 replies
  • February 14, 2019

You could use a featuremerger with a merge type of attributes only. The 4 records from your table go into the requestor, the features written attribute is the supplier, join on 1.

 

You could also try using a variable setter and a retriever, but you need to then ensure that the variable is set before you retrieve it.

Actually, that didn't solve my problem of getting the summary into a specified field, is that possible?

What is the significance of join on 1? one to one join on each feature I assume?


ebygomm
Influencer
Forum|alt.badge.img+44
  • Influencer
  • 3429 replies
  • February 14, 2019

Actually, that didn't solve my problem of getting the summary into a specified field, is that possible?

What is the significance of join on 1? one to one join on each feature I assume?

If you rename the total features written attribute to totalFeatures before the featuremerger and then in the FeatureMerger Attribute Accumulation options set conflict resolution to Use Supplier you'll end up with your totalFeatures field populated in the table.

 

And yes, join on 1 is just joining the single incoming supplier to every requestor.