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?>
Similar Messages
-
"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:49Condition usage looks fine.
Do these conditions individually work? Whats is your requirement?
If possible paste a sample xml here -
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 muchYou 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?> -
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 AdvanceKavipriya,
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 use special characters in rtf template?
Hi,
We are using .rtf template to print an invoice in pdf format.
Now the requirement to put special character under footer section as below.
"New York • London • Houston • Berlin • Vienna • Sydney • São Paulo • Singapore "
I use same in rtf template but report output showing as below
"New York ? London ? Houston ? Berlin ? Vienna ? Sydney ? São Paulo ? Singapore " .
I tried with placeholder column but no luck.
Can anyone help me?
Thanks in advance!!hi,
find in this link
Count Number of Groups -
Maximum Number of record Per page using XML Publisher with RTF template
Hi
I am creating customer statement and want to show only 20 records per page. How we can set maximum number of repord per page in rtf template.
Thanks
RaviRavi,
I hope you are already done with this. In the invoice there is a nice example you can use on the xml blogs.
You limit the number of lines per page when you use the xsl commands like this in your template:
<xsl:variable name="lpp" select="number(13)"/>
<?for-each@section:LIST_G_INVOICE?>
<xsl:variable xdofo:ctx="incontext" name="invLines" select=".//G_LINES[LINE_TYPE='LINE']"/>
<?for-each:$invLines?> <?if:(position()-1) mod $lpp=0?> <xsl:variable name="start" xdofo:ctx="incontext" select="position()"/>
and then you have the table where you have the data
<?for-each:$invLines?><?if:position()>=$start and position()<$start+$lpp?>
and all your lines
and then
<?end if?><?end for-each?> -
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?> -
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
SandeepIf 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 -
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.. -
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?> -
How do I use fsg:ColHeadLine1 in a template?
I have created an FSG report and need to publish it with BI Publisher. The report should have columns with month names across the top, but the data may be "Actual" or "Budget".
The data is contained in fields called <fsg:ColHeadLine1>, <fsg:ColHeadLine2>, etc.
<fsg:ColHeadLine1></fsg:ColHeadLine1>
<fsg:ColHeadLine2> Jan </fsg:ColHeadLine2>
<fsg:ColHeadLine3> Actual </fsg:ColHeadLine3>
I am not certain how to use this in my rtf template to print the column headers?Have you tried checking the Oracle provided template for FSG ("FSG: Basic Template" - RGFSGXPB.rtf)? Works okay and could show you how the fields could be used in a template... (if you could find it from the XMLP Admin - template, you might need the patch for FSGXML)
regards,
Rownald -
Convert XSL-FO template back to RTF template
Report's layout that I have to create has strict size requirements (e.g. page margins, cell sizes and so on).
I created a simple RTF template using MS Word. RTF template meets this size requirements but when I print my report using Acrobat Reader report looks different.
I know that this happens because at runtime BI Publisher converts report to XSL-FO automatically to XSL-FO and only after that it renders pdf.
In order to meet thissize requirements I converted my RTF template to XSL-FO stylesheet using Template Builder and changed appropriate cells and margins etc. manually.
And everything works well but now I know that there will be a lot of changes in this report's layout (e.g. several complex tables will be added).
It's quit difficult for me to create tables in XSL-FO. And so my question is
HOW CAN I CONVERT MY XSL-FO STYLESHEET BACK INTO RTF FORMAT WITH ALL THE LOGIC IT HAS?
BI Publisher Release 10.1.3.4
Thanks.
Edited by: Ruslan on 20.07.2011 5:22No way , you can't go back.
-
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,
BashaHi 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 -
Bolding rows in RTF template using tags
In an rtf template, is there a way to bold an entire row in the table using tags rather than building two rows (one bold, one unbold) and put them in a if condition?
if
[BOLD ROW]
else
[UNBOLD ROW]
end ifThis should do it
<?if@row:number(EMPNUM)=10003?>
<?attribute@incontext:font-weight;'bold'?>
<?end if?>
slot this into a cell on the table row
Tim
Maybe you are looking for
-
Price for excise invoice in depot sale
Hi Friends Actually i am doing stock transfer order from manufaturing plant to depot plant. we know that generally pricing wont be applied in stock transport order, so from where pricing triggers in the billing & excise invoice in depot sale. Please
-
How to repeat the header in af:table with row exceed ?
Hi All , I am using JDeveloper 11.1.2.0 My Scenario is I have one <af:table> with 100 rows if I click the print it prints first 50 rows in first page remaining rows print in the second page without column Names. I am using header text for create the
-
I'm working on a web app for a department in my company and one of the fields is an account number that is stored as a numeric type in our database. The department who uses it insists that it should have a leading zero in the number. The account shou
-
I have downloaded an iOS update on my iPad air2 but it has locked the screen and I can only see the iTunes symbol with a white arrow and a padlock below it. I have tried turning the iPad off and on but the same screen reappears. Has anyone had a simi
-
Hi there I need to implement custom RRI If I select material1 (query1) recepient query 2 should show material 2 (I know it soubds stipid but its just test example) I know where to put ABAP code (se19 , create BAPI based on SMOD_RSR00004) but I dont k