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?>
Similar Messages
-
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.
Jamesyou 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 -
"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 -
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 templateyou 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,
AnilHi,
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 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 -
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 advanceYes 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,
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 -
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,
KMJust 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,
ShreeHi 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 -
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 -
Error: If statement in RTF template in BI Buplisher
All,
Can some help me to solve the below issue. Please find the code below one which is extracted from the water mark block in RTF template.
<?if:(sum(//g_data[fiscal_period=/asset/p_fiscal_period]/q2_op_plan_ytd))>0?><?( sum(//g_data[fiscal_period=/asset/p_fiscal_period and q1_task_top="Opex"]/q1_cost_plan_ytd) ) div
*(sum(//g_data[fiscal_period=/asset/p_fiscal_period]/q2_op_plan_ytd) ) ?><?end if?>*
I wanted to apply if condition to the code after the " div " as if I get any value for q2_op_plan_ytd as zero the it should replace with 1.
Please help me on thisSolution found.
-
Complex if statement in rtf template?
Hello,
I want to build an if statement in rtf template, the idea is like:
<?if:address!='' and phone!=''?>
<?end if?>
what's the correct way to do it if it is possible? Thanks in advance!
Shichaostevencallan wrote:
Conditional statements, in the user guide or the report developer guide, depending on the version you use.
Page 7-62 in the 10.1.3.2 user guide:
Use an if statement to define a simple condition; for example, if a data field is a specific value.
1. Insert the following syntax to designate the beginning of the conditional area.
<?if:condition?>
2. Insert the following syntax at the end of the conditional area: <?end if?>.
For example, to set up the Payables Invoice Register to display invoices only when the Supplier name is "Company A", insert the syntax <?if:VENDOR_NAME='COMPANYA'?> before the Supplier field on the template.
Enter the <?end if?> tag after the invoices table.Thanks for the reply. But what about two conditions in one if statement? That was my question. :)
Shichao -
How to call a rtf template from another rtf template by passing a value
Hi Gurus,
Its about calling a rtf template from another rtf template by passing a value.
My requirement is like:
I got a quote report from Siebel, based on the product PartNumber I need to pull product description or literature from another database database.
My approach is something like; get a partnumber from quote report pass it to another rtf template which uses the partnumber and get the data from table using DataSource. When user pull a quote report from siebel this new rtf template should attach to the quote at the end.
I've gone through all available blogs about sub-reports and white papers from Oracle they are not much helpful since I need step-by-step.
http://www.adivaconsulting.com/adiva-blog/item/36-working-with-rtf-sub-templates.html
bip-subtemplate-1-132933.pdf
I'm using 10g obiee integrated with Siebel.
Just started learning BIP.
Thanks in advance.
Edited by: 911927 on Apr 2, 2013 8:56 AM
Edited by: 911927 on Apr 2, 2013 8:57 AMHow to call a rtf template from another rtf template by passing a value try in main template create hyperlink of url with parameters for another template
http://bipconsulting.blogspot.ru/2010/02/drill-down-to-detail-or-another-report.html
When user pull a quote report from siebel this new rtf template should attach to the quote at the end.it'll be only another report
IMHO you can not attach it to main. it'll be second independent report
you can try subtemplate but it's not about rtf from rtf by click
it's about call automatically rtf subtemplate from main rtf based on some conditions
for example, main template contain some data and if some condition is true then call subtemplate and place it instead of its condition -
Creating Parameters in RTF Template for BI Publisher Report
hi,
I have created Parameters in my BI Publisher Report and in SQL query. But i need to create same parameters in RTF Template , so that when i publish this report in dashboard , parameters will be visible. Can you please tell me how to create Parameters in RTF Template for BI Publisher Report ? I am not finding option. Please let me know .
Thanks in advance
Gayathri.all the parameter's value will be there in your xml .
just you need to add parameter heading and corresponding xml tag name to get the parameter value on the report.
if u dont have you can try like below
https://blogs.oracle.com/xmlpublisher/entry/get_your_parameters_here_guv
Declare Parameter in RTF Template
Before you use the parameter in the RTF template file you need to declare it first. You can do so by having the following syntax.
<?param@begin:%parameter_name%?>
Note: where %parameter_name% is the parameter name that you have created at the BI Publisher Server UI.
Here is an example:
<?param@begin:param1?>
Use it in RTF Template!
Once it’s declared in the RTF template you can start using it as the same way you use the variable. You need to just add ‘$’ prefix in front of the parameter name. Here is the example:
<?$param1?>
The above example would print the parameter value in the report output. If you want to use this value in your condition or calculation you can simply use it as ‘$param1’. Yes, it’s that simple.
If you are not sure if and how the parameter values are passed to the report when you run the report you can use this command in your RTF template, which will return all the parameter values passed to the RTF template at the runtime.
<?xdoxslt:getXDOProperties($_XDOCTX)?>
http://kirti-bi-solutions.blogspot.com/2009/06/passing-parameters-from-obiee.html
Maybe you are looking for
-
I cannot install itunes. I downloaded i tenes and when i started installing it , it says "installing apple application support" and stops there What can i do ?
-
How to add AppleTV to my list of devices on iTunes
-
Will I lose the music files on my IPhone when I sync with my new Mac Book?
I have music files on my iPhone that I fear will be lost when I first sync with iTunes on my new Mac Book. When I try to sync a msg pops up saying that all music on the iPhone will be deleted and replaced by the selected music from my Mac Book. Is th
-
Downloaded John Mayer album bur one song is cut off at the end, how to fix??
-
Dear Friends, we have one Cost Center like 147520100 - HO F&A Dept period 1.1.1900 to 31-12-999. but this month we have changed the Description of this cost center to Account Dept via Tcode OKEON. But when we seeing Tcode KS03 147520100 - HO