Page 1 of 1

oXygen 17.1 OpenInSystemAppOperation resourcePath question

Posted: Tue Sep 19, 2017 6:50 pm
by cedporter
I'm trying to launch a word doc using the OpenInSystemAppOperation action, and nothing's happening when i provide it the following resourcePath: 'P:/04 Divisions/Global Information Services/PUBS/12 Publications Forms/FCC Style Guide.docx'

I've tried escaping the spaces. I've tried appending 'file:///' to the beginning of the path. I've also tried using the UNC path. Is there any way to launch a docx file via custom action in 17.1?

Re: oXygen 17.1 OpenInSystemAppOperation resourcePath question

Posted: Wed Sep 20, 2017 8:53 am
by Radu
Hi,

The resourcePath param should be an XPath expression so you should have simple quotes around the absolute URL-like path.
For example I tested with this exact value set in the resourcePath param:

Code: Select all

'file:/D:/projects/eXml/samples/ooxml/Conversion%20of%20units.docx'
and it worked for me, invoking the action opened MS Word. One more thing, as you see in the URL path I escaped characters like spaces using hex equivalents (%20 in this case).

Regards,
Radu

Re: oXygen 17.1 OpenInSystemAppOperation resourcePath question

Posted: Wed Sep 20, 2017 5:12 pm
by cedporter
That fixed it. I hoped it was just a question of syntax. Thanks!