CRX path to use in DDX? | Community
Skip to main content
ekehiu
New Participant
May 24, 2017 4:21 PM UTC
Solved

CRX path to use in DDX?

When doing DDX, what is the path to use to pull a PDF or XDP file from the CRX repository?

I know the path to use if the file is in a folder on the server.

If I load a PDF or XDP via the AEM Forms UI under Assets, what path do I use to retrieve it via the DDX?

<DDX xmlns="http://ns.adobe.com/DDX/1.0/">
<PDF result="result">
<XDP>
<XDP source="file:////adobe/xdps/eForms/EMED-48-07-TEST.xdp"/>
</XDP>
<PDF source="file:////adobe/DocumentStorage/eforms_static/dev/45098.pdf"/>
<NoForms/>
</PDF>
</DDX>

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
sharoon23Accepted solution
Employee
May 29, 2017 4:22 AM UTC

Hi ekehiu,

Currently, DDX does not directly support specifying CRX paths in source attributes to pull files from repository. However, you can put an arbitrary string in source attribute and specify a document object [1] in the input map against that key. Document objects can be constructed using CRX node paths and hence, can solve your purpose.

[1]: https://helpx.adobe.com/aem-forms/6-2/javadocs/com/adobe/aemfd/docmanager/Document.html

3 replies

sharoon23Accepted solution
Employee
May 29, 2017 4:22 AM UTC

Hi ekehiu,

Currently, DDX does not directly support specifying CRX paths in source attributes to pull files from repository. However, you can put an arbitrary string in source attribute and specify a document object [1] in the input map against that key. Document objects can be constructed using CRX node paths and hence, can solve your purpose.

[1]: https://helpx.adobe.com/aem-forms/6-2/javadocs/com/adobe/aemfd/docmanager/Document.html

Translate
kautuk_sahni
Employee
May 25, 2017 8:00 AM UTC

Moving this thread to AEM Forms Topic.

~kautuk

Translate
Kautuk Sahni
MC_Stuff
Level 10
May 24, 2017 10:21 PM UTC