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

Similar Messages

  • 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

  • Round Edged boxes in rtf templates

    Hi all,
    I have been really struggling to design rtf templates for XML Publisher with round edged boxes.
    The client requirement is to have all the tables/objects that contain data to have rounded edges..Just like a flowchart box..
    I have tried using the flowchart box, but when I increase the height/width of the object, the radius of the actual round edge object increases, thus distorting the entire look of the template.
    Can anyone give me some pointers on how I can overcome this issue using rtf templates.
    I would have gladly done this as a PDF template, but for the issue with lack of support for conditional logic.
    Any help will be truly appreciated
    Thanks,
    Lavina

    Hi ,
    You can select the number format in RTF template .Double click the Form Field select
    Type :Number
    Number Format :#,##0.000
    Thanks.

  • How to round numbers in RTF templates?

    Hello!
    I'm using BI Publisher for Word (Oracle BI Publisher Builder for Word 10.1.3.4.1) to build a template to my BI Publisher report and I want to calculate this:
    avg(X)/(avg(Y)-avg(Z)/0.9)
    The result should be rounded to 3 places.
    I tried:
    <?(sum(X) div count(X)) div ((sum(Y) div count(Y)) - (sum(Z) div count(Z)) div 0.9)?>
    and I obtained the expected result.
    But, when I try to round in this way:
    <?xdofx:round((sum(X) div count(X)) div ((sum(Y) div count(Y))-(sum(Z) div count(Z)) div 0.9),3)?>
    I obtain 0 when is expected other value.
    Can someone help me?

    Hi ,
    You can select the number format in RTF template .Double click the Form Field select
    Type :Number
    Number Format :#,##0.000
    Thanks.

  • 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

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

  • PDF formating issue in RTF Template

    Hi,
    I have an XML for which i have data for both subavisor level and fund level and the data at each fund level are derived/aggregated from Subadvisor level(using complex formula which is taken care at the database level not at the RTF level).
    I need to show both Fund level data and SubAdvisor level data in the report, so i have designed the required RTF Template to show the Sub Advisor level data for each fund Level Data.
    The Sample XML is(i have only included one SubAdvisorLevel data(XYZ) for the Fund(ABC) :
    <DATA_DS>
    - <G_1>
    <FUND_NAME>ABC</FUND_NAME>
    <SUB_ADV_ANA_MIL>1234</SUB_ADV_ANA_MIL>
    <MGMT_FEE_PAID>1234</MGMT_FEE_PAID>
    <MGMT_FEE_PAID_O>NA</MGMT_FEE_PAID_O>
    <MGMT_FEE_BP>1234</MGMT_FEE_BP>
    <MGMT_FEE_BP_O>NA</MGMT_FEE_BP_O>
    <TA_BILLABLE_ASSET>NA</TA_BILLABLE_ASSET>
    <TA_FEES_PAID>NA</TA_FEES_PAID>
    <TA_FEES_PAID_O>NA</TA_FEES_PAID_O>
    <TA_EFF_BP>NA</TA_EFF_BP>
    <TA_EFF_BP_O>NA</TA_EFF_BP_O>
    </G_1>
    - <G_1>
    <FUND_NAME>ABC</FUND_NAME>
    <SUB_ADV_NAME>XYZ</SUB_ADV_NAME>
    <SUB_ADV_ANA_MIL>123</SUB_ADV_ANA_MIL>
    <MGMT_FEE_PAID>123</MGMT_FEE_PAID>
    <MGMT_FEE_PAID_O>NA</MGMT_FEE_PAID_O>
    <MGMT_FEE_BP>123</MGMT_FEE_BP>
    <MGMT_FEE_BP_O>NA</MGMT_FEE_BP_O>
    <TA_BILLABLE_ASSET>NA</TA_BILLABLE_ASSET>
    <TA_FEES_PAID>NA</TA_FEES_PAID>
    <TA_FEES_PAID_O>NA</TA_FEES_PAID_O>
    <TA_EFF_BP>NA</TA_EFF_BP>
    <TA_EFF_BP_O>NA</TA_EFF_BP_O>
    </G_1>
    - <G_1>
    Because of this structure the XML, i have designed the RTF template by putting the following code:-
    <?for-each-group:G_1;./FUND_NAME?><?sort:current-group()/FUND_NAME;'ascending';data-type='text'?>
    <?FUND_NAME?> <?SUB_ADV_ANA_MIL?> ............................................(other Attributes are also present)
    <?for-each-group:current-group();./SUB_ADV_NAME?> <?if:SUB_ADV_NAME!=''?> <?SUB_ADV_ANA_MIL?>............(other Attributes are also present)
    <?end if?><?end for-each-group?>
    The only issue i am facing while exporting this RTF Template to PDF is that i am getting a blank row in the PDF(because of the condition <?if:SUB_ADV_NAME!=''?> ) for the 1st level of Sub Advisor level Grouping and there after all the Sub Advisor level data are coming up fine.
    Can you please help me out in resolving this issue

    Thanks Bipuser,
    But the inlines function in not giving the desired result, it is working in the same way even if i haven't put any condition.
    The problem with the existing condition <?if:SUB_ADV_NAME!=''?> is that only PDF is generated with the extra space and Excel does not comes up any space.
    Please let me know if you need any further information from my end.
    Thanks again,
    Regards
    Mrinal

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

  • 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

  • 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

  • How to Format number in RTF template?

    Hi,
    In RTF template i am using Format_number for custom requirement. when i am using below conditon <?format-number(ENTERED_CR,'##,##0.00')?> number is getting formatted if above 1000 only. My requirement is 1). 444 should format like 444.00 2). 444.55 should format like 444.55 only. Can anyone suggest on this ASAP.

    in the next time use BI Publisher forum - BI Publisher
    <?format-number(ENTERED_CR,'##,##0.00')?>it's works for me
    output:
    444    ->  444.00
    444.55 ->  444.55

  • 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

  • RTF template does not format properly when run from Concurent Manager

    Hi
    I have complex RTF template; many stuff in are in header in word table format,body section again fields are in table format and Footer again in word table format.
    When I run BI Publisher report as concurrent request half the content like header and footer are not displayed. I can see copmlete report when I preview using XML data in word. Is there any limitaions that certan fonts, word format features not supported in RTP template. What is the best way to put header, body and footen in main body area rather using Header and Footer features of word?
    Thanks and regards

    You can use the start:body etc syntax to move your header/footer into the main part of the document. This way you can use form fields.
    Regards,
    Gareth

  • Conditional format in OBI Publisher Template Builder for Word

    Hi,
    I'm creating a template in MSWord's Publisher. I inserted a table and I tried to add conditional formatting to some of the cells. Nothing special: just standard red color when the value is below 0.
    In several places I've seen that I should go to the cell and do 'Insert>Conditional Format'. Unfortunately I get the following message then:
    The conditional format is not inside a table and can therefore not be applied to a table row
    I tried to google it, but I didn't find anything.
    So I tried to do it with explicit xsl code. In the User's Guide I found an example and after my adjustments it looks like this:
    <?if:_-__ROUND__FACTS_SUMMARY_V_._ACTUAL_COST_PREV_MON___0__<0?>
    <xsl:attribute xdofo:ctx="block" name="background-color">red</xsl:attribute><?end if?>
    <?_-__ROUND__FACTS_SUMMARY_V_._ACTUAL_COST_PREV_MON___0__?>
    I put the above xsl code in 'Properties>Advenced' for a table cell.
    And when I try to preview it as HTML I get the error:
    Caused by: oracle.xdo.parser.v2.XSLException: <Line 45, Column 100>: XML-22047: (Error) Invalid instantiation of 'Attribute' in 'Element' context.
    at oracle.xdo.parser.v2.XSLStylesheet.flushErrors(XSLStylesheet.java:1534)
    I exported my XSL-FO Style Sheet and here you have the lines 41-48:
    <fo:flow flow-name="region-body">
    <fo:block xdofo:line-spacing="multiple:13.8pt" orphans="2" widows="2" linefeed-treatment="preserve" start-indent="5.4pt" text-align="start" padding-bottom="10.0pt" end-indent="5.4pt" padding-top="0.0pt" height="0.0pt" font-size="11.0pt" font-family="Calibri"/>
    <fo:block xdofo:line-spacing="multiple:13.8pt" orphans="2" widows="2" linefeed-treatment="preserve" text-align="start" padding-bottom="0.25pt" end-indent="5.4pt" padding-top="0.25pt">
    <fo:table start-indent="0.0pt" style-id="ts16" style-name="Table Grid" xdofo:table-summary="Template Table 1" xdofo:row-header-count="0">
    <xsl:variable name="_XDOFOPOS2" select="number(1)"/>
    <xsl:variable name="_XDOFOTOTAL" select="number(1)"/>
    <fo:table-column column-width="45.5pt"/>
    <fo:table-column column-width="57.2pt"/>
    I can't see here anything related to my piece of code.
    Do you have any suggestions what do I do wrong?
    And, what's more important, what should I do, to make this conditional formatting run?
    I'm using Template Builder v. 10.1.3.4.
    I'm new to BI and not an expert in XSL, so please forgive me if the info in my post is incomplete. Let me know about it and I'll try to fill the gaps.
    Thanks in advance.
    Cheers,
    WhatTheHell

    Hi,
    Here is what I have used in the past. insert a formula and copy one of these into the formula (and of course change the field names to your report field name).
    Changing Background Color Based on a Condition:
    <?choose:?><?when:GETROWNUM mod 2=0?><xsl:attribute xdofo:ctx="block" name="background-color">rgb(231,230,229)</xsl:attribute><?end when?><?end choose?>
    OR
    <?choose:?><?when:ROWNUM mod 2=0?>
    <xsl:attribute xdofo:ctx="block" name="background-color">rgb(241,235,207)</xsl:attribute>
    <?end when?>
    <?end choose?>
    OR
    Change font color for entire row based on a condition
    <?if@row:STAT='B'?><?attribute@incontext:color;'red'?><?end if?>
    Hope this helps,
    Steve

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

Maybe you are looking for

  • Help Required in Supressing the logs printed on console

    Hi, have creted the logger and the code is below.... when i log something using subscriberLogger it writes both on console and as well file. I badly need to supress the logs which is written on console... and someone help me in this reagards.        

  • 5 SATA Drives on a MSI 7125 MB in Non-RAID

    Hello Everyone, I have been running 4 SATA drives, 3-250 GB Seagates and a Plextor DVD,  on my MB for awhile now.  I went to install Vista this weekend and added another drive so that I can functioning with XP until Vista is ready to use.  My questio

  • IPod mini clickwheel freeze

    I know that sometimes the clickwheel freezes when you bring your ipod out of sleep but that's not my problem. Recently the volume on my mini won't change. I run my finger accross the clickwheel and nothing happens. But if I hit select and got to the

  • Txt File Need to send to Bank

    Hi, I need to send text file to bank( in Mexico) for direct deposit to vendor accounts in Mexico ( from Mexico company code ) . Could you please let me know what are steps need to be done for F110. Thanks

  • Iphone 4 ringtones not playing from the beginning

    i've updated both my iphone 4 software to the latest one(4.1) and itunes to 10.0.1, few days before the ringtones were fine, in which i mean ALL ringtones were playing from 0.00s(the very beginning) and everything was fine. but then since yesterday,