Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
cjj
Contributor
Contributor

Context Variable in tMysqlOutput

Is it possible to use a Context Variable in a tMysqlOutput component's "Table" field?

Ctrl+Space seems to suggest so...

0683p000009MFjl.jpg


context.tableprefix is the context variable in question, the value of which I want to use to dynamically control the table name I am inserting data into on my MySQL DB.

0683p000009MFgQ.jpg

I have specified this in my tJavaRow and asked it to print the variable to the run window, so I can check it is working - which it is.
It seems like it just doesn't get recognised in tMysqlRow though, evident from the Incorrect table name "" error.


I have had this method working with a tMysqlRow component, but it runs too slowly (2000 rows/s)

Labels (2)
1 Reply
Anonymous
Not applicable

Hi,
Here is a TalendHelpCenter:tCreateTable component which is used to create and drop the specified table.
Have you tried to use this component to dynamically control the table name you are inserting data into on your MySQL DB?
Best regards
Sabrina