Skip to main content
Solved

increment a field for multiple file

  • April 17, 2019
  • 2 replies
  • 10 views

Forum|alt.badge.img

Hi,

I try to increment a field start at 1 and finish at the end of the file. I use a counter and it's work fin with 1 file. But i have 38 file. I need to start at 1 for each file. Do you have any suggestion? Thanks

Best answer by erik_jan

Use the Counter, but group by the file name (fme_basename).

That would start a new counter per file.

The grouping is done by using the attribute value in the Counter Name:

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.

2 replies

erik_jan
Contributor
Forum|alt.badge.img+22
  • Contributor
  • 2179 replies
  • Best Answer
  • April 17, 2019

Use the Counter, but group by the file name (fme_basename).

That would start a new counter per file.

The grouping is done by using the attribute value in the Counter Name:


Forum|alt.badge.img
  • Author
  • 8 replies
  • April 17, 2019

Thank you Erick. It's work.