cancel
Showing results for 
Search instead for 
Did you mean: 

Repeat no of copies in header for interactive adobe form using Gateway service

SwarnaliBasu
Participant
0 Kudos
161

Hi All

I have an interactive adobe form which uses gateway service. now I have to print the same content of the form for 4 copies but with different header. for that I have written a java script for that text field but the print is coming only for the 1st page

Form.#pageSet[0].mstDummy.BORDER.Header_Addresses.Header_Data.frmAccountAddress.Cell2::ready:layout - (JavaScript, client)

var divisor = (xfa.layout.pageCount() / 4);

var copy = Math.floor((xfa.layout.page(this) - 1 )/divisor) ;

switch (copy)

{ case 0: this.rawValue = "Original for buyer";

break;

case 1: this.rawValue = "Duplicate for Transporter";

break;

case 2: this.rawValue = "Assesse Copy";

break; case 3:

this.rawValue = "Extra Copy";

break;

default: break;

}

I have referred to the below link but my project is not agreeing to do multiple configs.

https://blogs.sap.com/2019/12/04/multiple-copies-labeling-on-fragmented-form-in-new-sap-s-4hana-outp...

Hence can you suggest

PascalBremer
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Swarnali,

I saw you are trying to modify the mstDummy.
Doublecheck your development this subform is not shown when you develop a form with fragments (Content / Master).

You might need to maintain the scripting in the master template itself.

Best regards
Pascal

SwarnaliBasu
Participant
0 Kudos

Hi Pascal

My code is inside the master sub form. Attaching screenshot, Please suggest ,

Cell 2 is the needed field

Accepted Solutions (0)

Answers (0)