Skip to Content

getting xdp-TemplateSource from InteractiveForm

Hi,

i'd like to retrieve the template source (xdp file) from an InteractiveForm.

IWDInteractiveForm has a method getTemplateSource() that returns the name of the InteractiveForm. When the Web Dynpro is deployed the xdp file is in /PORTAL-INF/webdynpro/<component name>/<template name>.xdp.

Is there a possibility to retrieve this resource via an API? this.getClass().getResourceAsStream() doesn't work since /PORTAL-INF is not on the classpath (i think).

Any help is appreciated!

regards

Dirk

PS: We use EP 6.40 and NWDS 2.0.18 (both are on SPS 18).

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Dec 08, 2006 at 03:14 AM

    Hi Drik,

    Could you share with us why do you want to access the templateSource directly. What information do you want from template ?

    regards

    Dhawal

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Dhawal,

      i'd like to use the PDFObject-API to create a PDF from the template source and the current context.

      The problem i'm facing is that user supplied information is rendered as a PDF to the user so that he/she can decide whether to go back and correct that information or send this information and create an order object in SAP. I then would like to append the PDF to the order object in SAP. That in itself is not the problem but the fact that the PDF is lacking the order number.

      After i have created the order i know the order number. I now can store the order number in the context and rerender the PDF using the PDFObject-API (this shall be done as part of the navigation from one view to the next, the PDF is now complete (in the sense that it contains the order number too) and can be appended to the order object). There shall be no user intervention necessary to append the PDF to the order.

      I hope have made myself clear enough.

      regards

      Dirk

  • author's profile photo Former Member
    Former Member
    Posted on Jan 26, 2007 at 08:02 AM

    Hi Dirk,

    I had the same question and got the path to the xdp-file with:

    String template_path =

    WDURLGenerator.getPublicResourcePath(wdComponentAPI.getDeployableObjectPart(),"name_of_xdp");

    Kind regards,

    Caspar

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.