Skip to main content
Question

pass database connection to custom transformer


jelle
Contributor
Forum|alt.badge.img+16
  • Contributor

Hi all,

I need to pass the named database connection to a custom transformer. The name depends on the input in an Excel file. In this Excel file, I have for example 'NE' and 'NW', which needs to be mapped to a Named DB connection. Neither in the AttributeValueMapper, nor in the AttributeManager it is possible to set a value of the Named DB Connection. Anyone an idea on how to approach this?

best regards,

Jelle

2 replies

david_r
Celebrity
  • June 29, 2017

Have you tried simply creating a published parameter of type string in the custom transformer and link it to the appropriate values? As long as the tring is exactly the same as the name of the connection it seems to work for me.


jelle
Contributor
Forum|alt.badge.img+16
  • Author
  • Contributor
  • June 29, 2017
david_r wrote:

Have you tried simply creating a published parameter of type string in the custom transformer and link it to the appropriate values? As long as the tring is exactly the same as the name of the connection it seems to work for me.

OK, that works. Makes it a little bit less flexible, but it does the trick. Thank you!

 

 


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