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: 
RAJ6
Contributor III
Contributor III

how to trim dynamic File name for excel sheet name

Hi talend folks,

 

                I know how to generate dynamic File name for excel sheet name using talend. Now i want to know how to trim dynamic File name for sheet name. I need specific character only for excel sheet name. 

 

example :

my excel file name : abcd_20180530_1020

need output for excel sheet name: abcd_20180530

 

Kindly share your information. 

Labels (2)
1 Solution

Accepted Solutions
TRF
Champion II
Champion II

Assume the Excel filename is in the global variable called "filename", you can do:

((String)globalMap.get("filename")).substring(0, 13)

View solution in original post

1 Reply
TRF
Champion II
Champion II

Assume the Excel filename is in the global variable called "filename", you can do:

((String)globalMap.get("filename")).substring(0, 13)