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: 
chichibio
Contributor III
Contributor III

How do I get user input from the keyboard in talend

Hi guys,

 

I would insert an input date from keyboard, store in context var the value and 

pass that var in mysql query like that:

context.var prompt like string

tjava component -> TalendDate.parseDate("yyyy-MM-dd",context.var)

tmysql component -> select * from table where date(columns) > "'+context.var+"'

 

thnx at all

 

Labels (4)
1 Solution

Accepted Solutions
vboppudi
Partner - Creator III
Partner - Creator III

Hi, 

 

While creating context variable please select default box, then it will prompt for value when you run job.

 

0683p000009Lsnm.png

0683p000009Lt72.png

 

Regards,

 

View solution in original post

3 Replies
vboppudi
Partner - Creator III
Partner - Creator III

Hi, 

 

While creating context variable please select default box, then it will prompt for value when you run job.

 

0683p000009Lsnm.png

0683p000009Lt72.png

 

Regards,

 

chichibio
Contributor III
Contributor III
Author

Hi Veeranjaneyulu Boppudi,

 

thnx a lot for your description.

Very accurate!!

I'm do it and works well!

 

regards,

Davide

chichibio
Contributor III
Contributor III
Author

Hi Veeranjaneyulu Boppudi,

 

just the last question:

I would export the job to run file .bat. But, I need insert the input (like message box) to make a query.

There's any solution to do it?

 

thnx

Dav