Grouping in rtf template like oracle reports - a newbie question

Hello all
I am new to BI Publisher and have probablly a silly question to ask.
I have a basic query that returns a flat xml file which looks something like this. it will have multiple rows.
<ROWSET>
<ROW num="1">
<DATE>01-DEC-2007</DATE>
<PACKAGE>XXX </PACKAGE>
<DROP_OFF>Hotel1</DROP_OFF>
<ROOM>1</ROOM>
<NAME>Test Customer</NAME>
<PROBLEM_RECORDED>N</PROBLEM_RECORDED>
<EXCEPTION>1</EXCEPTION>
</ROW>
</ROWSET>
Because i am fairly new to xml i am at a loss trying to work out how i can form a template that will effectively allow grouping at say
1. Date Level
2. Package Level
3.Drop Off level
4. put all other data in here
In reports i would just do groups and alter the layout accordingly. Obviously if i had an oracle report version of the sql that generates the xml then i could just generate the xml from the report and i would get the xml i am looking for .
But I am working with basic sql not reports and am wondering What do I have to do with my xml to get it looking live the grouping I mention above, given all i have to play with is the example xml I included. I am really bamboozled and think i am missing something simple.
I dont want to have to write multiple queries with different groupings using cast , multiset as I thought one of the benefits of BI Publisher was one query multiple layouts.
Thanks
Lisa

If you haev word plugin installed,
please follow the documentation and try using that,
load the xml in the word plugin
and then select insert table/form and then you can do the drag and drop,
and group by each fields.
http://blogs.oracle.com/xmlpublisher/2006/10/30
http://blogs.oracle.com/xmlpublisher/2007/10/30

Similar Messages

  • If like condition in rtf (template for oracle report)

    i'm begineer developer in oracle ebs i'm using report builder and rtf (xml) template to build report
    can anyone help my i want to make 2 layout in 1 template (1 rtf file) and give condition with if, lower and like (in sql i'm use like) but is error
    i give this query in my rft template:
    <?if: lower(WORK_ORDER_TYPE) like 'breakdown'?>
        <?start:body?>
            my_template
        <?end:body?>
    <?end if?>please help my for this problem
    thank you very much

    You can use choose too,
    note: the conditions are same
    <?choose:?>
    <?when: SHIP_COUNTRY_CODE=’IT’?>
    <?concat(‘Iscrizione Registro AEE n.’,WEEE_REG_NUM)?>
    <?end when?>
    <?when: SHIP_COUNTRY_CODE=’IT’?>
    <?concat(‘WEEE Registration No.’,WEEE_REG_NUM)?>
    <?end when?>
    <?end choose?>

  • Custom RTF templates in Oracle Core Contracts ..

    Hello:
    We want to create custom RTF templates in Oracle Core Contracts along with custom data templates.
    We do not want to use XSL-FO templates since we are finding this too complex to work with ... also the fact that the XML data is being generated by some internal OAF processes that we cannot control.
    This is unnecessarily too complex for us.
    Can we create our own reporting using XML -Publisher and integrate it in the system ?
    Any thoughts on this would be appreciated ... Yesh

    Srini:
    I did read those pages and unless I am missing something .. it is basically saying the follwing:
    Copy the seeded XSL-FO templates and make changes to them and then upload them back. I have no real access to the xml data since it is somehow pre-generated. I do not have a choice of using RTF templates along with the ease of Word based formatting.
    The above process goes against the way in which we can write our own reports in XMLP:
    (a) Create our own data templates (use our own SQL)
    (b) Create our own layout templates (using RTF or XSl_FO)
    So I am stuck into undertsanding .... OAF, Java API's ,etc that I should not have to understand to generate a report ...
    yesh

  • How to create rtf template to view report in Word and Excel, with numeric f

    Hi,
    Please help me!
    How to create rtf template to view report in Word and Excel, with numeric formatted fields (like this 999 999 999,99 with spaces between numbers) and then end user be able to process those fields with Excel tools (sum, etc).
    Thank you.

    From what I have seen Excel can not handle 999 999 999.00. You can use 999999999.00 and then format it as you want in the xls bt you can not have values like 999 999 999.00 coming from publisher output and have functions on the values in Excel
    Tim

  • How can i display image in RTF template when Oracle Apps running in Windows

    Can any body help how can i display image in RTF template when oracle apps running in Windows Server.
    Thanks
    Ravi

    Hi Ravi,
    You can add images into your rtf template using MS Word Insert Picture feature.
    Did you try this method?
    Thanks
    Ravi
    [email protected]

  • Avery Label templates for Oracle reports

    Does anyone have or know of pre-defined templates for Oracle
    reports that are setup for Avery Labels?
    Thanks in Advance.
    Chris Schneider
    http://www.awebguru.com
    [email protected]

    I'm sorry, but Pages won't correctly open the Avery templates with the .doc extension. They open, but all the formatting is lost. Just a blank page.
    I tried to chane extension to .template, as suggested by the Pages -Help window. That didn't work either.
    Talk about a daily necessity as a feature.

  • Issue in grouping in RTF template

    HI ALL,
    I have a requirement as below.
    The report header part contains : Order number,
    Email_address,
    the report body part contains the details for each order like
    item number, item name
    Again the line section is based on the another group, so it should repeat for each group.
    My requirement is in header section for each order and email address i need to repeat the while header and line for a order.
    Ex: Header : Order_number :101
    Email :abc&gmail.com
    Line section :
    Here we have another group like demand_class
    DEMAND_CLASS : 'ABC'
    Item1: abc,
    item quantity1 :1
    DEMAND_CLASS : 'DEF'
    Item2: abc,
    item quantity2 :1
    Header : Order_number :101
    Email :def&gmail.com --------------------------------------same data only email changed
    Line section :
    Here we have another group like demand_class
    DEMAND_CLASS : 'ABC'
    Item1: abc,
    item quantity1 :1
    DEMAND_CLASS : 'DEF'
    Item2: abc,
    item quantity2 :1
    Another section : to display total calculation for each demand class for a order.
    So my requirement is to repeat the same data for each order and email address.
    Please help me on this

    If the demand_class group is under your first group, then you need to go one level up by using "../".
    So try using ../order_number, ../Email_address
    I really need to see your xml data structure.
    Send me the RTF template and xml file to [email protected] and I will try to help.
    Thanks,
    Bipuser

  • BI Publisher -RTF Template issue: Output report not maintaining text with bullets and numberings.

    Hi All,
    I am currently working with generating reports using BI Publisher. My issue is that when I will preview the output(in PDF and RTF) format's  of the newly created template, then, if the data coming from DB have some bullets or numbering, then the BI publisher output will ignore the same and will show the complete data as one single line.
    For example if the data in the DB Field is like below:
    The XYZ has the below sub-parts:
    ABC : This again has two parts:
    abc1
    abc2
    CDE
    FGH
    Then  this data will appear as below in the BI Publisher output report's:
    The XYZ has the below sub-parts: •   ABC : This again has two parts:  o     abc1  o   abc2   •    CDE    •   FGH
    I want the format of the data (with bullets and number's) should be maintained in the BI Publisher Report as well, but I am unable to find any solution for the same.
    Any help on the same is much appreciated.
    Deep Bhoj

    in your query will u get all the columns always null when column1 is null
    in your template for each group u can write like below
    think G_1 as group in your xml
    <?for-each:G_1[COLUMN1!='']?><?COLUMN1?><?COMMENTS?><?end for each?>
    or if u are not sure u get null in both places every time u can write like below
    <?for-each:G_1[COLUMN1!='' and COMMENTS!='']?><?COLUMN1?><?COMMENTS?><?end for each?>

  • Not able to use @section and Sort within a group in RTF Template

    When i try to use sort with for-each-group@section in my template, the Output Post processor is throwing the following exception
    Caused by: oracle.xdo.parser.v2.XSLException: <Line 31, Column 84>: XML-22047: (Error) Invalid instantiation of 'xsl:sort' in 'fo:flow' context.
    My tags in the RTF template are as below:
    <?for-each-group@section:G_PERSON_ID;./DEPT?><?sort:DEPT;'ascending';data-type='text'?>
    -- there are 2 more groups within this.
    <?end for-each-group?>
    I don't get the error if i remove @section from the above tag in my RTF template.
    OR
    IF i remove the sort tag and keep the @section , it still works.
    I need the "sort" so that i can sort the output by department number and I need the "section" so that i can acheieve context based header title for the page using the tag given below in the header area of the word RTF doc. The DEPT number should change as per the data shown in the report.
    DEPT <?DEPT?> CLASSIFICATION SENIORITY LISTING BY CLASS CODE & DATE
    I am stuck with either being able to use the Sort or the Header feature but not both.
    I guess that section is needed for the context based header title to work, because all the data shown in the current page should correspond to only one single DEPT value (to make the Header title consistent with the data). But i dont get why i am not able to sort. The exception from OPP simply beats me. Please help!!
    I am using the XML Pub Desktop 5.6.2 to develop my templates.
    Is there any way to acheive this? Can someone throw some light on this.
    Thanks in advance.

    Help About says I'm on 20.0.1
    Up until last week, I was able to use the tab key when typing emails and other multi-line text boxes.
    Suddenly the behavior of the tab key changed. This isn't the first time. It's been quite a while ago that the function of the tab key changed from indenting to moving around the page, then after some time it changed back to indenting.
    Can we get this fixed and leave it alone, please?
    I may give one of those add-ins a try, but my problem with add-ins is that they break when FF is patched or upgraded, then I'm left with out the solution they provide.
    Can we just fix Firefox, please?
    Thanks,
    Frank
    P.S. Another potential fix I came across suggested starting FF in safe mode to see if the problem goes away. It does not. It seems to be a change to FF that appeared after an update last week. On or just befor 24 Apr.

  • Run XML Publisher Report  via URL (like Oracle Reports)

    Hi All,
    Is it possible to run xml-publisher report via URL?
    In Oracle Reports works this fine:
    http://test:7777/reports/rwservlet?server=test_bihome1&report=test1.rdf&userid=test/testv@db&desformat=pdf&destype=cache
    We need this for public reports without user login.
    Thanks
    Thomas

    Thomas,
    I was waiting to get home before Tim replied... He got the better of me this time :-)
    You say you want to let your users run reports using XMLP just by clicking on an URL same way you do with reports and without having to login. If I got the question right and assuming that:
    1.Your company is not overly concerned on who runs what reports
    2.Who sees what data
    3.Your XMLP installation is on your intranet and firewalled from the outside
    What you can do is:
    On the main page of your XMLP Enterprise installation you should see a folder called "Guest". Any report you create under this folder is run as user "guest" which means you don't have to authenticate yourself as you would normally do.
    I have tested this on my home server and this is what I've done:
    1.Logged in as admin or any other user you've created with admin privileges created a report under the "Guest" folder.
    2.Copied the URL, on my server it is "http://samba.private.net:15101/xmlpserver/Guest/People/People.xdo"
    4.Logged off as admin and pasted the URL to a new browser window
    5.Hit return and Voila, my report runs without the need to login to XMLP.
    Hope this helps. Let us know how you got on.
    Cheers,
    Joao
    PS: If you want to see the report for yourself here's the URL from the outside: http://medeiros.homelinux.net:15101/xmlpserver/Guest/People/People.xdo
    I'll keep the link alive for a couple of days.

  • How to Print Footer details conditionally in RTF template ( XML Bi report)

    Hi,
    I have a XML ( BI) report. in which i am printing carry frwd / running total/ sub group total values in the footer section.
    I have add one more condition to display the footer values based on the <xdofo:show-carry-forward ...> values.
    Please suggest and help me on this, how to handle this case.
    Regards,
    KAP.

    Hi,
    Thanks for the reply...
    Actually i am looking for the following scenarios :
    1. i want to Hide/ Don't show last 3-pages Footer information in the report.
    2. While i am displaying the Carry forward information in the report
    a. if the page/ running total is 0, i don't want to display the footer information.
    b. only case if the page/ running total is > 0, i want enable footer information dynamically for each page.
    i have done as follows :
    in the Template main body :
    *<?template:footer?>*
    **1000* *1000**
    *<?end template?>*
    and for behind 1000 currently :
    <xdofo:inline-total display-condition="exceptlast" name="RUNAMT"><xdofo:show-carry-forward name="RUNAMT" format="99G999G999D00"/></xdofo:inline-total>
    it was printing the " RUNAMT " calculated page total sucessfully. but here if the Total = 0 then i don't want to show the value in FOOTER...
    Thanks in Advance.
    Please let me know, if more information required to help..
    KAP..

  • Oracle 10G Express Newbie questions

    Hello everyone! I am completely new to oracle and I was wondering if you guys could answer some of my questions. I installed Oracle 10g Express rpm (oracle-xe-univ-10.2.0.1-1.0.i386.rpm) and Zend for oracle with the assumption that all the environmental variables would be set and everything would be ready. Unfortunately, this was not the case:
    The instructions say to setup the ORACLE_BASE and ORACLE_HOME but I don't know what those need to be. I'm assuming ORACLE_HOME can be any directory and ORACLE_BASE is the path to libraries or executables or something. This is not very clear to me in the instructions. By the way, X windows is not installed on my server so everything I do must be from the shell.
    My question are:
    1) On a standard rpm install of 10g Express, what should the environmental variables ORACLE_BASE & ORACLE_HOME be (installed in /usr/lib/oracle/ ) ?
    2) Assuming that X windows is not installed, what are the best ways to connect to the DB? sqlplus? http://www.test.com:8080/apex? clients?
    3) Can the windows client be used to connect to 10g Express on a linux server?
    [root@localhost javier]# /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/sqlplus
    Error 6 initializing SQL*Plus
    Message file sp1<lang>.msb not found
    SP2-0750: You may need to set ORACLE_HOME to your Oracle software directory
    [root@localhost javier]# env
    HOSTNAME=localhost.localdomain
    TERM=xterm
    SHELL=/bin/bash
    HISTSIZE=1000
    OLDPWD=/
    SSH_TTY=/dev/pts/0
    USER=root
    ORACLE_SID=orc1
    ORACLE_BASE=/usr/lib/oracle/xe/app/oracle
    MAIL=/var/spool/mail/root
    PATH=/usr/lib/oracle/xe/app/oracle/product/10.2.0//bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/binINPUTRC=/etc/inputrc
    PWD=/home/javier
    LANG=en_US.UTF-8
    SHLVL=1
    HOME=/root
    LOGNAME=root
    LESSOPEN=|/usr/bin/lesspipe.sh %s
    ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/sqlplus
    G_BROKEN_FILENAMES=1
    _=/bin/env

    The question is more appropriate in the XE forum at Oracle Database Express Edition (XE)
    Hopefully you already registered your copy of XE so you have access to the forum. Otherwise look for the registration link at http://www.oracle.com/technology/products/database/xe/index.html

  • RTF Templates and report file (.xdo)

    Hi all,
    I use Oracle report and I would like to migrate from that software to Oracle BI Publisher. During my tests, I encountered various problems like the following:
    I create my report (.xdo file is generated) in development with one RTF template. I load my template in the report and the system copy the rtf file is the same directory as the .xdo file. Also, the system modify the .xdo file to add a line like:
    <templates default="stkcinv">
    <template label="stkcinv" type="rtf" url="stkcinv.rtf" outputFormat="html,pdf,rtf"/>
    </templates>
    When my report and template are ok, I update my customer to install them in production mode. When they are installed, my customer would modify the RTF template so he duplicates the RTF template, modify the file and load it in the report. Now, in the report, I have two lines:
    <templates default="stkcinv">
    <template label="stkcinv" type="rtf" url="stkcinv.rtf" outputFormat="html,pdf,rtf"/>
    <template label="stkcinv2" type="rtf" url="stkcinv2.rtf" outputFormat="html,pdf,rtf"/>
    </templates>
    For my part, I modify the report in development to add a new value in the datamodel. Then I update another time my customer and erase the standard report by the new.
    the problem is that doing that, if I look at the .xdo file, I see that in the <templates> section, I have:
    <templates default="stkcinv">
    <template label="stkcinv" type="rtf" url="stkcinv.rtf" outputFormat="html,pdf,rtf"/>
    </templates>
    So the templates loaded in the .xdo file is lost and my customer must reload it in the new report. If my customer has 100 reports, each time I update the soft, he will have to reload all templates... Amazing...
    How can I do to avoid that problem ?

    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

  • .rtf template and bi server repository failure (newbee tutorial)

    I've installed BISE1 on Windows Server 2003 and followed the tutorial. I successfully fulfilled all the excercises except the last one: the creation of Oracle BI Publisher Report from BI Server Metadata. I have created .rtf template in Word. The preview of the template is working showing data. But when I connect to BI Publisher and open From BI Server report and click View I get the message: "The report cannot be rendered because of an error, please contact the administrator." And as the error detail: String index out of range: -1
    What could be the reason of that problem? Or where to search for the solution of that problem?
    Any help for newbee will be appreciated.
    Regards
    Adam

    Hi,
    I am having the exact same issue.
    I've created a .rtf template using Oracle BI Publisher Desktop. I insert a very simple table and a very simple Chart (a bar graph) just to test it out. The table and the chart wwere showing correct data in the rtf and the pdf when I preview it on the BI server located on my local machine, and when I click on validate template in word, no errors were found. However when I run the pdf in the client BI Publisher Server, the charts doesn't show up in the pdf output while the other contents (headers, tables) are displayed correctly. If I select the html output in the client BI Publisher server, it gives the same error mention above: The report cannot be rendered because of an error, please contact the administrator." And as the error detail: String index out of range: -1
    What security configurations do I have to check? If anyone can give a more detail explanation on this will be greatly appreciated. Thanks in advance!

  • Layout issue while trying Migrate Oracle Report to XML publisher Reports

    Hi
    I am trying to Convert Seeded Oracle Reports (rdf) to BI Publisher reports, in doing so encounter layout issues. The layout of the RTF , PDF or HTML generated by BI Publisher is different form the text, PDF or HTML outputs generated by the concurrent report. The problem with the BI Publisher template and out put
    Is, the lay out is getting distorted .
    Steps to archive the migration :
    -     download the rdf from the server to local m/c.
    -     execute Forms 9i Util rwconverter to generate a xml
    -     use the oracle.apps.xdo.rdfparser.RTFTemplateGenerator API to generate a RTF template of the report layout
    -     Then use this template to generate a XSL via oracle.apps.xdo.template.RTFProcessor API
    -     The Apply the XSL on the XML data output of the report using oracle.apps.xdo.template.FOProcessor to generate RTF , PDF & HTML files.
    Name of the Report used for migration “FSG - Report Detail Listing” , responsibility GL super User. This was just a random report we picked-up for trial.
    The layout of these files seems to distorted than the layout of the original report output as generated by the rdf report.
    Pls suggest some means to resolve this or any pointers towards what causing this could be of help.
    -     Shudipto

    The process of "converting" an old Oracle Reports rdf into a BIP report is more akin to writing a brand new report in BIP than to what most people would consider a true conversion.
    The conversion routine outlined by Oracle just gives you a starting point for converting RDF layouts into BIP, and nothing more. In regards to the data define it does somewhat better generating your queries and XML layout (but honestly, that is the easy part), but even for the data define it will lose your formula columns as well as report triggers.
    I have used the converter on several dozen rdf files and I have yet to see one that is better than 10-20% ready for use after the conversion process.
    I would strongly suggest that you only convert the reports that you have to convert (for enhancements, modifications, etc). If it ain't broke in old Oracle Reports, dont' try to fix it in BIP.
    Scott

Maybe you are looking for