Quick tidbit today from Hok Min, the new RTF uber meister. It came out of a question with someone trying to use the 'split-by-page-break' command in a bit of a funky way. They had the following code:
<?if:CF_LPN_FLAG='Y'?> <?split-by-page-break: ?> <?end if?>Its a nice enhancement candidate but its not going to work. We are expecting the split-by-page-break command inside a loop not as part of a condition. Say, you're looping over departments (DEPT) and want a page break when the department changes. You'd have something like
<?for-each:DEPT?> ... ... ... <?split-by-page-break:?> <?end for-each?>This would get out engine to insert a page break into the document before the occurrence of a new department. To get the original code above to work you physically need to insert a page break into your template. Kinda screws the WYSIWYG layout a bit but you get the desired functionality i.e. a conditional page break. For a sample RTF and XML click here
Comments (3)
I am trying to do a simple page break
I have a vendor group and list of POs for each
After each vendor I need a page break. I tried
It does not work every time
Not sure why
Posted by Sonali | October 22, 2008 10:18 AM
Posted on October 22, 2008 10:18
lets you do exactlyto dial up any ofanyone sincerely
tarot card meaningsencyclopedia ofessence, Tarot.comTarot reading by[url=http://gitarista.sk/board/member.php?u=46359]free tarot reading on love[/url]scholar and a bishopsimply not availabletechnology, it
Posted by Toloson | June 20, 2009 4:47 AM
Posted on June 20, 2009 04:47
Hi,
I hope that I have a simple question for you. I have a rtf template that I am applying on top of a seeded Oracle Applications report (rdf). The users have requested that I put a page break on a column. I know that it would be easy if I could change the rdf, but I want to keep that unchanged for support reasons. How can I create a page break based on a value of one of the fields?
So my xml looks like this:
<INVTOPKL>
<LIST_G_PICK_SLIP_NUMBER>
<G_PICK_SLIP_NUMBER>
<PICK_SLIP_NUMBER>476715</PICK_SLIP_NUMBER>
<LIST_G_PARENT_LINE_ID>
<G_PARENT_LINE_ID>
<PARENT_LINE_ID></PARENT_LINE_ID>
<LIST_G_MAIN_GROUP>
<G_MAIN_GROUP>
<SUB_DROPPING_ORDER></SUB_DROPPING_ORDER>
<LOC_DROPPING_ORDER></LOC_DROPPING_ORDER>
<REQUEST_NUMBER>400450</REQUEST_NUMBER>
<MOVE_ORDER_TYPE>5</MOVE_ORDER_TYPE>
<LINE_NUMBER>1</LINE_NUMBER>
</G_MAIN_GROUP>
<G_MAIN_GROUP>
<SUB_DROPPING_ORDER></SUB_DROPPING_ORDER>
<LOC_DROPPING_ORDER></LOC_DROPPING_ORDER>
<REQUEST_NUMBER>400450</REQUEST_NUMBER>
<MOVE_ORDER_TYPE>5</MOVE_ORDER_TYPE>
<LINE_NUMBER>3</LINE_NUMBER>
</G_MAIN_GROUP>
<G_MAIN_GROUP>
<SUB_DROPPING_ORDER></SUB_DROPPING_ORDER>
<LOC_DROPPING_ORDER></LOC_DROPPING_ORDER>
<REQUEST_NUMBER>400451</REQUEST_NUMBER>
<MOVE_ORDER_TYPE>5</MOVE_ORDER_TYPE>
<LINE_NUMBER>4</LINE_NUMBER>
</G_MAIN_GROUP>
...
</LIST_G_MAIN_GROUP>
<LIST_G_PARENT_LINE>
</LIST_G_PARENT_LINE>
</G_PARENT_LINE_ID>
</LIST_G_PARENT_LINE_ID>
</G_PICK_SLIP_NUMBER>
</LIST_G_PICK_SLIP_NUMBER>
</INVTOPKL>
Currently, the rtf template has a for-each on <G_MAIN_GROUP>. I would like it to page beak whenever the <REQUEST_NUMBER> changes (it is already sorted this way). Is this possible?
Thanks,
Posted by JimO | June 25, 2009 12:45 PM
Posted on June 25, 2009 12:45