Expand my Community achievements bar.

XPath issue

Avatar

Former Community Member

Hi Guys,

This is not working

concat("c:\", getDocAttribute(/process_data/@inputDoc,"filename"),"pdf")

The inputDoc variable is a document.

I've tried to use "filename", "wsfilename" and it doesn't work.

With "filename" it works, but only show me string "pdf", and i want to add the filename to "pdf".

How can this works?

Mancini.

1 Reply

Avatar

Level 10

Can you try with just hard coding the name first. Something like

concat("c:\", "myFile","pdf")

then the slash might give you some trouble. Try to use a front slash instead like

concat("c:/", "myFile","pdf")

If this works, then we know the problem is just with the getDocAttribute function.

Jasmin