Use sustring of FileName in Condition editor
I want to give some condition based on the substring of a file Name.
Example, in the file name is "header1234.txt" the characters from 7 to 10 represent a company code and the corresponding receiver should be determined based on this string.
I can use the complete file name when I select Context object in the editor and choose the object as File Name, but am unable to get a substring of that. I have a Xpath expression underneath the Context object, but it is disabled.
Any pointers are welcome.
P.S: I tired to put substring(Interface.FileName,7,4) in the Xpath manually, but the expression goes away just like that when i close the editor and open it again.
Edited by: Jaishankar on Oct 1, 2008 1:12 PM