One Star

[resolved] tFileList : Not able the access the global variables.

Hi Guys,
I 'm very new to Talend.
I was checking on the tFileList component, where in i can mention the files in a directory.
I have mentioned the Directory path and also mentioned the format as ".csv".
But when i move to next step, that is, component properties of tInputFileDelimited, Talend should present all the global variables which we can use.
I read in some pages that i have to press Ctrl + space bar to get the list .
I m not able to get that. Is there any other way out?
Sumanth
1 ACCEPTED SOLUTION

Accepted Solutions
One Star

Re: [resolved] tFileList : Not able the access the global variables.

Hi
I have replied to your another forum Forum 30129, hope it will be useful for you.
Best regards
Sabrina

Thanks Sabrina,
It was the problem with hotkeys.
I had to Close and Reopen the TOS window, to get it work.
Thanks a lot
Sumanth
5 REPLIES

Re: [resolved] tFileList : Not able the access the global variables.

For each iteration, you get your file name from globalMap.
E.g.
System.out.println("*** " + (String) globalMap.get("tFileList_1_CURRENT_FILE") + " ***");
One Star

Re: [resolved] tFileList : Not able the access the global variables.

Hi Sumanth,
If you are press Ctrl + space bar to get the, what are components used in your job
those components related global variables presented.In that select the global variable based on your component.
for tFileList component global variable is bleow one .
"((String)globalMap.get("tFileList_1_CURRENT_FILEPATH"))"
Regards
kumar.talend
Moderator

Re: [resolved] tFileList : Not able the access the global variables.

Hi
I have replied to your another forum Forum 30129, hope it will be useful for you.
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
One Star

Re: [resolved] tFileList : Not able the access the global variables.

Hi
I have replied to your another forum Forum 30129, hope it will be useful for you.
Best regards
Sabrina

Thanks Sabrina,
It was the problem with hotkeys.
I had to Close and Reopen the TOS window, to get it work.
Thanks a lot
Sumanth
Moderator

Re: [resolved] tFileList : Not able the access the global variables.

Hi,
It is great. Thanks for your feedback.
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.