Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

[resolved] How to store File path in context variable

Hi,
I am new to Talend, Please can any one tell me how to store file path of tFileInputExcel in context variable.
Thanks in advance.
Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Hi
Define a context variable and assign a default file path to it, set the File name/stream field of tfileInputExcel in context variable like:
context.filePath
0683p000009MEiu.png
Best regards
Shong

View solution in original post

4 Replies
Anonymous
Not applicable
Author

Hi
Define a context variable and assign a default file path to it, set the File name/stream field of tfileInputExcel in context variable like:
context.filePath
0683p000009MEiu.png
Best regards
Shong
Anonymous
Not applicable
Author

Hi
Thanks, but i need to store the file path of input file in context variable, so that i can use it later.
Suppose i browsed one file from D drive, and then after doing some operation i want to create another file in same location with name like FileName_temp.
Anonymous
Not applicable
Author

Hi
Actually my input file changes frequently, so i can't define in context variable as you said.
Thanks
Anonymous
Not applicable
Author

if the file name might change, you can use tFileList component to iterate all the files that matches the file mark you define. Take a look at the component manual:
https://help.talend.com/search/all?query=tFileList&content-lang=en

Best regards
Shong