Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events

Page numbering in dynamic form

Avatar

Former Community Member

I'm trying to add page numbering for dynamicly created form, with flow layout.

My problem is, that my form is data driven, and there are repeated copies of documents created. Those repeated copies should have their page numbers start from page one, should not continue.

Sample:

Document 1: page 1/4

Document 1: page 2/4

Document 1: page 3/4

Document 1: page 4/4

Document 1 - copy: page 1/4

Document 1 - copy: page 2/4

Document 1 - copy: page 3/4

Document 1 - copy: page 4/4

Sampel XML:

<D>

     <data>

          <a>...</a>

          <a>...</a>

          <a>...</a>

          <a>...</a>

          <a>...</a>

     </data>

</D>

<D>

     <data>

          <a>...</a>

          <a>...</a>

          <a>...</a>

          <a>...</a>

          <a>...</a>

     </data>

</D>

Where D tag stands for single copy of document.

Like I said, all is data driven, based on XML. There are parts that are repeated inside document, so the number of pages inside document will vary. I tried approach listed in http://forums.adobe.com/message/2603694#2603694 , but it gives me wrong results (total number of pages from sample would be 8, not two sets for 4).

Im open for any solutions that do the job done.

0 Replies