How can I split the ending of a file, like for instance I want file01 instead of file01.xlsx
My written code:
var filename = $v('P40_UPLOAD').split('\\').pop().split('/').pop();
var s = $s("P40_NAME",filename);
s.split('.')[0];
Unfortunately it doens't work.