How do I get user input from the keyboard in talend

Highlighted
Six Stars

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

 


Accepted Solutions
Nine Stars

Re: How do I get user input from the keyboard in talend

Hi, 

 

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

 

ContextPrompt.PNG

ContextPrompt1.PNG

 

Regards,

 

Veeru Boppudi

All Replies
Nine Stars

Re: How do I get user input from the keyboard in talend

Hi, 

 

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

 

ContextPrompt.PNG

ContextPrompt1.PNG

 

Regards,

 

Veeru Boppudi
Six Stars

Re: How do I get user input from the keyboard in talend

Hi Veeranjaneyulu Boppudi,

 

thnx a lot for your description.

Very accurate!!

I'm do it and works well!

 

regards,

Davide

Six Stars

Re: How do I get user input from the keyboard in talend

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

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Put Massive Amounts of Data to Work

Learn how to make your data more available, reduce costs and cut your build time

Watch Now

How OTTO Utilizes Big Data to Deliver Personalized Experiences

Read about OTTO's experiences with Big Data and Personalized Experiences

Blog

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog