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                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

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

  • How can we get Dynamic columns and data with RTF Templates in BI Publisher

    How can we get Dynamic columns and data with RTf Templates.
    My requirement is :
    create table xxinv_item_pei_taginfo(item_id number,
    Organization_id number,
    item varchar2(4000),
    record_type varchar2(4000),
    record_value CLOB,
    State varchar2(4000));
    insert into xxinv_item_pei_taginfo values( 493991 ,224, '1265-D30', 'USES','fever','TX');
    insert into xxinv_item_pei_taginfo values( 493991 ,224, '1265-D30', 'HOW TO USE','one tablet daily','TX');
    insert into xxinv_item_pei_taginfo values( 493991 ,224, '1265-D30', 'SIDE EFFECTS','XYZ','TX');
    insert into xxinv_item_pei_taginfo values( 493991 ,224, '1265-D30', 'DRUG INTERACTION','ABC','TX');
    insert into xxinv_item_pei_taginfo values( 493991 ,224, '1265-D30', 'OVERDOSE','Go and see doctor','TX');
    insert into xxinv_item_pei_taginfo values( 493991 ,224, '1265-D30', 'NOTES','Take after meal','TX');
    select * from xxinv_item_pei_taginfo;
    Item id Org Id Item Record_type Record_value State
    493991     224     1265-D30     USES     fever     TX
    493991     224     1265-D30     HOW TO USE     one tablet daily     TX
    493991     224     1265-D30     SIDE EFFECTS     XYZ     TX
    493991     224     1265-D30     DRUG INTERACTION     ABC     TX
    493991     224     1265-D30     OVERDOSE      Go and see doctor     TX
    493991     224     1265-D30     NOTES     Take after meal     TX
    Above is my data
    I have to fetch the record_type from a lookup where I can have any of the record type, sometime USES, HOW TO USE, SIDE EFFECTS and sometimes some other set of record types
    In my report I have to get these record typpes as field name dynamically whichever is available in that lookup and record values against them.
    its a BI Publisher report.
    please suggest

    if you have data in db then you can create xml with needed structure
    and so you can create bip report
    do you have errors or .... ?

  • Header and footer of RTF template not getting carried over to Excel output

    We have Header and Footer in RTF template defined. The output of the report will be in Excel. When we run the report, the header and footer on the report are not getting carried over to excel has header and footer, instead the header and footer are printed as first line on the excel. Also, the RTF template is set to landscape but when the output is generated in excel, it is set to Portrait

    hi..
    chk this presentation...
    http://csc-studentweb.lrc.edu/swp/Berg/articles/NW2004s_what_is_new.ppt#352,3,Why NW 2004s?
    http://www.sap-hefte.de/download/dateien/1090/086_leseprobe.pdf'
    hope this helps...

  • Resetting Header and Footer in RTF templates

    Hi,
    I developed an RTF template (template 1). This template contains start:body and end body for printing the header and footer in all pages. After printing this template then i have to call another template(template 2) from this. I called the template (template 2) using call statement. But the probelm is that the header and footer of template1 is printed in the output of template2 .
    I dont want to print this header and footer for template 2. Can anyone please suggest me in doing this. I placed start:body and end body in the second template with the assumption that 1st template's header and footer will be overwritten. But if i preview then am getting the error
    Font Dir: C:\Program Files\Oracle\XML Publisher Desktop\Template Builder for Word\fonts
    Run XDO Start
    RTFProcessor setLocale: en-us
    FOProcessor setData: C:\Documents and Settings\kpoda\Desktop\Invoice Printing Efficiencies\Sample XML Data\Sample Output4.xml
    FOProcessor setLocale: en-us
    each
    Please sugget.
    Thanks

    Hi,
    Do you have two templates (template1 & template2) that you want to display in the same document where the pages for template1 has one set of header and footers; and template2 has another set of header and footer?
    If that is the case you can simply create a new section in your rtf template so you have section1 and section2.
    In the body of section1 you call template1 and template2 in the body of section2.
    You can then have different header and footers for the two templates in the same document.
    BR Kenneth

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

  • Find and replace in RTF Template

    Hi,
    I'm using a if statement in my template, but i need to change a value within this statement. It's being used multiple times, therefor it would be easier to do a find and replace, is there a way to do a find and replace within the RTF template? Already openede it in Notepad++, but no luck
    Osman

    I don't think there is a way to find and replace all.. You can view all the code by using Field Browser -> Show All and then replace the code and update one by one from there..
    Thanks,
    Bipuser

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

  • Problem in displaying header and footer in RTF template..

    Hi all,
    How to display first "n" number of pages with one set of header and footer and the next "m" number of pages with other set of header and footer?
    Thanks,
    Makesh
    Message was edited by: Makesh

    we can try doing this,...
    but not based on page number ,
    page number will not be available during this time, it will generated during the rendering time, so the condition of Page number may not help,
    if we can find a way to identify the logic to display FOOTER A or B in the page based on something else, wee can do that..
    create a two named templateA and B , and call them according to the logic to b displayed.

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

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

  • How to upload non iWork files to iCloud...am I missing something?

    I am wondering how to upload non iWork files to iCloud..such as pdf's, Xls, etc....etc any type of file really the way I could with iDisk. Am I missing something simple? Thnaks, Derek

  • Comment enabled pdf's, showing pop-up when opening in acrobat professional.

    Hi all, We are sending the comment enabled pdf's to authors for review. Some of the authors stating that its showing an pop-up when they open the PDF's: We opened the same document in Acrobat 6,7,8 & 9. Professional and Reader. We did't get the above

  • Laserjet 1020 won't STOP duplex printing

    I used to switch from single to double sided printing and back using the printer options / finishing / document option menu. Now my printer only does duplex printing, even though the print on both sides option is unselected.  I have removed and reins

  • Unable to install dev app

    Did you get anywhere with this issue?  I think I have the same thing happening.  The dev app says "installing" on my iPad Air 2 / iOS 8.1 - I have tried deleting and syncing and re-adding to iTunes, selecting install.  It goes through the install mot

  • Coneccion para DB2

    Srs. Macromedia Me encuentro realizando una coneccion en dreamweaver para DB2 ya logre conectarme via ODBC pero al momento que deseo realizar una pagina jsp para autentificacion de usuarios corro y no me ejecuta se sobreentiende que siguiendo los pas