Thanks a lot for your reply - that certainly looks like the problem I'm running into. Unfortunately the solutions it offers are:
- Use only application or repository URLs for your DDX and XDP references. All references in the DDX and XDP form and fragments must consistently use application or repository URLs. Within the XDP form and fragments, these references can be relative.
- Use only absolute references within the XDP form and fragments. (This solution applies only if application or repository URLs cannot be consistently used.) When form designers add a fragment to an XDP form (or to another fragment), Designer ES2 creates a reference to the fragment. By default, the reference is a relative reference to a fragment library. Form designers can ensure that the Assembler service can resolve fragment references by changing the relative reference to an absolute reference.
I can't work out how to do either of these though. When I add a fragment to my form I can't find a way to stop it using a relative path (ie: ..\Fragments\BookmarkPage.xdp), and if I go into the Fragment info after it's attached it shows me this path, but won't let me edit it.
Do you know how to do it?
1 person found this helpful
For anyone who'se interested I found the solution on this thread:
Here it is:
Assuming you launched Designer in Workbench and used that to add the fragments to the template, then the relative paths should be alright. What you need to add is some information to tell Output where to start with the relative paths.
In your generatePDF call, under Template Options there is a Content Root URI field. Output uses this, along with the paths in the form template to find the fragments. The Content Root URI should point to the form template (not the fragments).
For example. Say I have an application called GeneratePDF_Test v1.0 which has both a Fragments and a Forms directory. Using Designer I create a new form and add the fragments from the Fragments directory. Designer sets up my relative paths for me. I save the form to the Forms directory.
In the generatePDF step I set the Content Root URI to:
Now Output knows where to start the relative paths so it can find the fragments