One Star

Making tMap Mapping Dynamic

Hey,
I am using Talend for a month now. I used the tMap component to map columns. I was wondering how to make this feature dynamic. I have to do it all manually everytime. Is it possible to have a file or table which has relationship (between the input column name and Output Column name) and then when we run the job, these columns are mapped after reading the file.
Please provide any suggestion (even if we can achieve something similar to this.)
6 REPLIES
Four Stars

Re: Making tMap Mapping Dynamic

In tMap, dynamic schema mapping is not possible. But, if you have fixed input and fixed output schema and only routing is to be mapped or changed, then some work around could be done for this.
Can you put a simple use case with real scenario?
Thanks
Vaibhav
One Star

Re: Making tMap Mapping Dynamic

what if i have a changing input schema but fixed output schema? i want to map changing input schema to a fixed output schema.
Is it possible?
i will update with the use case soon.
One Star

Re: Making tMap Mapping Dynamic

Have you seen this: http://bekwam.blogspot.ro/2011/06/dynamic-schemas-in-talend-open-studio.html ?
Not sure if applies to your use case but it worth a look. I found it very interesting ...
Success.
Zoltan
Six Stars

Re: Making tMap Mapping Dynamic

Have a look at using reflection. My good friend and reflection wizard R.Baldwin has an example that can be found here:
http://www.talendforge.org/exchange/tos/extension_view.php?eid=177

Re: Making tMap Mapping Dynamic

The below given link for R.Baldwin reflection is not working

-Archana Laddagiri
One Star

Re: Making tMap Mapping Dynamic

Hi,
We have a similar requirement where there is a dynamic input schema and fixed output schema. Is there any solution to do this in Talent?