Hi All,
We have a smart pdf form with multiple pages, but it only show 1 page at a time, like a wizard or form guide.
And so far we have 2 approaches:
1) From http://www.adobe.com/devnet/livecycle/articles/lc_designer_controller.pdf , i see that the instanceManagers are stored in an array and it try to add/removeInstance whenever user click on the link.
E.g when initialize:
im[currentPageNum].addInstance();
Solved! Go to Solution.
Views
Replies
Total Likes
In the long run ...no there is no overall difference in performance. But there is a difference as to when you
will "pay" for the performance.
In option 1 when the form initializes you are only creating objects that exist on the pages that are being shown. When you change the page the new objects are being created and used. So each time you turn a page you are paying for the creation of the new objects.
In option 2 you are creating all objects for all pages right away. If your form is big enough you may see that option 2 will take longer to start than option 1. Also if any redrawing or relayout occurs in the form option 2 will take longer because there is more to do.
So I woudl suggest option 1 for better performance....this will only be an issue for large forms.
Hope that helps
Paul
Views
Replies
Total Likes
In the long run ...no there is no overall difference in performance. But there is a difference as to when you
will "pay" for the performance.
In option 1 when the form initializes you are only creating objects that exist on the pages that are being shown. When you change the page the new objects are being created and used. So each time you turn a page you are paying for the creation of the new objects.
In option 2 you are creating all objects for all pages right away. If your form is big enough you may see that option 2 will take longer to start than option 1. Also if any redrawing or relayout occurs in the form option 2 will take longer because there is more to do.
So I woudl suggest option 1 for better performance....this will only be an issue for large forms.
Hope that helps
Paul
Views
Replies
Total Likes
Thank you for your prompt reply, Paul.
Best regards,
Anh
Views
Replies
Total Likes