Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

ADOBE Form Using Table with dynamic number of rows

Hi All

First some information about our infrastructure:

- AdobeDesigner 7.1 in the Developerstudio

- SAP-Portal 7.0 SP15

I have a View with tabstrips and behind the tabs i have defined an event. On one Tab I included a ADOBE-Form with Table. The Data for the PDF sould only filled in the context for the Form when i jump to this Tab. I created the Form by using this documentation [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e0859ad1-53aa-2a10-78ae-99e41c407669].

To fill the tablecontext I use the following Code:

IPrivateAnlegenBANFView.IPositionenElement position = null;

IPrivateAnlegenBANFView.IPositionenNode posNode = wdContext.nodePositionen();

int NUM_5_TIMES = 5;

for (int i = 0; i < NUM_5_TIMES; i) {

IPrivateAnlegenBANFView.IPositionenElement posElement = wdContext.createPositionenElement();

+posElement.setMaterial("" + i);+

+posElement.setKurztext("Test" + i);+

+posElement.setWarengruppe("Warengr" + i);+

posNode.addElement(posElement);

}

If i put this code in the wdDoInit method it works fine and shows me 5 Rows. But if I put the code in the Action of the tabstrip it shows me only one row. I checked the entries of the context and there are 5 entries (showed them in a WD-Table).

Can someone tell me what im doing wrong?

Thanks for a answer and kind regards

Pascal

Not what you were looking for? View more on this topic or Ask a question