14 September, 2015
Get Filelist file name and directory in TalenD job
((String)globalMap.get("tFileList_1_CURRENT_FILE"))
this variable holds current file name without complete path.
((String)globalMap.get("tFileList_1_CURRENT_FILEPATH"))
this variables holds current file name with complete path.
((String)globalMap.get("tFileList_1_CURRENT_FILEEXTENSION"))
this variable holds current file`s extension, if file has no extension then it will return null
((String)globalMap.get("tFileList_1_CURRENT_FILEDIRECTORY"))
this variable holds only directory name with path exclude file name.
((Integer)globalMap.get("tFileList_1_NB_FILE"))
this variables holds the number of files listed by tFilelist.
03 March, 2015
Javascript code in Mirth channel for removing Pipe Line (|) and Quotation (") remove from string
function isSegmentEmpty(segs)
{
var data=""+segs;
data=data.replace(/\|/g,""); // replace pipeline
data=data.replace(/\"/g,""); // replace quotation
data=data.trim();
//WriteErrLog("Insurance Data isSegmentEmpty function: "+data);
return data;
}
{
var data=""+segs;
data=data.replace(/\|/g,""); // replace pipeline
data=data.replace(/\"/g,""); // replace quotation
data=data.trim();
//WriteErrLog("Insurance Data isSegmentEmpty function: "+data);
return data;
}
Subscribe to:
Posts (Atom)