cancel
Showing results for 
Search instead for 
Did you mean: 

Screen changes made through JavaScript are not rendered

former_member182372
Active Contributor
0 Kudos

Hello,

What I have done first:

1) Download <a href="http://www.adobe.com/devnet/livecycle/articles/AddingRemovingTableRows.pdf">http://www.adobe.com/devnet/livecycle/articles/AddingRemovingTableRows.pdf</a>

2) Open it with Adobe Designer

3) Save as xdp file

4) Create simple WD component

5) Insert InteraciveForm UI element and bound all reqiuired properties

6) Move AddingRemovingTableRows.pdf to src\configuration\Components\<name of WD component>\ and rename to be the same like in UI elelemnts property "templateSource".

7) Run application

Now, the problem: <b>rows are not added</b>! I got the message about max limit BUT screen itself is not changed.

I placed FileDownload UI elelement and bind it to the same context attribute as pdfSource and tried to download generated PDF. Then I opened it with Adobe Designer and saved as xdp file.

The diference between initial and generated includes among others:

Initial:


<acrobat>
 <acrobat7>
  <dynamicRender>required</dynamicRender>
 </acrobat7>
.......
</acrobat>

Generated:


<acrobat>
 <acrobat7>
  <dynamicRender>forbidden</dynamicRender>
 </acrobat7>
.......
</acrobat>

Could some one give me idea how make script (which adds rows to table) running?

Thank you!

Best regards, Maksim Rashchynski.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello Maksim,

You have to render a 'dynamic PDF' on the server. This can be achieved by using the <a href="https://media.sdn.sap.com/javadocs/NW04s/SPS7/wd/com/sap/tc/webdynpro/clientserver/adobe/pdfdocument/api/IWDPDFDocumentInteractiveFormContext.html#setDynamic(boolean)">setDynamic</a> method of the IWDPDFDocumentInteractiveFormContext interface.

Regards,

Philipp

Answers (0)