Message "CONTINUES NEXT PAGE" automatically
Hi,<br />
this tip purpose as controlling the message: "Continued on next page" in documents like Invoice.<br />
In my example I have a DATASET (Name: Lines) which is a collection in Java that don't know how many rows will iterate the document, to better control the message do as follows:<br />
Method : DATASET > Script > open
My table's lines has this DATASET (Lines) as binding:<br />
TableName (ElementName): documentLines<br />
<br />
<br />
Method : Table > Script > onPrepare
In the last detail row of the table, which indicates the message add the following script at Visibility Property:
Whatever the value of the Page Break in table, the message will appear automatically!<br />
I hope I helped because I had this problem!<br />
Best Regards,<br />
Sérgio Gomes
this tip purpose as controlling the message: "Continued on next page" in documents like Invoice.<br />
In my example I have a DATASET (Name: Lines) which is a collection in Java that don't know how many rows will iterate the document, to better control the message do as follows:<br />
Method : DATASET > Script > open
//get the collection size (number of lines number of lines in the document) _collectionSize = new Integer(document.getLines().size());reportContext.setGlobalVariable("_collectionSize",_collectionSize);<br />
My table's lines has this DATASET (Lines) as binding:<br />
TableName (ElementName): documentLines<br />
<br />
<br />
Method : Table > Script > onPrepare
_breakPage = new Integer(reportContext.getReportRunnable().designHandle.getDesignHandle().findElement("documentLines").getProperty("pageBreakInterval")); reportContext.setGlobalVariable("_breakPage",_breakPage);<br />
In the last detail row of the table, which indicates the message add the following script at Visibility Property:
var _breakPage = reportContext.getGlobalVariable("_breakPage"); var _collectionSize = reportContext.getGlobalVariable("_collectionSize"); if ( (row["currentLine"] == _breakPage) && (row["currentLine"] < _collectionSize) ){ _breakPage = parseInt(_breakPage)+parseInt(reportContext.getReportRunnable().designHandle.getDesignHandle().findElement("documentLines").getProperty("pageBreakInterval")); reportContext.setGlobalVariable("_breakPage",_breakPage ); false; }else{ true;}<br />
Whatever the value of the Page Break in table, the message will appear automatically!<br />
I hope I helped because I had this problem!<br />
Best Regards,<br />
Sérgio Gomes
Warning
No formatter is installed for the format ipb
0
Categories
- All Categories
- 108 Developer Announcements
- 53 Articles
- 106 General Questions
- 145 IM Services
- 43 OpenText Hackathon
- 32 Developer Tools
- 20.6K Analytics
- 4.1K AppWorks
- 8.9K Extended ECM
- 899 Cloud Fax and Notifications
- 77 Digital Asset Management
- 9.3K Documentum
- 29 eDOCS
- 120 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management