BI Publisher : SELECT statement in RTF template

Hi Guys
I have written a BI Publisher Report using XML file created from Oracle Reports(in Oracle Apps).
Repors runs from Oracle Apps perfectly ok. Now I need to fetch some data from couple of tables and display on the Report.
I am wondering whether I can directly code SELECT statement in RTF file rather than messing with Oracle Report(.rdf) file.
Please advise.
Thanks and Regards
Vijay

Hey Vijay,
You cannot query in RTF using select :)..
You have to mess/play with RDF to do it ;)
Oh wait, did i say , we cannot in RTF, we can , but that is difficult approach to go with., keep this as an end of the world option.

Similar Messages

  • Complex if statement in rtf template?

    Hello,
    I want to build an if statement in rtf template, the idea is like:
    <?if:address!='' and phone!=''?>
    <?end if?>
    what's the correct way to do it if it is possible? Thanks in advance!
    Shichao

    stevencallan wrote:
    Conditional statements, in the user guide or the report developer guide, depending on the version you use.
    Page 7-62 in the 10.1.3.2 user guide:
    Use an if statement to define a simple condition; for example, if a data field is a specific value.
    1. Insert the following syntax to designate the beginning of the conditional area.
    <?if:condition?>
    2. Insert the following syntax at the end of the conditional area: <?end if?>.
    For example, to set up the Payables Invoice Register to display invoices only when the Supplier name is "Company A", insert the syntax <?if:VENDOR_NAME='COMPANYA'?> before the Supplier field on the template.
    Enter the <?end if?> tag after the invoices table.Thanks for the reply. But what about two conditions in one if statement? That was my question. :)
    Shichao

  • Choose statement in rtf template

    Hi Gurus!
    I'm building a report on rtf template (Bi Publisher Addin for MSword).
    If I insert a "Choose statement", every time I run the report the content of choose go on a new row.
    I want to avoid this behavior and that the "choose" is show on the row where i put it in the template builder.
    Any Idea?
    Regards,
    Daniele

    not exactly a guru, but have you investigated using the @inlines context in your template?
    e.g.
    My condition was <?choose@inlines:?><?when@inlines:MY_CONDITION='1'?>One<?end when?>
    <?when@inlines:MY_CONDITION='2'?>Two<?end when?>
    <?otherwise@inlines:?>something completely different<?end otherwise?>
    <?end choose?>

  • Rendering a dynamic image(blob) in a BI Publisher Report via an RTF templat

    Been working on this for a while and now at a dead end hoping the experts can direct me to try something new. There is lots in the forums on blobs and displaying in reports and from it all I have gleaned that I need to encode the blob in Base64 and then use this code.
    <fo:instream-foreign-object content type="image/jpg">
    <xsl:value-of select="IMAGE_ELEMENT"/>
    </fo:instream-foreign-object>
    I use this function to encode a 9KB jpeg into a clob (and my jpegs will be less then 32K.
    function encode_base64(p_blob_in in blob) return clob is
    v_clob clob;
    v_result clob;
    v_offset integer;
    v_chunk_size binary_integer := (48 / 4) * 3;
    v_buffer_varchar varchar2(48);
    v_buffer_raw raw(48);
    begin
    if p_blob_in is null then
    return null;
    end if;
    dbms_lob.createtemporary(v_clob, true);
    v_offset := 1;
    for i in 1 .. ceil(dbms_lob.getlength(p_blob_in) / v_chunk_size) loop
    dbms_lob.read(p_blob_in, v_chunk_size, v_offset, v_buffer_raw);
    v_buffer_raw := utl_encode.base64_encode(v_buffer_raw);
    v_buffer_varchar := utl_raw.cast_to_varchar2(v_buffer_raw);
    dbms_lob.writeappend(v_clob, length(v_buffer_varchar), v_buffer_varchar);
    v_offset := v_offset + v_chunk_size;
    end loop;
    v_result := v_clob;
    dbms_lob.freetemporary(v_clob);
    return v_result;
    end encode_base64;
    The xml is simple:
    <?xml version="1.0" encoding="UTF-8"?>
    <ROWSET>
    <ROW>
    <IMAGE_NAME>Test</IMAGE_NAME>
    <IMAGE_MIME_TYPE> image/jpeg </IMAGE_MIME_TYPE>
    <IMAGE_ELEMENT>…lots lines of encoded data… </ IMAGE_ELEMENT >
    </ROW>
    </ROWSET>
    Then when I put all together using BI Publisher Desktop 11.1.1.6 in an rtf template and preview the pdf, the preview fails with a long message ( can provide the whole thing if requested) but starting with:
    java.lang.ArrayIndexOutOfBoundsException: 0
         at oracle.xdo.common.image.ImageReader.checkFormat(ImageReader.java:130)
         at oracle.xdo.common.image.ImageReader.analyze
    I suspect the base64 encoding may be the problem but I am out of my realm in trying to debug this. Any help would be most appreciated…sorry for the length of this.

    I thank you again for continuing to try to help me. However, I regret to say that this function does not work. The same error results (see below). It is hard to believe that this cannot be done with APEX and BI Publisher. I would think that other APEX users have the need to display images and do not have the E-Business Suite.
    What I am doing is very straightforward....a small jpeg stored as a blob in an Oracle table that needs to be dynamically displayed from a report in APEX----created with BI Publisher and an rtf template.
    If you have any other ideas, please send them..your help is appreciated.
    Java.lang.ArrayIndexOutOfBoundsException: 0
         at oracle.xdo.common.image.ImageReader.checkFormat(ImageReader.java:130)
         at oracle.xdo.common.image.ImageReader.analyze(ImageReader.java:314)
         at oracle.xdo.common.image.ImageReader.load(ImageReader.java:510)
         at oracle.xdo.generator.pdf.PDFGenerator.createPDFImageReference(PDFGenerator.java:3261)
         at oracle.xdo.generator.pdf.PDFGenerator.getImage(PDFGenerator.java:3399)
         at oracle.xdo.generator.pdf.PDFGenerator.getImage(PDFGenerator.java:3388)
         at oracle.xdo.generator.ProxyStreamGenerator.getImage(ProxyStreamGenerator.java:121)
         at oracle.xdo.template.fo.area.AreaTree.getImage(AreaTree.java:779)
         at oracle.xdo.template.fo.area.InstreamForeignObjectArea.loadImage(InstreamForeignObjectArea.java:82)
         at oracle.xdo.template.fo.area.InstreamForeignObjectArea.init(InstreamForeignObjectArea.java:151)
         at oracle.xdo.template.fo.area.GraphicArea.<init>(GraphicArea.java:80)
         at oracle.xdo.template.fo.area.InstreamForeignObjectArea.<init>(InstreamForeignObjectArea.java:51)
         at oracle.xdo.template.fo.elements.FOInstreamForeignObject.doLayout(FOInstreamForeignObject.java:134)
         at oracle.xdo.template.fo.elements.FOInline.doLayout(FOInline.java:147)
         at oracle.xdo.template.fo.elements.FOInline.doLayout(FOInline.java:83)
         at oracle.xdo.template.fo.elements.FOBlock.doLayout(FOBlock.java:330)
         at oracle.xdo.template.fo.elements.FOBlock.doLayout(FOBlock.java:226)
         at oracle.xdo.template.fo.elements.FOBlock.doLayout(FOBlock.java:140)
         at oracle.xdo.template.fo.elements.FOFlow.doLayout(FOFlow.java:84)
         at oracle.xdo.template.fo.elements.FormattingEngine.startLayout(FormattingEngine.java:250)
         at oracle.xdo.template.fo.elements.FormattingEngine.run(FormattingEngine.java:141)
         at oracle.xdo.template.fo.FOHandler.endElement(FOHandler.java:720)
         at oracle.xdo.common.xml.XSLTHandler$EEEntry.sendEvent(XSLTHandler.java:595)
         at oracle.xdo.common.xml.XSLTMerger.startElement(XSLTMerger.java:51)
         at oracle.xdo11g.parser.v2.XMLContentHandler.startElement(XMLContentHandler.java:182)
         at oracle.xdo11g.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1322)
         at oracle.xdo11g.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:366)
         at oracle.xdo11g.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:312)
         at oracle.xdo11g.parser.v2.XMLParser.parse(XMLParser.java:218)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at oracle.xdo.common.xml.XDOSAXParser.invokeParse(XDOSAXParser.java:166)
         at oracle.xdo.common.xml.XDOSAXParser.parse(XDOSAXParser.java:122)
         at oracle.xdo.template.fo.FOProcessingEngine.process(FOProcessingEngine.java:407)
         at oracle.xdo.template.FOProcessor.generate(FOProcessor.java:1218)
         at RTF2PDF2.runRTFto(RTF2PDF2.java:473)
         at RTF2PDF2.runXDO(RTF2PDF2.java:337)
         at RTF2PDF2.main(RTF2PDF2.java:230)

  • BI Publisher pcl codes in rtf template

    Hi all,
    I am using Oracle Business Intelligence 11.1.1.6.9, with oracle database 11G on windows server 2008. I have need to embed pcl commands in rtf templates for printing purposes, but not sure how to do that.
    Only thing I found was PCL codes for use when check printing, but also a sentence saying that other pcl commands may work.
    There are two things I need if possible - on runtime, depending on value of a filed to change font color (let us say that signature must be sometimes red, sometimes green (font color) in same document), and other is if there is a option for "highlight" saying printer from which ink to print picture (let us suppose that original image is black, but for large xerox printers with black + one color  you say use that other color).
    PCL printer I try to use for now is on HP laserjet MFP 375 pcl printer, with pcl5 and pcl6 drivers installed.
    Should I use in rtf field or can I type these codes in text like xsl commands?
    Do I have to use {{beginPCL}}  and {{EndPCL}}?
    Is it enought to use escape sequences like this? <pcl><control><esc/>&l2S</control></pcl>
    Thanks and greetings
    Mario

    Hey Vijay,
    You cannot query in RTF using select :)..
    You have to mess/play with RDF to do it ;)
    Oh wait, did i say , we cannot in RTF, we can , but that is difficult approach to go with., keep this as an end of the world option.

  • Error: If statement in RTF template in BI Buplisher

    All,
    Can some help me to solve the below issue. Please find the code below one which is extracted from the water mark block in RTF template.
    <?if:(sum(//g_data[fiscal_period=/asset/p_fiscal_period]/q2_op_plan_ytd))>0?><?( sum(//g_data[fiscal_period=/asset/p_fiscal_period and q1_task_top="Opex"]/q1_cost_plan_ytd) ) div
    *(sum(//g_data[fiscal_period=/asset/p_fiscal_period]/q2_op_plan_ytd) ) ?><?end if?>*
    I wanted to apply if condition to the code after the " div " as if I get any value for q2_op_plan_ytd as zero the it should replace with 1.
    Please help me on this

    Solution found.

  • And/or if statement in rtf templates.

    Hi all,
    I'm using XML Publisher 4.5.
    I have created a word template file (rtf) for my reports. I need to be able to show some content in the template file by using and and/or if statement.
    fx. <?if:doc_type='STANDARD'?> OR <?if:doc_type='DEFAULT'?>
    How can I do this?
    In advance thank you.
    Best regards
    Kenneth

    Hi D,
    Thank you for your answer.
    I have seriously thought about that solution; but I don't think it's a smart way to do it.
    If i do it like that, i need to copy the whole table and paste it inside the if statements.
    I have two xml elements that I need to make the decisions on. POH_PO_TYPE & CP_RELEASE_NUM.
    POH_PO_TYPE can be: STANDARD, RELEASE or BLANKET.
    CP_RELEASE_NUM can be: '' or N
    If POH_PO_TYPE is RELEASE AND CP_RELEASE_NUM is not ''
    OR POH_PO_TYPE is STANDARD
    OR POH_PO_TYPE is BLANKET AND CP_RELEASE_NUM is ''
    THEN show table (which contains the whole PO).
    It shall show the content of the PO in any of these cases.
    BR Kenneth

  • Xslt graph in a rtf template. Can an external variable be used inside the graph definition?

    I'm working with BI Publisher 10g, building an rtf template that would display a table and a graph by iterating on one of the xml tags from the input file.
    I got the table working using am xslt variable set when the xml tag associated value changes (DATAGROUPID).
    <?for-each:(/DATA/SITE/SITE_DATA)?> <?sort:DATAGROUPID;'ascending';data-type='number'?>
    <?xdoxslt:set_variable($_XDOCTX,'SITE',DATAGROUPID)?>
    <?for-each:(/DATA//DIMS/LOCALES[LOCALE = 'en']/TEXT)?><?sort:DIMNAME;'ascending';data-type='text'?>
    <?xdoxslt:set_variable($_XDOCTX,'DIMID',DIMID)?>
    <?round(/DATA/SITE/SITE_DATA[DATAGROUPID = xdoxslt:get_variable($_XDOCTX,'SITE')]/YEAR[SURVEYYEAR = 2012]/DIM[DIMID = xdoxslt:get_variable($_XDOCTX,'DIMID')]/ITEM[ITEMID = 0]/PFAV)?>
    <?end for-each?>
    chart:
    <Graph seriesEffect="SE_AUTO_GRADIENT" graphType="BAR_VERT_PERCENT" autoLayout="AL_AS_NEEDED">
    <LegendArea visible="true" automaticPlacement="AP_NEVER" position="LAP_BOTTOM"/>
    <SeriesItems>
    <Series id="0" color="#FF0000"/>
    <Series id="1" color="#FFFF00"/>
    <Series id="2" color="#00FF00"/>
    </SeriesItems>
    <MarkerText visible="true" markerTextPlace="MTP_CENTER">
    <GraphFont name="Arial" size="20" bold="true" italic="false" underline="false"/>
    <Y1ViewFormat>
    <ViewFormat decimalDigit="0" decimalSeparatorUsed="true" decimalDigitUsed="true"/>
    </Y1ViewFormat>
    </MarkerText>
    <LegendText>
    <GraphFont name="Arial" size="20" bold="false" italic="false" underline="false"/>
    </LegendText>
    <Y1TickLabel>
    <GraphFont name="Arial" size="12" bold="false" italic="false" underline="false"/>
    </Y1TickLabel>
    <O1TickLabel wordWrapEnabled="false" tickLabelStaggered="false">
    <GraphFont name="Arial" size="20" bold="true" italic="false" underline="false"/>
    </O1TickLabel>
    <LocalGridData colCount="{count(xdoxslt:group(/DATA/SITE/SITE_DATA/YEAR[SURVEYYEAR = 2012]/DIM, 'DIMID'))}" rowCount="3">
    <RowLabels>
    <Label>Unfavorable        </Label>
    <Label>Neutral</Label>
    <Label>Favorable</Label>
    </RowLabels>
    <ColLabels>
    <xsl:for-each select="/DATA/DIMS/LOCALES[LOCALE = 'en']/TEXT">
    <xsl:sort select="DIMNAME"/>
    <Label>
    <xsl:value-of select="DIMNAME"/>
    </Label>
    </xsl:for-each>
    </ColLabels>
    <DataValues>
    <RowData>
    <xsl:for-each select="/DATA/DIMS/LOCALES[LOCALE = 'en']/TEXT">
    <xsl:sort select="DIMNAME"/>
    <Cell>
    <xsl:variable name="DIMID" select="DIMID"/>
    <xsl:value-of select="/DATA/SITE/SITE_DATA/YEAR[SURVEYYEAR = 2012]/DIM[DIMID = $DIMID]/ITEM[ITEMID = 0 and PUNFAV != 0]/PUNFAV"/>
    </Cell>
    </xsl:for-each>
    </RowData>
    <RowData>
    <xsl:for-each select="/DATA/DIMS/LOCALES[LOCALE = 'en']/TEXT">
    <xsl:sort select="DIMNAME"/>
    <Cell>
    <xsl:variable name="DIMID" select="DIMID"/>
    <xsl:value-of select="/DATA/SITE/SITE_DATA/YEAR[SURVEYYEAR = 2012]/DIM[DIMID = $DIMID]/ITEM[ITEMID = 0 and PNEU != 0]/PNEU"/>
    </Cell>
    </xsl:for-each>
    </RowData>
    <RowData>
    <xsl:for-each select="/DATA/DIMS/LOCALES[LOCALE = 'en']/TEXT">
    <xsl:sort select="DIMNAME"/>
    <Cell>
    <xsl:variable name="DIMID" select="DIMID"/>
    <xsl:value-of select="/DATA/SITE/SITE_DATA/YEAR[SURVEYYEAR = 2012]/DIM[DIMID = $DIMID]/ITEM[ITEMID = 0 and PFAV !=0]/PFAV"/>
    </Cell>
    </xsl:for-each>
    </RowData>
    </DataValues>
    </LocalGridData>
    </Graph>
    <?end for-each?>
    So, on the table this line gets the correct variable from the input file:
    <?round(/DATA/SITE/SITE_DATA[DATAGROUPID = xdoxslt:get_variable($_XDOCTX,'SITE')]/YEAR[SURVEYYEAR = 2012]/DIM[DIMID = xdoxslt:get_variable($_XDOCTX,'DIMID')]/ITEM[ITEMID = 0]/PFAV)?>
    How can I replicate that logic inside the table definition?
    <xsl:value-of select="/DATA/SITE/SITE_DATA/YEAR[SURVEYYEAR = 2012]/DIM[DIMID = $DIMID]/ITEM[ITEMID = 0 and PFAV !=0]/PFAV"/>
    Input data looks like this:
    <DATA>
    - <SITE>
    - <SITE_DATA> 
    <DATAGROUPID>1032817</DATAGROUPID>  
    <DATAGROUPNAME>My Sales</DATAGROUPNAME>  
    - <YEAR> 
    <SURVEYYEAR>2012</SURVEYYEAR>  
    - <DIM> 
    <DIMID>1</DIMID>  
    - <ITEM> 
    <ITEMID>0</ITEMID>  
    <PFAV>88</PFAV>  
    <PNEU>13</PNEU>  
    <PUNFAV>0</PUNFAV>
    - <ITEM> 
    <ITEMID>40</ITEMID>  
    <PFAV>100</PFAV>  
    <PNEU>0</PNEU>  
    <PUNFAV>0</PUNFAV>  
    </ITEM>
    </DIM>
    </YEAR>
    </SITE_DATA>
    - <SITE_DATA> 
    <DATAGROUPID>1032816</DATAGROUPID>  
    <DATAGROUPNAME>Your Sales</DATAGROUPNAME>  
    - <YEAR> 
    <SURVEYYEAR>2012</SURVEYYEAR>  
    - <DIM> 
    <DIMID>1</DIMID>  
    - <ITEM> 
    <ITEMID>0</ITEMID>  
    <PFAV>71</PFAV>  
    <PNEU>25</PNEU>  
    <PUNFAV>4</PUNFAV>  
    I can include a complete sample on request, I thought this would be enough to illustrate the issue.
    I'll appreciate any help you can provide.

    I kept researching, I found some possible solution in this blog:
    https://blogs.oracle.com/xmlpublisher/category/Oracle/Templates/RTF
    so, I created a local SITE variable inside every cell to get the external SITE info:
    <Cell>
    <xsl:variable name="DIMID" select="DIMID"/>
    <xsl:variable name="SITE" select="{xdoxslt:get_variable($_XDOCTX,'SITE')}"/>
    <xsl:value-of select="/DATA/SITE/SITE_DATA[DATAGROUPID = $SITE]/YEAR[SURVEYYEAR = 2012]/DIM[DIMID = $DIMID]/ITEM[ITEMID = 0 and PUNFAV != 0]/PFAV"/>
    </Cell>
    but I get this error at run time:
    oracle.xdo.parser.v2.XPathException: Error in expression: '{xdoxslt:get_variable($_XDOCTX,'SITE')}'.
        at oracle.xdo.parser.v2.XSLProcessor.reportException(XSLProcessor.java:806)
        at oracle.xdo.parser.v2.XSLProcessor.newXSLStylesheet(XSLProcessor.java:571)
        ... 14 more
    What am I doing wrong?

  • Changing HTML head in RTF template?

    Hello everybody,
    I have a question concerning RTF templates and BIP's HTML output: Is it possible to add information to the <head> section of HTML pages generated by BI Publisher when creating the RTF template? And if it is, can somebody tell me how to do it?
    Thanks in advance!

    Hello Naveen,
    thank you very much for the link. Unfortunately this seems to be unsupported by BI Publisher.
    Instead of showing my report, BIP displays the following error message: +"element Header is not supported yet."+
    Thank you again for your efforts.
    kv12

  • RTF templates and word cell padding.

    Hi.
    I'm having a problem with numbers in an XML Publisher report. Generated RTF templates don't seem to retain the cell padding properties.
    Has anyone got any suggestions on how to get round this?
    Thanks.
    Steve.

    Well there appears to be a bug in the RTF generator.
    It appears that Oracle want to use paragraph left and right indentation properties to pad text in cells away from cell borders. There is a bug in the rtf reader in word that causes problems if cell padding properties are used so paragraph indentation appears a sensible work round.
    By default there appears to be a left hand indentation of 5 applied to all paragraphs in cells. If a left hand cell maring is applied to cells then the left hand cell margin in the report increases in size.
    However, right hand cell margins appear to be ignored and NOT written as attributes to cell paragraph text in the the generated report, and this causes problems when trying to print an RTF report as numbers in cells get clipped by cell borders.
    Edited by: user7137712 on 18-Mar-2010 03:21

  • How can we get Dynamic columns and data with RTF Templates in BI Publisher

    How can we get Dynamic columns and data with RTf Templates.
    My requirement is :
    create table xxinv_item_pei_taginfo(item_id number,
    Organization_id number,
    item varchar2(4000),
    record_type varchar2(4000),
    record_value CLOB,
    State varchar2(4000));
    insert into xxinv_item_pei_taginfo values( 493991 ,224, '1265-D30', 'USES','fever','TX');
    insert into xxinv_item_pei_taginfo values( 493991 ,224, '1265-D30', 'HOW TO USE','one tablet daily','TX');
    insert into xxinv_item_pei_taginfo values( 493991 ,224, '1265-D30', 'SIDE EFFECTS','XYZ','TX');
    insert into xxinv_item_pei_taginfo values( 493991 ,224, '1265-D30', 'DRUG INTERACTION','ABC','TX');
    insert into xxinv_item_pei_taginfo values( 493991 ,224, '1265-D30', 'OVERDOSE','Go and see doctor','TX');
    insert into xxinv_item_pei_taginfo values( 493991 ,224, '1265-D30', 'NOTES','Take after meal','TX');
    select * from xxinv_item_pei_taginfo;
    Item id Org Id Item Record_type Record_value State
    493991     224     1265-D30     USES     fever     TX
    493991     224     1265-D30     HOW TO USE     one tablet daily     TX
    493991     224     1265-D30     SIDE EFFECTS     XYZ     TX
    493991     224     1265-D30     DRUG INTERACTION     ABC     TX
    493991     224     1265-D30     OVERDOSE      Go and see doctor     TX
    493991     224     1265-D30     NOTES     Take after meal     TX
    Above is my data
    I have to fetch the record_type from a lookup where I can have any of the record type, sometime USES, HOW TO USE, SIDE EFFECTS and sometimes some other set of record types
    In my report I have to get these record typpes as field name dynamically whichever is available in that lookup and record values against them.
    its a BI Publisher report.
    please suggest

    if you have data in db then you can create xml with needed structure
    and so you can create bip report
    do you have errors or .... ?

  • XML Publisher:Concurrent Prg not picking the RTF Template

    Hi All,
    We developed the rdf report and design the layout and we registred it.when we run the concurrent program program is not picking the RTF template.
    We are using the Following version.
    Oracle Apps 11.5.10
    xml pub is 5.6.2
    So please do the need ful, pleaseeeeeeee
    Thanks & Regards
    Leela

    that suggests you haven't got the setup of the data definition and/or the layout template right.
    Go into the XML Publisher administrator responsibility and select 'Data Definition'
    You need to make sure that when you create the data definition it has the same code as the concurrent program short name and application. This is the connection between the two.
    Having create the data definition, click on the 'Templates' tab and create a template. It should connect with the data Definition you have just created.
    Now upload your layout template file.
    If you have this right, then you will be able to see the layout template from the onsite setting tab.

  • Maximum Number of record Per page using XML Publisher with RTF template

    Hi
    I am creating customer statement and want to show only 20 records per page. How we can set maximum number of repord per page in rtf template.
    Thanks
    Ravi

    Ravi,
    I hope you are already done with this. In the invoice there is a nice example you can use on the xml blogs.
    You limit the number of lines per page when you use the xsl commands like this in your template:
    <xsl:variable name="lpp" select="number(13)"/>
    <?for-each@section:LIST_G_INVOICE?>
    <xsl:variable xdofo:ctx="incontext" name="invLines" select=".//G_LINES[LINE_TYPE='LINE']"/>
    <?for-each:$invLines?> <?if:(position()-1) mod $lpp=0?> <xsl:variable name="start" xdofo:ctx="incontext" select="position()"/>
    and then you have the table where you have the data
    <?for-each:$invLines?><?if:position()>=$start and position()<$start+$lpp?>
    and all your lines
    and then
    <?end if?><?end for-each?>

  • Reseting page number in Word RTF template for BI Publisher PDF generation

    Hi!
    Apex 4.0.2, Oracle 10.2.0.4, BIP 10.2
    Bills are created based on Word RTF file with BI Publisher. Reszulting file is one big PDF file, which has many pages.
    Word RTF template is grouped on BILLS.ID field with page break option. So one BILLS.ID may have one or many pages (according data).
    How to create RTF template (for PDF BI Publisher generation) with reseting page numbers when grouping value change.
    Page numbers are in footer in format
    curr_group_page/total_group_pages
    where:
    curr_group_page is current page number in group (defined with BILLS.ID field),
    total_group_pages is total page number of pages in group (defined with BILLS.ID field).
    I need to reset numbering whenever BILLS.ID (group) change.
    Example:
    ID=1 (4 pages)
    1/4, 2/4, 3/4, 4/4
    ID=2 (1 pages)
    1/1
    ID=3 (2 pages)
    1/2, 2/2
    ID=4 (3 pages)
    1/3, 2/3, 3/3
    etc.
    How to achieve that kind of numbering?
    Any help appreciated.
    Regards,
    Damir Vadas
    Edited by: Damir Vadas on May 16, 2011 12:49 PM

    Simple question.. Does your posting deal with an APEX issue or a BI Publisher issue? The posting you have deals with the RTF add-on for Word that builds report layouts for BI Publisher. I suggested in my response that you move it to a more relevant forum..
    If you feel that me alerting you to the fact your are VIOLATING forum policy is an issue, please feel free to ask others their view.. (posting to a 3 year old closed thread, creating MULTIPLE threads for a single issue..) You do NOT seem to get the idea that posting this in the Bi Publisher support forum would probably get you a BETTER response than here.. Asking pl/sql questions here will also get people to refer your questions to the PL/Sql Support forum..
    Also, here is a POSSIBLE answer from the BI Publisher Forum: http://forums.oracle.com/forums/thread.jspa?threadID=594805
    This Is The APEX SUPPORT forum, we deal with SUPPORT questions on APEX (Application Express)..
    Thank you,
    Tony Miller
    Webster, TX
    You know, I used to think that it was awful that life was so unfair. Then I thought, wouldn't it be much worse if life were fair, and all the terrible things that happen to us come because we actually deserve them? So, now I take great comfort in the general hostility and unfairness of the universe.
    If this question is answered, please mark the thread as closed and assign points where earned..

  • Creating Parameters in RTF Template for BI Publisher Report

    hi,
    I have created Parameters in my BI Publisher Report and in SQL query. But i need to create same parameters in RTF Template , so that when i publish this report in dashboard , parameters will be visible. Can you please tell me how to create Parameters in RTF Template for BI Publisher Report ? I am not finding option. Please let me know .
    Thanks in advance
    Gayathri.

    all the parameter's value will be there in your xml .
    just you need to add parameter heading and corresponding xml tag name to get the parameter value on the report.
    if u dont have you can try like below
    https://blogs.oracle.com/xmlpublisher/entry/get_your_parameters_here_guv
    Declare Parameter in RTF Template
    Before you use the parameter in the RTF template file you need to declare it first. You can do so by having the following syntax.
    <?param@begin:%parameter_name%?>
    Note: where %parameter_name% is the parameter name that you have created at the BI Publisher Server UI.
    Here is an example:
    <?param@begin:param1?>
    Use it in RTF Template!
    Once it’s declared in the RTF template you can start using it as the same way you use the variable. You need to just add ‘$’ prefix in front of the parameter name. Here is the example:
    <?$param1?>
    The above example would print the parameter value in the report output. If you want to use this value in your condition or calculation you can simply use it as ‘$param1’. Yes, it’s that simple.
    If you are not sure if and how the parameter values are passed to the report when you run the report you can use this command in your RTF template, which will return all the parameter values passed to the RTF template at the runtime.
    <?xdoxslt:getXDOProperties($_XDOCTX)?>
    http://kirti-bi-solutions.blogspot.com/2009/06/passing-parameters-from-obiee.html

Maybe you are looking for

  • Changing vendor reconcillation account

    Hi Friends,                    While uploading vendor master data, I have missed one vendor's reconcillation account.Now, when I want to create entries in XK02, this field is grey. I have gone through the threads, some suggested to change in VMR. wha

  • Clicking noises on brand new laptop.

    Hi, I bought a HP Pavilion 15-e 013sa on Monday from Curry's and when home I noticed it was making quiet clicking noises on the left (or middle). I took it back to the shop and was given a new one to pick up today. Got it home and it's making the sam

  • Can't move movie from itunes library back to itouch

    Agreed to have latest version update downloaded to itouch; went back to itouch and noticed movie that was purchased on itouch suddenly was not there. It is on computer under "purchased on itouch" and in itunes library. When I try to move movie back t

  • Deprecated and internal proprietary API in Java

    Hi, all I'm facing a problem right now that our product is near to the ending of the life cycle and won't t have big release from 2013. Hence we are thinking that the JRE/JDK in the product should be stable enough and will not have significant change

  • JNDI naming exception: javax.naming.ServiceUnavailableException

    Hi, I am running a standalone version of WLS 6.1 sp4. When I start WLS, it throws this exception: <Mar 19, 2004 2:39:11 PM PST> <Critical> <Log Management> <Unable to contact managed server - med1d2ms01, at d_conitti/10.0.4.81:7301. Domain logfile wi