Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to assign value from tMAP column to global variable ?

Hi,
I am trying to assign the parsed string from tMAP as file name but getting null as output, How can I fix this issue ?

File_Name = "C:/users/Milind/ACARS/"+(String)globalMap.get("fltnum")+TalendDate.formatDate("yyyyMMddHHmmss", new Date()) + ".xls"
where fltnum is defined as VAR in the tMAP !
Thanks,
Milind
Labels (2)
24 Replies
Anonymous
Not applicable
Author

Hi,
I would suggest to read your file twice. First only to extract the filename (and store it into a context variable), than run an subjob (with onSubJobOk) which used the context variable to create the file.
Bye
Volker
Anonymous
Not applicable
Author

thanks Volker, got it and it works.
Anonymous
Not applicable
Author

You are welcome.
Anonymous
Not applicable
Author

 
Anonymous
Not applicable
Author

How to define the RecordType Id in Tmap by using GlobalMap.get function ?
My Record Type Id value is "Person_Customer"