Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

automatic Mapping between tmysqlinput and tmysqloutput

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

Labels (2)
12 Replies
Sid3
Contributor III
Contributor III

hi Hamaz,

are your both input and output tables schema are same?

If yes. you can directly map you don't need a Tmap here if the schema and database type is same.

you can verify the schema in target component schema. you find a edit schema there you can see your input and output schema gets displayed.

Thanks,
Sid
Please give a Kuto to the post if it is useful
Please put to resolved if it solves your issue.
Anonymous
Not applicable
Author

No the databese is the same but i want to store in different table

Anonymous
Not applicable
Author

also i want to specify which coloums to be mapped , in an automatic way

Sid3
Contributor III
Contributor III

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.

TRF
Champion II
Champion II

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.

 

Anonymous
Not applicable
Author

if there is way without tmap then it will be fine too 

Anonymous
Not applicable
Author

how can i do the mapping with javacode using tjavarow

Sid3
Contributor III
Contributor III

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.

 

0683p000009LtuO.jpg0683p000009Ltsx.jpg

TRF
Champion II
Champion II

@Hamzahaj can you explain why you don't want to open the tMap configurator?