Skip to main content
Question

How to read changing feature type name without having to manually make modifications to script?

  • December 20, 2022
  • 4 replies
  • 65 views

antoine.prince
Contributor
Forum|alt.badge.img+4

Hi everyone,

 

I am wondering how I can have a FeatureReader that dynamically adapts itself to any changing feature type name. The feature type name is linked to a private parameter, but since the output port created by the reader is ''named'', everytime I change the value of the private parameter, the output port keeps its original name and just goes empty. It there a way to make that ''named output port'' dynamically change its name to fit the value entered in the private parameter?

 

I am using a Geodatabase reader.

 

See attached files for screenshots.

 

Thank you!!

4 replies

dustin
Influencer
Forum|alt.badge.img+31
  • Influencer
  • December 20, 2022

Part of the answer is in your 2nd screenshot, the generic port. You can specify in the Output section to use a Single Output Port, so that the specific feature layer names won't be shown as an output port. But to answer your question...no, it's not possible to dynamically change the port at runtime.image


antoine.prince
Contributor
Forum|alt.badge.img+4
  • Author
  • Contributor
  • December 20, 2022

I tried this, but then the data seems to be sent to the <Generic> output without any fields. Is there a way to sent all of the data, with all the columns, through the <Generic> output port?


dustin
Influencer
Forum|alt.badge.img+31
  • Influencer
  • December 20, 2022

You can expose attributes on the Generic port for attributes that you need to work with in the workspace.

imageWhen you read data through the Generic port, the fields are still present, they just aren't exposed. But even though they aren't exposed, they can still be written on a dynamic writer, which is generally when the generic port would be used.


Forum|alt.badge.img+2
  • December 21, 2022

@antoine.prince​ The Tutorial on dynamic workflows gives a little more background on this puzzle.


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