Quantcast
Channel: SCN : Discussion List - SAP Interactive Forms by Adobe
Viewing all articles
Browse latest Browse all 1237

PDF Forms, JavaScript, Page Breaks, etc.

$
0
0

Hello Gurus,

 

I have few questions about SAP PDF Interactive forms. I am not doing interactive form, but simple printout, but I want some "layout changes" before I send it to printer/show the form to the user.

 

For example I am doing material movements and I want to make per page sums per unit. E.g.

I have 5 PCE, 10 KG, 20 L and I want to make subtotals/totals per unit, but I am unable to do it dynamically (or AM I?).

 

It is not a problem to get sums into a JS object in form e.g.

{ PCE : { Column1: Value, Column2: Value }, etc.}

 

The problem I see is that I am unable to do "dynamic page breaks" without conditional page break, but when I do conditional page break I need to find number of lines per page before the form start by counting and specifying how many lines there are per page, in ABAP (or is there any other way?) and then do conditional break on per page basis (working even though I don't find it elegant).

 

The other problem is, when I use conditional breaks I am unable to "duplicate" the subtotal line. When I try to access the instanceManager, it tells me, that it is null. So to do something like this.instanceManager.addInstance(1) is not usable (I am not telling that in official help I should use Layout:Ready function to fire up my own script to change layout, but on note I see, that I should not modify the layout DoH)

LiveCycle ES2 * Adobe LiveCycle Designer ES2

 

I hope I had explained myself clearly, although I had tried to describe what I have been through. The main question is. Am I able to do dynamic layout changes with script during AdobeForm generation? Or is there any way to get the dynamic per page subtotals to work, preferably with scripts, not counting in ABAP?

 

Thank you,

Regards,

Petr Sourek


Viewing all articles
Browse latest Browse all 1237

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>