Skip to main content
Question

pass database connection to custom transformer

  • June 29, 2017
  • 2 replies
  • 20 views

jelle
Contributor
Forum|alt.badge.img+22

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

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

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+22
  • Author
  • Contributor
  • 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.

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