Expand my Community achievements bar.

SOLVED

How to get the current filename and & or path

Avatar

Level 1

How can I get the current path or filename?

I didn't really find any answers in the net. this.path or app.path were suggested but I couldn't get it to work.

Thanks in advance for your answer!

Livecycle Designer ES 8.2.1.3144.1.471865

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi,

event.target.path.toString();  will give the full path including the filename.

event.target.documentFileName.toString();  will give the filename only.

Good luck,

Niall

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

Hi,

event.target.path.toString();  will give the full path including the filename.

event.target.documentFileName.toString();  will give the filename only.

Good luck,

Niall

Avatar

Level 1

Thank you very much for your prompt and most helpfull answer!