Expand my Community achievements bar.

Copy of the entire output in single PDF

Avatar

Former Community Member

Hi,

I have a requirement to print a form and then print it again with "copy" mark, all within a single PDF document. I tried by setting property to BODY page: Binding -> Repeat Subform for Each Data Item -> Min count = 2. I have got two copies alright. However, I had a table within and in the second copy the table seemed to be empty. Then I remembered this: you can't re-print a table.

Then I tried the following:

I created two items of data in data source and attempted to redirect the data subform's bind property differently for two instances of the parent subform as:

if(++CopyCount.copyCount == 1) {

  this.IT_VBDPR.bind.ref = "$.IT_DATA";

}

else {

  this.IT_VBDPR.bind.ref = "$.IT_DATA2";

}

The script worked, I tried this from all available events, but unfortunately, whatever I put in bind.ref property had no affect on output.

What occurs to me as last resort is to create a table of the entire form data set and insert it there twice. This would probably work, but to me it seems like an overhead.

Could anyone think of better solution?

Thanks!

KR,

Igor

Message was edited by: ibarbaric: added solution attempt

0 Replies