How do I get user input from the keyboard in talend

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

Highlighted
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

Best Practices for Using Context Variables with Talend – Part 2

Part 2 of a series on Context Variables

Blog

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog