Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello everyone,
I want to load file name in my QV app.
for example: I am having below URL list in excel.
URL
\\abc.com\project\docs\cs\one.xlsx
\\abc.com\prjocts\docs\cs\it\two.xlsx
\\abc.com\prjocts\cs\it\three.xlsx
Now I want to load only last name in my app like below
URL
one.xlsx
two.xlsx
three.xlsx
Please help.
Try Like
LOAD URL, SubField(URL,'\',-1) AS NewUrl
LOAD * Inline
[
URL
\\abc.com\project\docs\cs\one.xlsx |
\\abc.com\prjocts\docs\cs\it\two.xlsx |
\\abc.com\prjocts\cs\it\three.xlsx |
];
Use subfield function
Try Like
LOAD URL, SubField(URL,'\',-1) AS NewUrl
LOAD * Inline
[
URL
\\abc.com\project\docs\cs\one.xlsx |
\\abc.com\prjocts\docs\cs\it\two.xlsx |
\\abc.com\prjocts\cs\it\three.xlsx |
];
Hi soha,
You need to use FileBaseName() for this in script level like,
FileBaseName() as BaseName
Hi Soha,
Like this??? Please see the attachment.
Thanks,
AS