Skip to main content
Question

Replicate value for all records

  • January 4, 2019
  • 3 replies
  • 161 views

mr_fme
Enthusiast
Forum|alt.badge.img+9

Hi,

 

I have some features that contain the especific date, but in others features from the same file no have date value...

How I replicate the date for all by fme_basename?

I´m reading many files at once and dates are different for each file.

Thank´s

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

erik_jan
Contributor
Forum|alt.badge.img+22
  • Contributor
  • 2179 replies
  • January 4, 2019

It should work with this approach:


Forum|alt.badge.img+2
  • 719 replies
  • January 4, 2019

Hi @mr_fme,

Alternatively you could use Adjacent Attribute Handling in the Attribute Manager to achieve this.

  1. Add an Attribute Manager and Enable Adjacent Feature Attributes. Change the value for Number of Prior Features to 1.
  2. For the Date column select 'Conditional Value' for the Attribute Value. Change the Pass Criteria to AND then set two test clauses:

     

    fme_basename = feature[-1].fme_basename

     

    AND

     

    date Attribute is missing

     

     

    Then for the new attribute value set it to feature[-1].fme_basename.

     

I believe this would also give you the desired result.


mr_fme
Enthusiast
Forum|alt.badge.img+9
  • Author
  • Enthusiast
  • 145 replies
  • January 6, 2019

It should work with this approach:

@erik_jan,

Your suggest definitely helped me a lot.

Thank´s