How to go one level up in xml publisher reports

Hi Experts,
I am working in XML Publisher reports; I am working Invoice report (standard report), below is my requirement.
Template sample:
<?for-each:G_INVOICE?>
<?trx_number?> <?trx_type?>
<?for-each:G_LINES?>
<?LINE_NUMBER?> <?COMMODITY_CODE?> <?QUANTITY?>
<?end for-each:G_LINES?>
<?end for-each:G_INVOICE?>
Requiremet: If 'trx_type' is INV i want to print commodity_code as COMMODITY_CODE else null.
I tried like this. It's didn't work out.
<?for-each:G_INVOICE?>
<?trx_number?> <?trx_type?>
<?for-each:G_LINES?>
<?LINE_NUMBER?> *<?xdofx:if TRX_TYPE='INV' then COMMODITY_CODE else CF_BID_ITEM end if?>* <?QUANTITY?>
<?end for-each:G_LINES?>
<?end for-each:G_INVOICE?>
Here, actually trx_type is in upper loop, it's not checking the TRX_TYPE='INV' condition, it's always going to else part. So I tried like below to go one level up.
*<?xdofx:if ../TRX_TYPE='INV' then COMMODITY_CODE else CF_BID_ITEM end if?>*
Still this is also not working. Is there any solutions, where we can use the upper level group field in line level to check the if condition.
Any suggetion is appreciated.
Kindly help.
Thanks in advance.

To go one level up from current,
you have to use ../ELEMENT_NAME Since you are trying to access a field in G_LINES context.
you have to open the xml and see, how may levels are there from G_LINES to G_INVOICE
if its 2 level up, then use ../../ELEMENT_NAME and likewise.

Similar Messages

  • How to get the  page count in XML Publisher Report

    Hi Team,
    I am generating one xml report. I want to get the total Page count in XML publisher report. This page count is depends on the input Parameters at runtime. How to get this total page count on the runtime dynamically.
    Best Regards
    Sri

    there is some seeded variable available please read xml publisher developer user guide

  • How to add a digital signature in xml publisher report

    The problem is: There is a existing pick slip report.This is a xml publisher report and the data source is RDF. We have to add digital signature there. Now this signature is stored in a table with type Long Raw and format BMP. XML Publisher do not support Long Raw and BMP format. It supports BLOB and jpg format.
    Could you please guide how to add this signature in the existing RDF with datatype as BLOB and format as jpg.
    Please provide the steps with example.

    Hi,
    Have a look at this thread.
    Implementing electronic signatures on an existing AP check run
    Re: Implementing electronic signatures on an existing AP check run
    Regards,
    Hussein

  • How to create editable PDF template for XML Publisher reports

    Hi,
    I have got a requirement to have some editable fields in one report whose output is in PDF format.
    I tried looking and saw this can be done using the XML Publisher report and using PDF template.
    But I got only Adobe Acrobat Reader and it does not have the facility to create Form fields.. Can you let me know what software I need in order to create the editable PDF Template.
    In the user guide, it didnot mention anything regarding this.
    Can I create editable PDF report using RTF template or do i have to got for PDF template only?
    Any help is appreciated!
    Thanks

    Hi,
    To edit PDF template , u need Acrobat writer, which is not free .
    I am still wondering what is this ?
    "" Can I create editable PDF report using RTF template ?? "".
    What is editable PDF report. ?
    i think what you tried to mention is ,
    can the PDF output from xml publisher is editable ?
    If that is the question , so here is some points,
    If you have Acrobat Writer or prof.edition, you can edit all the PDF documents irrespective of being from where it is generated.
    To make you understand more of XMLP.
    You create RTF template in word, so that , after merging with xml you can have multiple output formats like PDF, XLS, EFT,.....

  • How to print Barcode data in Oracle XML Publisher Report

    Hi,
    We have an rdf report which prints Bar code in the starting page based on a custom procedure from MarkView. It works well with Oracle Reports.
    But since the current report was a matrix report, we are changing it to a Linear report through Oracle XML Publisher Report.
    We have all the things possible in the new Oracle XML Report.. But we are unable to print the Bar code data which is BLOB in the XML Report..
    Can anyone help me on this? We have UAT dates around the corner..
    We have an RTF Template .
    Help asap.
    Thanks
    Abhilash

    Hi Abhishek,
    Bar code Registration Steps in XMLPublisher responsibility:
    1.    Go to responsibility XML Publisher Administrator
    2.    Open Administration
    3.    Open Font Files Tab
    4.    Create Font File
    5.    Give Font Name : XX_BARCODE
    6.    File : Browse Barcode file
    7.    Apply
    8.    Go to Font mapping Tab
    9.    Open Create Font Mapping Set
    10.    Give Mapping Name: XX_BARCODE
    11.    Give Mapping Code: XX_BARCODE
    12.    Type : FO TO PDF
    13.    Apply
    14.    Open Tab Create Font Maping
    15.    Font Family: Code39-Digits(This name should be exactly the font name comes in word)
    16.    Style: Normal
    17.    Weight: Normal
    18.    Target Font Type: Truetype
    19.    Continue
    20.    Font : XX_BARCODE
    21.    Apply
    1.    Go to Template Tab
    2.    Query for your template
    3.    Open Edit Configuration
    4.    Click on FO Processing
    5.    In Font Mapping set Give XX_BARCODE
    RTF Template (word):
    1.Design the RTF template
    2.Insert the barcode against reqd field
    3.Make sure to put an * before and after the barcode so that scanner understands the beginning and end
    Please send your rtf ,xml file if you are still facing issues.
    Rgds,

  • How to provide the fixed space in xml publisher report

    Hi,
    I have a report where the report has header information and line information.
    In the first page the header information is prinintg ( like 'Address', 'Logo' and other stuff ).
    Beneath of this the lines data is prining.
    But i need the space which was occupied by the header information in the subsequent pages 1, 2 and otheres
    How to do this , any help on this ?

    Hi,
    I would propose reviewing the eText documentation. I noticed that for RTF templates it's difficult explicitly set the length though within an eText template, you can specify the intended length.
    The Oracle post is, in my opinion, convoluted, though it's a point in the right direction
    Oracle Business Intelligence Publisher Report Designer's Guide
    Regards,
    Daniel

  • Calling XML Publisher report(RDF based) From OAF

    Hi All,
    I have requirement where i need to call one of the custom XML Publisher report from oaf by passing the parameters.
    and i dnt want this using concurrent program.
    I have an idea of calling xml publisher report which is Data Template based(XML).
    http://oracle-hack.blogspot.ae/2012/04/launching-xml-publisher-from-oa.html
    but in my case the report is RDF based.
    They are generating the XML using one of the custom rdf. How can we achieve this?
    Please help.

    Hi,
    Thanks for the reply.
    Yeah yes. this method i know in my case the Custom XML Report is based on a rdf.
    So just i want to know it can be achievable ir not? if so how?
    Thanks
    Bharat

  • One or more post-processing actions failed - XML Publisher report

    Hi all, I'm working with the following envinronment:
    Unix platform: HP-UX rp1 B.11.11 U 9000/800
    DB: Oracle9i Enterprise Edition Release 9.2.0.5.0 - 64bit Production
    eBS: EBS 11.5.9
    More in detail I have a problem when I run a request to see an XML Publisher Report. The request's status at the end is WARNING.....
    When I click on "View Output" I don't see nothing and inside the "View Log" I have this error:
    Executing request completion options...
    ------------- 1) PUBLISH -------------
    Beginning post-processing of request 1897375 on node RP1DEV at 10-SEP-2008 14:13:36.
    Post-processing of request 1897375 failed at 10-SEP-2008 14:13:37 with the error message:
    One or more post-processing actions failed. Consult the OPP service log for details.
    Following the Metalink Note 364547.1 I opened the OPP service log and this is the content:
    [9/10/08 2:51:09 PM] [OPPServiceThread0] Post-processing request 1897433.
    [9/10/08 2:51:09 PM] [72379:RT1897433] Executing post-processing actions for request 1897433.
    [9/10/08 2:51:09 PM] [72379:RT1897433] Starting XML Publisher post-processing action.
    [9/10/08 2:51:09 PM] [72379:RT1897433]
    Template code: XX_MANAGERS
    Template app: AR
    Language: en
    Territory: GR
    Output type: PDF
    [9/10/08 2:51:09 PM] [UNEXPECTED] [72379:RT1897433] java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at oracle.apps.xdo.common.xml.XSLT10gR1.invokeParse(XSLT10gR1.java:517)
    at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:224)
    at oracle.apps.xdo.common.xml.XSLTWrapper.transform(XSLTWrapper.java:177)
    at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:1044)
    at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:997)
    at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:212)
    at oracle.apps.xdo.template.FOProcessor.createFO(FOProcessor.java:1657)
    at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:967)
    at oracle.apps.xdo.oa.schema.server.TemplateHelper.runProcessTemplate(TemplateHelper.java:5888)
    at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3438)
    at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3527)
    at oracle.apps.fnd.cp.opp.XMLPublisherProcessor.process(XMLPublisherProcessor.java:187)
    at oracle.apps.fnd.cp.opp.OPPRequestThread.run(OPPRequestThread.java:153)
    Caused by: java.io.UnsupportedEncodingException: &Encoding
    at sun.io.Converters.getConverterClass(Converters.java:223)
    at sun.io.Converters.newConverter(Converters.java:263)
    at sun.io.ByteToCharConverter.getConverter(ByteToCharConverter.java:64)
    at sun.nio.cs.StreamDecoder$ConverterSD.<init>(StreamDecoder.java:223)
    at sun.nio.cs.StreamDecoder$ConverterSD.<init>(StreamDecoder.java:209)
    at sun.nio.cs.StreamDecoder.forInputStreamReader(StreamDecoder.java:76)
    at java.io.InputStreamReader.<init>(InputStreamReader.java:83)
    at oracle.xdo.parser.v2.XMLReader.setEncoding(XMLReader.java:848)
    at oracle.xdo.parser.v2.XMLReader.checkXMLDecl(XMLReader.java:2718)
    at oracle.xdo.parser.v2.XMLReader.pushXMLReader(XMLReader.java:471)
    at oracle.xdo.parser.v2.XMLParser.parse(XMLParser.java:263)
    ... 17 more
    [9/10/08 2:51:09 PM] [72379:RT1897433] Completed post-processing actions for request 1897433.
    Anybody have any idea where the error is ?
    Any help will be appreciated
    Alex

    You are right !!
    The problem is inside the report generated by Oracle Reports
    The XML code, which I retrieve running the report request is the following:
    <?xml version="1.0" encoding="&Encoding"?>
    - <!-- Generated by Oracle Reports version 6.0.8.20.2
    -->
    - <MODULE1>
    - <LIST_G_MANAGER_NO>
    - <G_MANAGER_NO>
    <MANAGER_NO>1000</MANAGER_NO>
    <MANAGER_NAME>Anil Passi</MANAGER_NAME>
    </G_MANAGER_NO>
    - <G_MANAGER_NO>
    <MANAGER_NO>1001</MANAGER_NO>
    <MANAGER_NAME>Martin</MANAGER_NAME>
    </G_MANAGER_NO>
    </LIST_G_MANAGER_NO>
    </MODULE1>
    and the problem is the "&" !!!
    So, inside Oracle Reports, when I try to generate the XML code from a preexisting report, the encoding variable is not set.
    Now, I'm trying to understand how to set it, but I didn't find nothing....
    Somebody knows where can I find a Report's configuration file in order to set this "encoding" ?
    Thanks
    Alex

  • How to print output of XML Publisher report in different trays of a printer

    Hi All,
    I have a requirement in XML Publisher Report. I need to print all pages other than last one in one tray of a printer and the last page has to be printed in another tray of the same printer.
    Can anyone help me out...
    Thank You..

    I do not think it is possible to send all the pages to one tray and send only the last page to a different tray. However, you may review the following notes:
    Note: 357402.1 - How to Print the Output to a Different Paper Size Using XML Publisher Delivery Manager?
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=357402.1
    Note: 394130.1 - How To Enable Printer Options Such As Duplex Printing Or Tray Selections For Bitmap Concurrent Programs
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=394130.1

  • How to use 2 vo's in xml publisher pdf genarate report from oaf--urgent

    Hi Guru's,
    i am integrating xml publisher report from oaf. I found one good artical published by prabaker in apps2fusion site and i implemented the same. But it is used onley one view object to generate pdf. But in my case i want to use 4 view objects to generate report as pdf. So, kindly suggest me how to resolve this issue.
    below i mentioned the site name whihc i follwed to implement my requirement.
    http://apps2fusion.com/at/51-ps/260-integrating-xml-publisher-and-oa-framework.
    pls help me as i am not getting , how to solve this issue.
    Thanks in advance.
    Keerthana

    Hi,
    When we develop simple XML report also we used to get single data source either generated either from RDF or PL/SQL, in OAF XML data is coming from VO and XML Publisher API’s will process that data.
    This approach works fine if you are having one VO, but if you are having two VOs then it is not possible (As per my understanding and comparing this scenario with simple XML publisher report).
    I also faced same problem few months back, on my form I was having two VOs one for header and other for Lines and I have generate Report to show the data for both Headers and Lines. In my case I created a separate VO that was containing both Header and Line details and I was passing header Id to query that. I used query this VO only when someone clicks on “Print” button and it worked fine for me.
    Regards,
    Mahesh B.

  • How to change XML Tag sequence in XML Publisher Reports

    Hi Experts,
    I am working on XML Publisher reports, EBS 11I and Database 9i. I have standard report 'PO Printed Purchase Order Report (XML)', it's output type is XML. I want to change the sequence of groups in XML file.
    I am getting XML tags like below at present:
    LIST_G_HEADERS \ G_HEADERS \ LIST_G_HEADER_NOTES
    I want to change the sequence of groups like below.
    LIST_G_HEADERS \ G_HEADERS \ LIST_G_LINES \
    Could somebody help me how to change the sequence of XML Groups.
    Thanks in advance.

    Paul,
    This works.  Thanks!
    I am still working through the implications of having a data connection defined.  I notice that every time I submit, it creates two records in my database, one with all the fields blank, and one with the data and attachment.
    I will have to do some more digging into the double submission, but at least it is uploading the file.
    Thanks again,
    Ed

  • How do we handle User exits in XML Publisher

    Hi,
    Can anyone tell me how do we handle user exits in XML Publisher ?
    Thanks,
    Kiran.

    Do tyou mean the original Oracle Reports user exits ?
    If so then the flexfield ones are handled in the data template, check the user guide. Format currency should be called in the template layer. You do not need srw.init with data templates.
    Regards, Tim

  • XML Publisher Report:how to disappear the column if no data found

    Hi,
    I have a XMl publisher report requirement , the format is tabular lets say with the structure of 4 columns and 10 rows.requirement is to if suppose there is no data for row number 6 the row itself should not appear over the report and the immediate next row should come in place.
    please help me if any one of u has implemented the same.
    Ankit

    Ankit,
    This is almost hard to work although NOT impossible to achieve on the template.
    A little big of PL/SQL genius where all the columns are selected into variables may be used to achieve this, although you will have to manage them accordingly.
    I don't any other way round it.
    Rgds

  • How to add different versions of layout in XML Publisher Report?

    How to add two versions of layout(RTF) for different languages in xml publisher report template so that user can see the report in two languages? Is that possible?
    If so then what is the procedure to do that? Can anyone help in this regard?

    Soma,
    Refer to [Oracle XML Publisher User Guide|http://download-uk.oracle.com/docs/cd/B25516_14/current/acrobat/115xdoug.zip] manual, Page 5-8 Adding Localized Templates for Additional Languages.
    Regards,
    Hussein

  • How to call the XML Publisher Report thro Standard PO Output for Comm.

    Hi
    We need to call our custom report(XML Publisher Report) from the standard PO Output for Communication Report.
    There is a parameter(Purchase Order Layout) in PO Output for Communication in which we can see no. of standard reports. We want to add our custom report in that list so that when we will run this standard report by selecting our custom report for Purchase Order Layout parameter, we should get the output as per our Custom report.
    Since PO Output for Communication is a Java Concurrent Program, we are not able to place our custom report in the list of Purchase Order layout Parameter.
    Ram

    Welcome to the forums !
    Pl see if MOS Doc 305307.1 (How To Modify Print PO Report POXPOPDF With Custom Template) can help
    HTH
    Srini

Maybe you are looking for

  • How can I get my built-in iMac mic to work on Windows 7 (bootcamp)

    I've bootcamped my mac so now im running windows 7 ultimate. Im trying to use skype but windows isnt able to find the mic. Was wondering if anyone knew how to connect it?

  • Capture error-"this operation could not be completed as there is no video"

    Help!! Project Due to client very soon. I've got my XL2 hooked up to my mac and capture was fine until the above(subject) error message popped up. All connections are tight, and I've tried changing, switching and trashing preferences. I spent a 100 b

  • Why I cannot tab to enter instead of using enter key?

    For example. When I want to log in a website that I have an account. After typing username and password, I can not tab  by trackpad to enter. I have to use enter key to login. Why? Have how to fix that?

  • Country Stats

    The attached code is a simple query I use to generate a CFCHART flash graph of total page visits by country. The stats_log table also has a date column. I'd like to provide the user a with form to pick a date range (startdate, enddate) and re-create

  • MIRO system Alert when user does a reversal entry.

    Dear Friends, The Process is like this. 1. PO Creation ( Import) 2. Goods Receipt 3. Miro - custom duty amount & quantity is captured. Currently the user is able to reverse the Miro. So, The requirement is that, whenever Miro Captures custom duty amo