AND within IF statement in XML publisher

Hi All,
I am in need to use AND condition within an IF statement in rtf template.
Here is the condition I am using
<if:../../DIST_SHIPMENT_COUNT!=1 AND ../../ADDRESS_DETAILS/ADDRESS_DETAILS_ROW/LOCATION_ID!=SHIP_TO_LOCATION_ID?>
My data
<?end if?>
This is not working, does anybody know how to achieve this.
Appreciate your time and help.
Thanks,
Ragul

so you mean to say
../../DIST_SHIPMENT_COUNT!=1 AND ../../ADDRESS_DETAILS/ADDRESS_DETAILS_ROW/LOCATION_ID!=SHIP_TO_LOCATION_ID
and
DIST_SHIPMENT_COUNT!=1 and LOCATION_ID!=SHIP_TO_LOCATION_ID
conditions are different?
exactly
I have always refered to data elements in the RTF without giving any path and it works fine for me. is there anything that I may be missing?
so you may be have simple case or may be not need to use parent tags logic
so crazy example
<ROWSET>
    <G2>
        <DIST_SHIPMENT_COUNT>0</DIST_SHIPMENT_COUNT>
        <ADDRESS_DETAILS>
            <ADDRESS_DETAILS_ROW>
                <LOCATION_ID>2</LOCATION_ID>
            </ADDRESS_DETAILS_ROW>
        </ADDRESS_DETAILS>
        <G1>
            <ROW>
                <SOMEROW>some text 1</SOMEROW>
                <DIST_SHIPMENT_COUNT>1</DIST_SHIPMENT_COUNT>
                <LOCATION_ID>3</LOCATION_ID>
                <SHIP_TO_LOCATION_ID>3</SHIP_TO_LOCATION_ID>
            </ROW>
            <ROW>
                <SOMEROW>some text 2</SOMEROW>
                <DIST_SHIPMENT_COUNT>1</DIST_SHIPMENT_COUNT>
                <LOCATION_ID>3</LOCATION_ID>
                <SHIP_TO_LOCATION_ID>3</SHIP_TO_LOCATION_ID>
            </ROW>
        </G1>
    </G2>
</ROWSET>
and
original condition:
<?for-each:ROW?><?position()?> and value <?if: ../../DIST_SHIPMENT_COUNT!=1 and ../../ADDRESS_DETAILS/ADDRESS_DETAILS_ROW/LOCATION_ID!=SHIP_TO_LOCATION_ID?><?SOMEROW?><?end if?><?end for-each?>
your condition:
<?for-each:ROW?><?position()?> and value <?if: DIST_SHIPMENT_COUNT!=1 and LOCATION_ID!=SHIP_TO_LOCATION_ID?><?SOMEROW?><?end if?><?end for-each?>
and result as
original condition:
1 and value
some text 1
2 and value
some text 2
your condition:
1 and value
2 and value

Similar Messages

  • Call an sql insert statement in xml publisher

    Hi to all,
    i've a question as regard xml publisher.
    Sorry but i don't have a lot of time to look around.
    This features is quite important and probably would determine if we will use this
    product or not.
    Is possible to call an sql statement when the output is generated?
    example: a user call a report with some par to filter the output (some select list / text, ecc..)
    Or generally can i call use a pl/sql block instead of pl/sql query to populate and at
    the same time to write other data to keep track of the printing / generation of the
    documents X user?
    Otherwise, is xml publisher writing this info in some system table of xml publ?
    Note: i use most of all pl/sql and htmldb and i don't want to use other programming languages until this app is finished.
    Thank you very very much.

    Hi Marcello
    I seem to remember from other threads that you are assessing the enterprise edition of XMLP right?
    If you use the data templates to define how the data should be extracted then you can call a plsql pkg after the fetch to update/insert to your hearts content.
    Otherwise you could use the APIs instead of the UI to do the same or even build an extension to the RTF templates to make the sql call ... we do not document this at the moment but its possible.
    Regards
    Tim

  • Are CC and BCC options available in XML Publisher email?

    I am working in XML publisher phase 2. I want to know whether there is any way to set CC and BCC options in email outputs.
    If yes, how can I do?
    What is the way to sent same mail to multiple persons?
    Thanks in Advance
    Sudheesh Sudhakar

    Have you looked in Mail Help? When I search for Bcc there, I get an article titled “Keeping confidentiality” and another titled “Sending an email to several people” that appear to contain the information you’re looking for, including what Klaus suggested and more...

  • Hide column in the adress if it is null and print next line in XML publishe

    Hi,
    I'm converting oracle report to XML publisher report.
    I craeted template rtf with word. everything works fine.
    Except address prints null coumns if it is null.
    I used if condition in template. something like this...
    <?if:B_ADDRESS1!=''?><?B_ADDRESS1?><?end if?>
    But I see still it prints null columns.
    Any body have idea how can i fix this?
    Thanks
    pallavi

    Hi Guys,
    I have built a template for FSG reports. Currently the FSG Reports when run in XML does pull the Display Sets definition for the report. The Display Set is used to hide certain row and Column intersections from the FSG.
    So to accomplish this I have coded each column in the template to display data or hide data for a particular row by using the code
    <?if:(position()) !=1?><?fsg:RptCell[2]?><?end if?> ------ This means, show the column for all rows except row 1.
    Now there are some places I have to hide Column 1 for row 2 and row3 and display for row 1 and row 4.
    Can anyone please tell me how I can accomplish this.
    Thanks

  • ITunes opens and within seconds states it has to close. I've uninstalled

    iTunes will open, but within seconds states it 'Has to close'. Occasionally, I'll see a notice for an update and quickly click to 'Download update?', but when I click on 'Download', a new page opens with 'Thanx for updating', except it hasn't downloaded the update. I have also uninstalled and reinstalled iTunes several times, but that hasn't helped. My phone is a 5S and it won't sync to iTunes either.
    I appreciate any suggestions. Thanx.

    Try working through TS1717: iTunes for Windows Vista, Windows 7, or Windows 8: Fix unexpected quits or launch issues to start with.
    Otherwise, for general advice see Troubleshooting issues with iTunes for Windows updates.
    The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down page in case one of them applies.
    Your library should be unaffected by these steps but there is backup and recovery advice elsewhere in the user tip.
    tt2

  • How to remove a font file and its mapping from XML Publisher Administrator

    Hello,
    I am trying to remove a font file and its mapping from the XML Publisher Administrator. If this is not possible, is there a way to disable it?
    The reason why I am asking this is because we just got a new check printer, and I was able to print just fine. However, the MICR font was not coming up properly on the check, so I went ahead and configured the font with the XML Publisher Administrator. Now my check output is coming up blank after running the XML report publisher program. The only change I did was to upload the MICR font and mapped it.
    My template and rdf report file are working fine in another environment we have, so I know that's not the problem.
    Any help is appreciate it.
    Thanks.

    This is how you do it
    Font
    DELETE FROM xdo_lobs
    where lob_code like '<Font_name>';
    Font Mapping Set
    DELETE FROM xdo_font_mapping_sets_TL
    WHERE mapping_code like '<MAPPING_CODE>'

  • Issue in XML Publisher Bursting

    Hi,
    I am using XML Publisher bursting feature to send the output of report as email to the customer.
    I have uploaded Data Template and Bursting control file in XML Publisher Data Defination and ran the report.
    The report output generating but the bursting feature is not working.
    I couldn't able to figure out what is the exact problem b'coz I m not getting any error.
    Is there any setup need to be done? or what might be the reason behind this?
    Please suggest.
    I am using following code in bursting control file,
    <?xml version="1.0" encoding="UTF-8"?>
    <xapi:requestset xmlns:xapi="http://xmlns.oracle.com/oxp/xapi" >
    <xapi:request select="/BURSTTEST/LIST_G_APPLICATION_ID/G_APPLICATION_ID">
    <xapi:delivery>
    <xapi:email server="[email protected]" port="25" from="[email protected]" reply-to ="[email protected]">
    <xapi:message id="123" to="[email protected]" attachment="true" subject="Profile Option Details">
    Please review the attachment for this message.
    </xapi:message>
    </xapi:email>
    </xapi:delivery>
    <xapi:document output="Profile Option Details Report" output-type="excel" delivery="123"><!--Deliver to printer and email -->
    <xapi:template type="rtf" location="xdo://XXCUST.Profile.en.00/?getSource=true"><!--Default template to be used -->
    </xapi:template>
    </xapi:document>
    </xapi:request>
    </xapi:requestset>
    Thanks & Regards,
    Sagarika

    Hi Kavipriya,
    Thanks
    I set defaultPackage of data template header and the XML Bursting program get fired.
    But XML Bursting program erroring out and I m getting following error.
    How to resolve this please suggest.
    [110410_054027569][][EXCEPTION] java.lang.NullPointerException
         at java.util.Hashtable.put(Hashtable.java:394)
         at oracle.apps.xdo.oa.cp.CPUtil.setProperty(CPUtil.java:67)
         at oracle.apps.xdo.oa.cp.CPUtil.getSessionProperties(CPUtil.java:45)
         at oracle.apps.xdo.oa.cp.JCP4XDOBurstingEngine.runProgram(JCP4XDOBurstingEngine.java:84)
         at oracle.apps.fnd.cp.request.Run.main(Run.java:157)
    XML/BI Publisher Version : 5.6.3
    Request ID: 4842838
    All Parameters: Dummy for Data Security=N:ReportRequestID=4842836:DebugFlag=Y
    Report Req ID: 4842836
    Debug Flag: Y
    Updating request description
    Updated description
    Retrieving XML request information
    Node Name:AMSGURBLUAPP009
    Preparing parameters
    null output =/u01/oracledb/VIS/inst/apps/VIS_amsgurbluapp009/logs/appl/conc/out/o4842838.out
    inputfilename =/u01/oracledb/VIS/inst/apps/VIS_amsgurbluapp009/logs/appl/conc/out/o4842836.out
    Data XML File:/u01/oracledb/VIS/inst/apps/VIS_amsgurbluapp009/logs/appl/conc/out/o4842836.out
    Set Bursting parameters..
    Temp. Directory:/home/devuser
    [110410_054030111][][STATEMENT] Oracle XML Parser version ::: Oracle XML Developers Kit 10.1.3.130 - Production
    [110410_054030138][][STATEMENT] setOAProperties called..
    Bursting propertes.....
    {user-variable:cp:territory=IN, user-variable:cp:ReportRequestID=4842836, user-variable:cp:language=en, user-variable:cp:responsibility=20639, user-variable.OA_MEDIA=http://amsgurbluapp009.in.ibm.com:8004/OA_MEDIA, burstng-source=EBS, user-variable:cp:DebugFlag=Y, user-variable:cp:parent_request_id=4842836, user-variable:cp:locale=en-IN, user-variable:cp:user=OPERATIONS, user-variable:cp:application_short_name=XDO, user-variable:cp:request_id=4842838, user-variable:cp:reportdescription=MAN Invoice Burting Test, user-variable:cp:Dummy for Data Security=N}
    Start bursting process..
    Bursting process complete..
    Generating Bursting Status Report..
    --Exception
    ZIP file must have at least one entry
    java.util.zip.ZipException: ZIP file must have at least one entry
         at java.util.zip.ZipOutputStream.finish(ZipOutputStream.java:304)
         at oracle.apps.xdo.oa.cp.JCP4XDOBurstingEngine.zipOutputFiles(JCP4XDOBurstingEngine.java:534)
         at oracle.apps.xdo.oa.cp.JCP4XDOBurstingEngine.runProgram(JCP4XDOBurstingEngine.java:292)
         at oracle.apps.fnd.cp.request.Run.main(Run.java:157)
    Thanks & Regards,
    Sagarika

  • Preview Etext template in XML Publisher Desktop (Template Builder)

    Is there a way, or are there plans, to be able to preview an eText template using the template builder, in MS Word, like you can with PDF type templates. This is a great feature when creating PDF output and saves a lot of time. It would be great to be able to do the same for eText templates.
    Cheers,
    Dave

    You can create a dummy data definition and dummy template(etext) in xml publisher admin responsibility.
    For the Data definition , in the bottom if you scroll down you will see a link for upload preview xml data file.
    After uploading the xml file access your template and you can see a preview icon.If you click it you will see a txt file popping up
    thanks
    prasanna

  • Security - Query - XML Publisher

    Hello,
    I need some help concerning the security for queries and XML Publisher.
    I am on an HR peoplesoft, tools8.49.
    When I am with user PS I see my query in query manager and my XML Publisher report.
    My query is Public and my report definition for XML Publisher too.
    My problem is that I am not able to publish my query to see it in query viewer and I suppose (perhaps I'm wrong) that's why when I'm connecting with another user which have access to the security query tree to see this query, I am not able to see my XML Publisher report definition.
    Could you tell me where I should search to publish this query in query viewer ? Or is it something special to do to see my XML Publisher report definition ?
    Any ideas are welcome.
    Thanks in advance for your help.

    Problem solved : I have forgotten to add my role in Reporting Tools > XML Publisher > Setup > Report Category.

  • How to invoke XML Publisher report in 11i

    Can anybody please guide me on How can we invoke xml publisher report in 11i and how can we call XML publisher report from form or OA framework.
    Thanks

    Hi
    1. From a form ... a little tricky. Forms 6i has v limited java support so calling the XMLP apis directly is going to be tough. We do have a few products and customers that do it, here are a few scenarios:
    a. Have a button/menu item to call the report, this actually kicks off the concurrent manager to submit a report that XMLP will format
    b. Have a button that calls the plsql package, 'htp', this in turn can call an OA page where a report can be rendered in the page.
    2. From OAF page - much easier. You can call the TemplateHelper API form your page passing data, template reference, lang, terr, output format - the API will return the output.
    For the OAF approach and option'b' for forms I would recommend using the XMLP common region. This is a region that can be plugged into your custom page. Its very configurable - you can point it to a concurrent request, a completed document e.g. a PDF doc, you can pass it XML data from your BC4J objects or a data template. You can then configure what changes the user can make, change template, language, locale, output - please check the user guide for details on the Common Region.
    Tim

  • Showing the XML publisher report in an iframe..

    Hi all..
    Please help me with this question.
    Before: We had a "http page" and we are showing a XML Publisher report which is also in "http" ,in an iframe of the parent page. Previously it was working fine, as both are http.
    *** Basically we are generating a URL of the report and showing it in a iframe of the web application****
    Now: Recently we configured ssl to the parent page (https), and the report sever is still in "http". Because of this difference, whenever we are calling that report,it is showing a security alert and redirecting to totally wrong page.
    Is there any configurations that i can do in the ""report server" to rectify this issue.Please help me with this issue.
    Thank u

    Hi Ravi ,
    can i do it only with the xml Publisher , because when i tried it in the past and get all the staff like Template / DD / CP up and running and started the CR i get an error from the system that he is missing a report directly in the file system... so he searched for the report himself on system like a standard 6i Report. But the template and the dd is stored in the db. So my question again, can I use the XML Puplisher without a Standard Report or can i use a dummy file only for checking and after that he use my template / dd.
    regards
    Kay

  • Download XML Publisher report through URL

    Hi Gurus,
    I need to download pdf that which is generated using data template(.xml) and Layout template(.rtf) from XML Publisher through URL by passing required parameter.
    Could anyone please help me on this. This is one of our client requirement. Its really very urgent.
    Thanks,
    Vino.

    is it ebs?
    if yes i can not be sure what it is work for ebs
    for ebs related bip you can ask in General EBS Discussion

  • XML Publisher template. Can't associate to a report

    Hi,
    I made a report with xml output. With it's output I define an rtf template and associate it to an XML Publisher template.
    When I execute this report, I try to choose the template to format the output to excel (in Options button), but lov is empty.
    This is not my first XML Publisher template an I never had this problem, but now I don't know what to do. Any idea?
    These are the steps I follow:
    1- Create a report and setup it on EBS with XML output
    2- Launch the report in EBS and obtain and XML file
    3- Create an RTF template with MS Word, XML Publisher plug-in and XML file
    4- In EBS, XML Publisher Administrator, create a data definition and a template.
    5- In System Administration/Requests I try to associate the template to the report in On Site Tab. The template's lov is empty
    Thanks to all

    Hi,
    It is also mentioned in (Note: 276691.1 - XML Publisher and Concurrent Manager Integration). Anyway, the OP has already provided the solution without referring to any document which should be easy for those who may encounter the same issue.
    Thanks,
    Hussein

  • E-Business Suite  XML Publisher Issue.

    Hi DBAs,
    I am getting following error while uploading a big size (5 GB and up) .rtf file from XML Publisher Administration>template (from application).
    oracle.apps.fnd.framework.OAException: oracle.jbo.JboException: JBO-29000: Unexpected exception caught: java.lang.OutOfMemoryError, msg=Java heap space
    ## Detail 0 ##
    java.lang.OutOfMemoryError: Java heap space
    I searched over the Web and got that I need to increase the Java Heap Size for XML Publisher.
    Can you help how can I change the heap size for XML Publisher in EBS 11.5.10.2 with XML Publisher 5 version.
    Thanks
    -Samar-

    Samar,
    Please see the documents referenced in these threads.
    java.lang.OutOfMemoryError: Java heap space
    java.lang.OutOfMemoryError: Java heap space
    Not able to open the PDF/RTF outputs for Oracle XML Publisher reports
    Re: Not able to open the PDF/RTF outputs for Oracle XML Publisher reports
    Regards,
    Hussein

  • 'Move order pick slip report' Report not picking XML publisher Template.

    Hi,
    SUB: i have to create one XML report on .RDF(move order pick slip report).
    Submitting procedure move order pick slip report : i have created one Discrete Job and released that Job, then Component pick release for that particular job. then move order number will generates. then automatically fires the 'Move Order Pick Slip' Report.
    NOTE: what i meant to say is i am not submitting the report from SRS window. it will fires automatically when Component pick release.
    For this i have taken .xml and generated .rtf according to my layout and i have registered with XML publisher also.it is correct . But while running the report i am geting output as XML codes not in template(wht i have .rtf) format.
    if i have to see the output in template from. (i have taken in conc program output as XML also) still same problem.
    please help me if anybody having solutions.
    Thanks
    Valli

    Hi Valli,
    1:The first thing i would suggest that please check the BI Publisher version you are using (on apps/and on template builder also).
    2: In any case if your report is not picking up the template and generating the xml output , i suggest you to attach one program "XML Report Publisher" in your SRS.
    Oncwe you run your report and its generate the xml output. you have to take the request id & from view ---> submit request--->XML Report Publisher. run this request again.
    it will ask for the request id , select the appropriate request id and it will generate the pdf output as per your requirement.
    But this is temporary solution , i strongly recommend you to check the updated version of BI Publisher and instaal it on your oracle apps instance. also use the updated version of bi publisher for Layout(Template Builder).
    Regards
    SRatnesh

Maybe you are looking for