Quantcast
Channel: Adobe Community : Popular Discussions - LiveCycle Output
Viewing all articles
Browse latest Browse all 9631

Static vs. Dynamic Forms

$
0
0

I thought that I understood static vs dynamic forms, but what I'm seeing has me stumped.  Here's the issue:


I have a form that requires multiple instances of a subform, based on repeating nodes in XML data.  Inside each subform instance there are data fields, but I can't bind them directly to the XML because the values require some calculation based on the data passed in.  So, I have a javascript loop in the containing subform that creates a new instance of the repeating subform and sets the rawValues of the underlying data fields.  The javascript is in the Initialize event.  I'm passing the .xdp into Output for rendering.  The script is set to run on the Server.

 

The issue is that when I look at the resulting PDF file in Reader, I do have the correct number of subform instances displayed.  However the data fields reflect the data from the first instance, so that I might have five sections that all look the same and the data is correct for the first section.  The form will render fine in the Designer preview if I set the form preview type to Dynamic, but the behavior will replicate the Output behavior if I set the preview to Static.

 

What I understood is that having a static form will mean that the form will not *re-render* in Reader, but the initial form rendering in Output should create the subforms correctly.  I am getting multiple instances, they just don't reflect the correct data values.


Viewing all articles
Browse latest Browse all 9631

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>