I have made a processor component which takes a file path as an input
I have defined it as a String parameter now:
@Documentation("TODO fill the documentation for this parameter")
private String input_path;
How can I make this parameter input the path by browsing they file system, like in the case of a tFileInput* component:
the "File name/ Stream" parameter.
I tried declaring the parameter under
which I saw briefly mentioned in the documentation, and changed the parameter type to "File", but it didn't change anything. I can't find any documentation on how to do this though. What should I change to get this done?
You could define a context variable and assign a default file path to it, set the File name/stream field of tfileInputExcel in context variable like:
If your input file changes frequently and you cannot define in context variable as I said.
Please use tFileList component to iterate all the files that matches the file mark you define.
My question is regarding a custom component that I have created. That's why I had posted in Component Development board.
I want to know how to input a file directly by browsing and selecting it from the computer. Currently I am taking the file path as an input (String type) and then reading the file.
Talend named a Leader.
Kickstart your first data integration and ETL projects.
Watch the recorded webinar!
Part 2 of a series on Context Variables
Learn how to do cool things with Context Variables
Find out how to migrate from one database to another using the Dynamic schema