cancel
Showing results for 
Search instead for 
Did you mean: 

Conditional Page Break not Working

Former Member
0 Kudos

Dear Experts,

I am having an internal table having data:

CARRIDCONNIDFLDATEPRICECURRENCY

DL

1111Mar 18, 2013 611.01USD
DL1111Mar 19, 2013 611.01USD
DL2222Mar 18, 2013 556USD
DL2222Mar 19, 2013556USD
DL3333Mar 18, 2013 578USD
DL3333Mar 19, 2013 876USD

.

My requirement is at every change in CONNID, the CONNID details should print in next new page.ie separate three pages with details of CONNID.

Page 1

CARRIDCONNIDFLDATEPRICECURRENCY

DL

1111Mar 18, 2013 611.01USD
DL1111Mar 19, 2013 611.01USD

Page 2

CARRIDCONNIDFLDATEPRICECURRENCY

DL

2222Mar 18, 2013 578USD
DL2222Mar 19, 2013 876USD

Page 3

CARRIDCONNIDFLDATEPRICECURRENCY

DL

3333Mar 18, 2013 611.01USD
DL3333Mar 19, 2013 611.01USD

For achieving this I have done:

Select the data section of Data view for the table.
Goto object and under that select pagination. There we will have conditional break and edit button against it. Click on the EDIT button, we will get a
script editor, In that click plus button and then click Insert Sample Expression button and then select CONNID. A statement will automatically come,
which will say something like Data[-1].connid ne data.connid . Then select Before radio button for BREAK and for TO select Top of Next Page. Then say OK.
Activate and execute the form.

But page breaking at condition is not happening. Complete internal table data is getting printed without conditional page break.

Please let me know anything else I need to do apart from steps mentioned above.

Thanks in Advance,

Arun.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Solved Myself.

Solution:  The condition should be set on the repeating part.

dominik-st
Participant
0 Kudos

Hi Arun,

could you post your code for the conditional break?

I'm facing a similar problem and I am not really fimiliar with scripting in Adobe forms.

Thank you in advance!

Best regards

Dominik

shubha_bansal
Explorer
0 Kudos

Hi Arun,

I am facing same problem.

what is meant by repeating part?

I added the condition at body row level it is not working.

hope to hear from you.

Regards

Shubha

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

No need of any coding.
The condition should be set on the repeating part.

Regards,

Arun