Skip to main content
Question

How to update AttributeExposer automatically? Dynamic Attribute Exposer

  • February 21, 2024
  • 3 replies
  • 214 views

marta.podsiad
Supporter
Forum|alt.badge.img+9

Hi, 

I would like to create a FME app that will allow users to check the gdb for wrong attributes. Each time the attributes in the gdb will change hence I need to find out how to do it automatically/dynamically. 

 

 

3 replies

nielsgerrits
VIP
Forum|alt.badge.img+54

Dynamic exposing is not possible in FME. But there are ways to make this work. Can you describe how it should work? What are your inputs? A file geodatabase and a csv with requirements? Are you checking attribute names or attribute values?


marta.podsiad
Supporter
Forum|alt.badge.img+9
  • Author
  • Supporter
  • February 21, 2024

Hi,

 

User will read the gdb with feature layers and search for attributes that match specified regex with the use of AttributeValueSearcher

 


nielsgerrits
VIP
Forum|alt.badge.img+54

But the AttributeValueSearcher does not need the attributes to be exposed to work? Then why and try to expose them? You can simply use the result list from the AttributeValueSearcher to communicate back the search results.

 

I can imagine you want to ignore all fme_ attributes, and you know which those are beforehand, so these can be exposed the usual way.

I know this (dynamic workspace handling) is a hard thing to understand, but if you do not know the attributes beforehand, you can not assign them in the transformers downstream. So there is no use to try and dynamically expose attributes, because workbench does not work that way.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings