One Star

InputDialog: have we a component like this?

Hi forum.
To have an interactive operability during the job I seed the "tMsgBox" that it can to be useful for to display messages or choices.
Is there another component similar to Java JOptionPane.showInputDialog where the user can write free text?
Or is there some component like a drop down box to choice some fixed values?
Regards
Alessandro
1 ACCEPTED SOLUTION

Accepted Solutions
Community Manager

Re: InputDialog: have we a component like this?

Ex: java -jar .jar etc.
where the parameter are context variables
If this is possible I can create an external GUI and then execute my Talend job :cool:

I don't see Talend job can be executed as a jar so far. You can execute the job script (the batch file) from the command prompt and pass context parameters. see
http://www.talendforge.org/forum/viewtopic.php?id=9295
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
12 REPLIES

Re: InputDialog: have we a component like this?

define a context
edit the context, and for each variable you can define their input prompt.
that will work at the beginning of the job only
if you need something midway - you will have to use the one you mentioned
One Star

Re: InputDialog: have we a component like this?

Hi Nicolas
Thanks for your notice.
I create a simply context with one variable.
Then I select this context in my job.
Now how can I to prompt the input for the variable of my context when I run the job?
If I use the tContextLoad component I have a warning message because It can not be the first of the job and no prompt appears.
Regards
Alessandro
One Star

Re: InputDialog: have we a component like this?

Up
One Star

Re: InputDialog: have we a component like this?

Up up
Community Manager

Re: InputDialog: have we a component like this?

hi
What nicolasdiogo suggested is to check the 'prompt' box of a context variable. see my screenshot.
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
One Star

Re: InputDialog: have we a component like this?

Thank you very much Shong, it's the tip that I was looking for.
It's works as I want.
Regards
Alessandro
One Star

Re: InputDialog: have we a component like this?

Hi forum.
The suggestion works fine, when I run my application during the develop I can to display one or more variables in the same form (see image).
But if I distribute my job like a java package this form isn't displayed during the execution. Why?
Regards
Alessandro
One Star

Re: InputDialog: have we a component like this?

Up
One Star

Re: InputDialog: have we a component like this?

Up up
Community Manager

Re: InputDialog: have we a component like this?

Hi
The prompt option for a context variable does not work if the job is executed out of Talend Studio. If this, I suggest you to use tMsgbox with question button.
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
One Star

Re: InputDialog: have we a component like this?

Hi Shong, thank you for the information, it isn't a good news.
The tMsgBox can to be useful if I have simply answers but I would like to ask to user variable informations like a range of date.
If I generate my java package is it possible that it have my options as parameter of execution?
Ex: java -jar .jar etc.
where the parameter are context variables
If this is possible I can create an external GUI and then execute my Talend job :cool:
Community Manager

Re: InputDialog: have we a component like this?

Ex: java -jar .jar etc.
where the parameter are context variables
If this is possible I can create an external GUI and then execute my Talend job :cool:

I don't see Talend job can be executed as a jar so far. You can execute the job script (the batch file) from the command prompt and pass context parameters. see
http://www.talendforge.org/forum/viewtopic.php?id=9295
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business