Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

XPath issue

Avatar

Not applicable

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