"Or" condition in RTF Template

Hello,
In my RTF template, I try to test a statement for two values. I tried
<?xdofx:if :A!='0' or B!= '0'?>
<?if:A!='0' or B != '0'?>
It doesn't work : there isn't any error but the result is wrong.
Is there another syntax I've got to use ?
Thanks
Version : BI Publisher 10g
Edited by: jbg on 4 oct. 2011 23:49

Condition usage looks fine.
Do these conditions individually work? Whats is your requirement?
If possible paste a sample xml here

Similar Messages

  • Using OR condition in RTF Template

    Hi,
    How to use OR condition in RTF?
    say for example,consider the EMP table.
    I want to show the employees of department 10 and 20 in my XML Publisher report.
    How can i write --
    if deptno = 10 or deptno =20 in RTF template

    you can add the condition in RTF template
    <?if:XMLfield=30 or XMLfield=10 ?> to display <?end if?>

  • SUM function with condition in RTF template

    Hi All,
    I have a problem in calculating the SUM in RTF template with condition,
    Here is the XML
    - <LIST_G_LINE_NOTES>
    - <G_LINE_NOTES>
    <LINE_TRX_ID>1567856</LINE_TRX_ID>
    <LINE_ID />
    - <LIST_G_TRX_LINE>
    - <G_TRX_LINE>
    <CF_ITEM_NO>SDCN1144B</CF_ITEM_NO>
    </G_TRX_LINE>
    </LIST_G_TRX_LINE>
    - <LIST_G_LINE_EQUIVALENT_UNIT_PRICE>
    - <G_LINE_EQUIVALENT_UNIT_PRICE>
    <LINE_EQUIVALENT_UNIT_PRICE>-15.99</LINE_EQUIVALENT_UNIT_PRICE>
    <LINE_EXCHANGE_EXTENDED_AMOUNT>-223.86</LINE_EXCHANGE_EXTENDED_AMOUNT>
    <CUSTOMER_TRX_LINE_ID>1567856</CUSTOMER_TRX_LINE_ID>
    </G_LINE_EQUIVALENT_UNIT_PRICE>
    </LIST_G_LINE_EQUIVALENT_UNIT_PRICE>
    - <LIST_G_TRX_LINE>
    - <G_TRX_LINE>
    <CF_ITEM_NO></CF_ITEM_NO>
    </G_TRX_LINE>
    </LIST_G_TRX_LINE>
    I need the summation of field LINE_EXCHANGE_EXTENDED_AMOUNT with the condition CF_ITEM_NO!=''
    can anybody help me with the solution.
    Thanks in Advance

    Kavipriya,
    Here is the XML
    <LIST_G_LINE_NOTES>
    <G_LINE_NOTES>
    <LINE_TRX_ID>1567856</LINE_TRX_ID>
    <LINE_ID />
    <LIST_G_TRX_LINE>
    <G_TRX_LINE>
    <LINE_DELIVERY_ID />
    <DISCOUNT>0</DISCOUNT>
    <CP_LN_TAX_AMT />
    <CF_ITEM_NO>SDCN1144B</CF_ITEM_NO>
    </G_TRX_LINE>
    </LIST_G_TRX_LINE>
    <LIST_G_LINE_EQUIVALENT_UNIT_PRICE>
    <G_LINE_EQUIVALENT_UNIT_PRICE>
    <LINE_EXCHANGE_EXTENDED_AMOUNT>-223.86</LINE_EXCHANGE_EXTENDED_AMOUNT>
    </G_LINE_EQUIVALENT_UNIT_PRICE>
    </LIST_G_LINE_EQUIVALENT_UNIT_PRICE>
    </G_LINE_NOTES>
    Edited by: user13012317 on Mar 10, 2011 11:00 PM

  • 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?>

  • 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..

  • Menu parameter and condition in rtf template

    Hello Guys,
    I have a problem with the .rtf xml condition for my
    menu parameter.
    <?sum(COUNT
    (../P_TIME_2 =2011)
    )?>
    the above does not work. I was wondering if a "IN" clause
    or something is needed but I dont know the syntax well.

    Hello AlexAnd,
    Thanks for your reply. Unfortunately I cant post the XML here (I dont even know how to see the xml).
    Let me explain what I did so far:
    I just added a field using the BI publisher Word Plugin (.rtf).
    BI Publisher Tab - > ab¦Field - > select fied and "sum" as caluclation method in window and that popped up- > double click on field and look
    at the code.
    Now this code says
    <?sum(mySalaryCount)?>
    I want to sum up mySalaryCount from the database but only when the column for a specific row
    has the right year value.
    lets say the one that has the value 2011. So I extend to code.
    <?sum(mySalaryCount)
    (../menuParamter_selected_year =2011)
    ?>
    the problem is, the above does not work. it works for "normal" parameters but does not seem to work for
    menu parameters (as set in the bi publisher data model)
    I guess the menuparameter is a list/array and hence the = is not the right operator.
    *in my case a menu parameter                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Limit of for each conditions in rtf templates

    Hi Everyone,
    I have a use case where i need to genereate a report by using values from two data sets. data sales, cost.
    Data set sales have four columns product1, product 2, product 3, product 4
    Cost has cost1,cost 2, cost 3, cost 4.
    I need to display in below format
    product 1| product 2| cost 1|cost 2| product 3| product 4| cost 3| cost 4|
    To get above format i am using four for each condition groupings two for each data set
    <?for-each:/data/sales?><?product1?>|<?product2?><?end for-each?>|<?for-each:/data/cost?><?cost1?>|<?cost2?><?end for-each?>|<?for_each:/data/sales?><?product3?>|<?product 4?><?end for-each?>|<?for-each:/data/cost?><?cost3?>|<?cost4?><?end for-each?>
    If i use first two for each conditions i am able to see values in template but if i use four line is missing in the template.
    I did not understand where lies the problem.
    Please let me know if you need more info.
    Regards
    Sandeep

    If you have product ID or key in the cost data set, then you can follow the method in this post to display data:
    http://blogs.oracle.com/xmlpublisher/2009/09/formatting_concatenated_dataso.html

  • Using Wild Card % in the IF condition of RTF templates

    Hi every one, we have a requirements to make bold whenever COL1 ends with Total. Below logic is not working. Can any body help?
    Thanks in advance.
    <?if@row:COL1like '%Total'?> <xsl:attribute name="font-weight" xdofo:ctx="incontext">bold</xsl:attribute><?end if?>
    -Phani Reddy
    ADP india,
    [email protected]

    You can do these
    <?if@row:contains(COL1,'Total')?> <?end if?>
    or
    <?if@row:ends-with(COL1,'Total')?> <?end if?>

  • RTF Template Condition

    Hi,
    Can anybody tell me how to add a condition in rtf template.
    Requirement: if sum =0
    Need to get data in one section
    if sum!=0
    Need to get data in another section
    Thanks!!!!

    >
    I would like not to hardcode the name of the Top XML node (Invoice) as it may change in the future.
    >
    IMHO name of this tag is needed
    <?if://ShipAddress?>cheking for existing tag ShipAddress on any level of xml
    it's true for ShipAddress for Invoice and for Invoice/Order
    <?if://Order/ShipAddress?>cheking for existing tag ShipAddress after tag Order
    so need point for start
    >
    n XSL/XPATH doc, they mention that we can use the dot (./ShipAddress)
    >
    yes but look at *.* more closly
    <?for-each:Invoice?>
    <?if:./ShipAddress?>
    or
    <?if:./Order/ShipAddress?>

  • IF conditions stopped working in RTF Template

    Hi,
    After applying Financials Family Pack G and Running 'XML Publisher Re-Generate template' program. If conditions with xdoxslt:get_variable on RTF template stopped working.
    Oracle Apps version: 11.5.10.2
    XML Publisher version: 5.0.0
    Any help or directions would be greatly appreciated.
    Thanks,
    Anil

    Hi,
    First thing I would suggest would be to patch XMLP to 5.6.3.
    This is a far more stable release than 5.0.0.
    Hopefully this should resolve your issues.
    Regards,
    Cj

  • Conditional Formatting in RTF templates

    HI
    I am just going around with designing of rtf templates. I have a question regarding the conditional formatting feature. The question is
    IF i am having different type of customers(corporate,individual,etc..) passed as parameters, Can an particular cell be formatted with different colors for different customers. for example, if the parameter is corporate customer the the color of particular cell should be RED in color, and if parameter is Individual the color of cell Must be GREEN in color.
    Please help me out with this.
    Thanks in advance

    Yes you can conditionally format the individual cells.
    Take a look at the guide (link provided) and search for "Cell Highlighting":
    http://docs.oracle.com/cd/E10415_01/doc/bi.1013/e12187/T421739T481157.htm
    Example code: <?if:debit>1000?><xsl:attribute xdofo:ctx="block" name="background-color">red</xsl:attribute><?end if?> <?debit?>
    Thanks,
    Bipuser

  • Multiple images in rtf template with out using url conditions

    Just iam taken 3 logos from system to make copy and paste in rtf file
    But i need to write the conditions for those logos depend upon ord_id (or) supplier_name?
    How can i write condition by taking the if/when between logos
    Any one knows pls replay this (or) send to my mail id "[email protected]"
    Thanks and Regards,
    Basha

    Hi Tim,
    We have logged SR 5803815.992, and uploaded the RTF template and a sample XML data file.
    We are currently on 11.5.10 CU2 and 11i.XDO.H
    Please let us know if you need any other information.
    Thanks

  • Terms and Conditions in PDF PO with RTF Template

    Hi Gurus,
    We have a custom RTF template for the PDF PO. I want to add the Terms and Conditions into this RTF template that should start after the last page of each PO I looked into the Oracle standard template also but it is in XSL-FO format. I tried the way the Terms and Conditions are added into the Oracle Standard template into my custom RTF template but it didn't work for me. Can any of please help. Need your assistance.
    Regards,
    KM

    Just before the end of your for-each loop make a call to a sub-template
    Your sub-template will have the terms and conditions.
    regards
    Jorge

  • How to  hide information on the rtf template based on some condition

    Hi,
    I'm writing a new rtf template for our custom PO print program in EBS 11.5.10.. In reports 6i, you can have a format trigger on a frame or repeating frame and you can achieve this.. Can you please let me know if this is possible in XMLP and how can i do it..
    Thanks,
    Shree

    Hi Shree,
    see for example if you want to get the employees record group by department number then...in this case if you want to hide some columns of employees then use if condition...where you are using ur column name.....
    like this .....if you want to hide salary column for dept no 20 then
    if dept no<> 20 then sal end if;...... use this at the column def....
    its like a dynamic data column generation.....for the exact code you can refer to XML Publisher User Guide......Chapter is Creating RTF Template.....section is dynamic Data Columns...
    Regards
    Ravi

  • Insert Image in RTF Template Conditionally

    Can an image be inserted into an RTF Template using an If-Then statement? Like this:
    <?if:FIELD1='IMAGE1' 'insert IMAGE1' else 'insert IMAGE2'?>
    If this is possible what syntax needs to be where the example says 'insert IMAGE1'? The images are jpg files that exist on a local PC but the template will run on a Unix machine.
    Is there a way to do this? Thank you very much.
    James

    you can try like this
    <?template:image?>
    <?if:FIELD1='IMAGE1'?>
    IMAGE1
    <?end if?>
    <?if:FIELD1!='IMAGE1'?>
    IMAGE2
    <?end if?>
    <?end template?>
    use this tag where u need image <?call:image?>
    for image location or dynamic images check these links
    https://blogs.oracle.com/xmlpublisher/entry/dynamic_images
    https://blogs.oracle.com/xmlpublisher/entry/one_of_our_images_is_missing
    http://learnobi.blogspot.com/2012/08/dynamic-image-in-rtf-of-oracle-bi.html
    Signature image on template

Maybe you are looking for