Skip to Content
0
Nov 23, 2010 at 10:10 AM

Page Break using JavaScript

1271 Views

Dear specialists

I'm working on a PDF Print Form in transaction SFP. On the paginations tab of the object palette you can set the attribute Place, among other things, with "Following Pervious" or "Top of next Page".

This attribute is responsible for deciding whether the content of this form

is placed at the end of the previous page, or if a new page is started. If I set this attribute

statically and deploy the PDF, everything works as expected.

What I would like to do is, to set this value dynamically during JavaScript initialize event. I've tried different combinations but non of them worked:

----- data.Seite_4::initialize: - (JavaScript, server) ---------------------------------------------

if($record.BERICH_MODULAR.MODULAR.value == "X" && $record.BERICH_MODULAR.KAPITEL.value != "X"){
//this.break.before = "contentArea";
//this.break.startNew = "1";
//this.breakBefore = "pageArea";
//this.breakBefore.startNew = "1";
//this.break.before = "pageArea";
//this.break.before.startNew = "1";
this.break.before = "Seite_4";
this.break.startNew = "1";
}

This is the Adobe reference to breakBefore:

http://help.adobe.com/en_US/livecycle/9.0/designerHelp/index.htm?content=000874.html

Do you have any idea what I'm doing wrong?

Thanks allot for your help.

Daniel