Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

AEM Designer - Force Page Break

Avatar

Avatar
Validate 1
Level 1
chapmawi
Level 1

Like

1 like

Total Posts

11 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 1
chapmawi
Level 1

Like

1 like

Total Posts

11 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
chapmawi
Level 1

01-06-2018

Hello All,

I'm new to AEM (LiveCycle) Designer but I thought I had mastered the basic stuff.  That was until someone asked me force a page break in a document that currently contains information by state in a table object inside a flowed subform.  The request is to have the table data element begin on a new page each time the state changes.  I thought such a request would be really simple (and it probably is) but I can't find an explanation of how to do it.

Thanks in advance!

Willie C.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Boost 50
MVP
_Bruce_Robertson
MVP

Likes

269 likes

Total Posts

1,782 posts

Correct Reply

372 solutions
Top badges earned
Boost 50
Boost 5
Boost 3
Boost 250
Boost 25
View profile

Avatar
Boost 50
MVP
_Bruce_Robertson
MVP

Likes

269 likes

Total Posts

1,782 posts

Correct Reply

372 solutions
Top badges earned
Boost 50
Boost 5
Boost 3
Boost 250
Boost 25
View profile
_Bruce_Robertson
MVP

03-06-2018

Hi Willie C,

Sounds like you could use the conditional break option on the Row object of your table, so something like;

1500620_pastedImage_0.png

The code

if (this.index > 0) {

  this.resolveNode('Row1[-1].State').rawValue

    !=

  State.rawValue;

}

Assume your row is called Row1 and the state field is called State.  The reference "this.resolveNode('Row1[-1].State').rawValue" returns the State value on the previous row, so we don't want to execute this when we are on the first row "if (this.index > 0) {"

Regards

Bruce

Answers (0)