Expand my Community achievements bar.

Learn about Edge Delivery Services in upcoming GEM session

Print value only on last page

Avatar

Level 1

Hi,

we have a pay-in slip on each page of an invoice. The amounts on that pay-in slip should be stars (like *********) and only on the last page of the invoice the pay-in amount should be printed.

I tried the following already:

Formcalc on event initilize:

var curpage = $layout.page ( ref ( $ ) )

var totpages = $layout.pageCount()

if ( curpage ne totpages ) then

$.rawValue = "*******"

Endif

Result: The stars were printed on both pages of the invoice.

Then I tried the following coding:

Javascript on event ready:

if (xfa.layout.page(this) != xfa.layout.pageCount()){

     this.rawValue == "*******"

}

Result: The invoice amount is printed on both pages.

I am an ABAP developer and not very experienced with Formcalc or Javascript. I would be very grateful if somebody could help me here.

Kind Regards
Nicola

0 Replies