How to force a pagebreak with a data from the Data Model ?

My data source is a text file. In this text, I have a special character which says it is a breakpage. After extracting this data with the datamapper, how can I force the datadesigner to do a pagebreak ? Any idea ?

Please post you data here so I can look at it.

Hi Toch,

You will need to add an CSS class to your context_print-styles.css.

.after {

page-break-after: always;

}

In my test I targeted the first paragraph in a default template. But I’m sure this will get you started. I then added a script that checks a field for a certain value. Once the value is found the page breaks. The selector in the script is p which will target the only paragraph I have in my test template.

results.each(function(index){

var deposit = record.fields.Deposit;

if(deposit == “190.00”){

this.addClass(‘after’);

}

});

Hope this helps.

Regards,

S