Current Position:Home > XML Publisher - RTF Template - No of Rows Fixed

XML Publisher - RTF Template - No of Rows Fixed

Update:10-11Source: network consolidation
Advertisement
Hi,
We are printing a report which is developed in XML Publisher, but user requirement is to print 10 lines in each page under one group.
I have did the following code, The code is compiled successfully, but output is not generating as per user requirement.
I have followed this example Never name it.: Limit rows per page
<?for-each:G_SUB_INVENTORY_INFO?>
Sub-Inventory:
<?SUBINVENTORY?>
Locator:
<?STOCK_LOCATOR?>
<?for-each:LIST_G_ITEM_DETAIL?>
Tag # <xsl:variable name="rowlimit" select="number(10)"/>
Item Code
Item Description
Lot #
Expiry Date
MOH
Status
Counted Qty
F TAG_NUMBER
ITEM_CODE
ITEM_DESCRIPTION0.00
LOT_NUMBER
EXPIRY_DATE
<?position()?>
<?if:(((position()-1) mod $rowlimit=0) and position()>1)?> <xsl:attribute name="break-before">page</xsl:attribute> <?end if?>
E
<?for-each:xdoxslt:foreach_number($_XDOCTX,1,$rowlimit-(count(G_ITEM_DETAIL) mod $rowlimit),1)?>
<?position()?>
<?end for-each?>
<?end for-each:LIST_G_ITEM_DETAIL?>
page breakend <?end for-each:G_SUB_INVENTORY_INFO?>
Please guide me where I am getting wrong.
Regards,
Waqas Hassan

The Best Answer

Advertisement
Hi,
I have found the solution,
I was missing a number function.
Before:        <?for-each:xdoxslt:foreach_number($_XDOCTX,1,$rowlimit-(count(G_ITEM_DETAIL) mod $rowlimit),1)?>
After:          <?for-each:xdoxslt:foreach_number($_XDOCTX,1,number($rowlimit)-(count(G_ITEM_DETAIL) mod $rowlimit),1)?>
Thanks
  • XML Publisher - RTF Template - No of Rows Fixed Update:10-11

    Hi, We are printing a report which is developed in XML Publisher, but user requirement is to print 10 lines in each page under one group. I have did the following code, The code is compiled successfully, but output is not generating as per user requi

  • Page Break In XML Publisher RTF Templates Are Not Working Update:10-11

    Please refer to the Metalink Doc below: Subject:      Page Break In XML Publisher RTF Templates Are Not Working. Doc ID:      559111.1       Type:      PROBLEM Modified Date:      24-MAR-2008       Status:      MODERATED In this Document Symptoms Cau

  • Parse Error in XML Publisher .rtf template during "preview" Update:10-11

    I've created a template based upon a working one with a few tweaks, but it does not work. It validates okay in XML PUblisher but the preview fails with this error: Caused by: oracle.xdo.parser.v2.XMLParseException: Attribute 'select' not found in 'xs

  • VO Extension Error in modifying the query of XML Publisher Report Template Update:10-11

    Hi Friends, I have one requirement related to calling XML Publisher Reports Template from OAF Page. When clicking on the submit button the XML Publisher template is calling and displaying the data. Our requirement is to display some more columns in t

  • XML Publisher excel template Update:10-11

    Hi , after installing the Patch Patch 12415414: 1OFF:11873050:12.1.3:12.1.3:FRM-41830, FRM-40212 SUBMITTING PROGRAM - PUBLISH FS i managed to add and excel template to XML Publisher , the template working fine in the Desktop template viewer but when

  • XML Publisher rtf output not consistent with the rtf created Update:10-11

    I am using XML publisher to generate a custom report. The approach I folllowed: 1) AM Class: Write the VO data to XMLNode using vo.writeXML() method 2) XML Publisher Administrator Responsibility: Create a data template and attach the xml created in s

  • BI pulisher errors out when I tried to load xml in rtf template. Update:10-11

    Hello, Today I have installed bi publisher with .net framework.But when I tried to load the xml file after opening .rtf template it gives error "XSD parser returned an error" Please let me know what could be the issue. Thanks Ganesh ManeHello, -

  • IN Operator in xml publisher RTF Update:10-11

    Hi, I am working on XML Publisher reports ( r12 EBS, Database 10g). Is there any way i can use 'IN' operator in RTF. I have following requirement. my rtf: <?count?> --paramter name1 name2 name3 name4 <?for each-group?> <?name1?> <?nam

  • Absolute/Relative Path for elements in xml to rtf template. Update:10-11

    Hi all, I have a small doubt, can anyone help me come out of this issue. I developed a BI Publisher Report using RTF Template and I am addressing XML elements which are out of the group in the XML file inside the for loop in the RTF template. I am ab

  • Converting a simple Oracle Report to XML Publisher report template Update:10-11

    Hello, I have a simple Oracle Report 9i which displays data from four tables. It uses three different queries to get the data. How can I simply generate a template file(say RTF) or atleast an XML source from that report? I tried joining the queries (