Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
hello evrybody
i have a TmysqlInput which setting is fixed by context variables
and i have a tmysqloutput and tmp
i'm seeking for a way (if it's possible)to do the mapping between tmysqlinput and tmysqloutput without opning the tmap and doing the classic mapping
pelease help
No the databese is the same but i want to store in different table
also i want to specify which coloums to be mapped , in an automatic way
If it is schema is different you have to use Tmap for mappings columns.
It cannot be done in automatic way, if you dont want to use tmap use tJavarow between source and target and you can reassign the fields as per your requirement.
But i suggest use tmap easy to manage your code.
Thanks,
Sid
Please give a Kudo to the post if it is useful
Please put to resolved if it solves your issue.
But if you need a tMap automagically completed because of the number of fields, I'm afraid it's not possible to do what you expect.
if there is way without tmap then it will be fine too
how can i do the mapping with javacode using tjavarow
You can connect tmysqlinput--->tjavarow--->tmysqloutput
In tjavaRow, Get source schema from input component and target schema from output component. Then click on "Generate Code" property in tJavaRow component, once it generates the default code with output fields gets assigned to input fields. you can change the field assignment as per your field mapping.
Note: Don't click on "Sync Columns" property in tJavarow. get schema from source and targets as per the above statement.
Thanks,
Sid
Please give a Kudo to the post if it is useful
Please put to resolved if it solves your issue.
@Hamzahaj can you explain why you don't want to open the tMap configurator?