Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I have made a processor component which takes a file path as an input
I have defined it as a String parameter now:
@Option
@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
@Option("file-path")
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?
Thanks,
Siva
Hello,
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:
Best regards
Sabrina
Hello,
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.
Best regards
Sabrina
Hi,
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.
Thank You.