[BIP Report] Could I use 'like' syntax inside if-then-else statement?
I have the following contents in my xml, I would like to show the amount of the ChargeAmount, only if the "Code" is starting from "WAF"in my table.
<Transaction>
<Account>A</Account>
<ChargeAmount>200</ChargeAmount>
<Code>WAF020</Code>
</Transaction>
<Transaction>
<Account>B</Account>
<ChargeAmount>250</ChargeAmount>
<Code>WAF003</Code>
</Transaction>
<Transaction>
<Account>C</Account>
<ChargeAmount>120</ChargeAmount>
<Code>WNL012</Code>
</Transaction>
<Transaction>
<Account>D</Account>
<ChargeAmount>200</ChargeAmount>
<Code>WNL002</Code>
</Transaction>
*** Note that the three digits after WAF is variable.
Display Table:
Account || ChargeAmount || Code
A|| 200 ||WAF020
B|| 250 ||WAF003
C|| NULL ||NULL
D|| NULL ||NULL
In the ChargeAmount column I tried the following syntax, however, both of them does not work well.
<?if: <xdoxslt:left(Code, 3)> = 'WAF' ?> then ChargeAmount else ' ' ?end if?>
<?xdofx if: Code = 'WAF?' ?> then ChargeAmount else ' ' ?end if?>
Could any expert provide work around for the above case?
Thanks!
Connie
In the ChargeAmount column I tried the following syntax, however, both of them does not work well.
<?if: <xdoxslt:left(Code, 3)> = 'WAF' ?> then ChargeAmount else ' ' ?end if?>
<?xdofx if: Code = 'WAF?' ?> then ChargeAmount else ' ' ?end if?>
incorrect code will not work
not clear what do you want to do but try
<?xdoxslt:ifelse(xdoxslt:left(Code,3)='WAF',’yes’,’no’)?>
or
<?xdoxslt:ifelse(contains(Code, 'WAF'),’yes’,’no’)?>
Similar Messages
-
Is there an example to use interface to replace if then else pattern in F#
is there an example to use interface to replace if then else pattern in F#
i want to make match pattern with only one rule to represent dynamic number of rules which is use
let rec fun1 m number fun2param =
match m with
| fun2param(a,b,number) -> ****rewrite terms ****
let fun2param number =
if number = 1 then
function.....
elif number = 2 then
function ....
computing nightmareIn general, you use a match
let fun2param number =
match number with
| 1 -> function.....
| 2 -> function ....
in the same way as you would use a `switch` construct in 'C' in place of a repeated if/elif...elif/else
Your request is somewhat vague, so I'm not sure whether you would benefit from wrapping that behind an active pattern. -
Siebel & "BIP Report Generation" Workflow and Bookmark Syntax
IHAC that wants to schedule the generation of a BIP report to run every weeknight and include a list of activities for the next day. We've utilized an OOTB IO and can successfully render the report using Sample XML in MS Word. Additionally, since they are only on 8.1.1, they do not currently have access to the latest scheduling capabilities. Therefore, we're trying to implement a repeating component to call a workflow to generate the report using the 'BIP Report Generation' workflow and the associated objects (from support posting 823360.1).
Now to the questions:
One of the parameters for the workflow is a 'Bookmark'. This parameter does not appear to handle various 'Siebel' querying functions like 'Today()' as part of the criteria. Can someone confirm this statement?
Currently, I can imagine one high-level possible workarounds. This would entail a revised WF and that includes a prior step to generate the 'Bookmark' by retrieving a string representation of tomorrow's date and concatenating it with the rest of the criteria.
Next question:
Does anyone have any other possible alternatives? Maybe a calculated field in the BC/IC for 'Today() + 1' - but this could have performance implications.
Thanks in advance for any help.Suggestions/comments?
Bump. -
Please help me with this problem I had created a new apple Id and signed in with that but my device is telling that no more free Id could be used in this device .what should I do to sign in with a new free id?
Any one Mac or iOS device can create only three iCloud accounts: this is tied to the serial number, not the user account. If you have already created three then all you can do is to use another Mac or iOS device to create a new iCloud account - once done you can sign into it on the device in question.
-
Passing parameters to a report via URL : using 'like' and '%' ?
Hi,
I have created a report by sql query, and I'm calling it by the means of a URL with a '.show' extension, and then I can specify as many parameters as I wish.
In my case I use a string as a bind variable ans I would like to pass it as a condition to render the report.
Thus I tried to use that :
"[call_url].show?p_arg_names=_[...]_cond&p_arg_values=like&p_arg_names=_[...]_[bind_variable]&p_arg_values=[xxx]"
To be able to use it I have to add a '%' at the end of it, so that I get all the rows beginning with the letters I specified, ie 'xxx' could be 'A%', so that I get all the rows beginning with an A.
The problem is that this character is not effective. I succeeded with the '_' character, but it brings a limitation to the length of the field, and it's not what I want. I also tried this : "...p_arg_values=A'&'%'", but I didn't manage to make it work !
Any idea appreciated !
Regards,
gael.Hi Gael,
your URL is made up of :
[ProcedureName]?[parameter1]=[value1]&[parameter2]=[value2]
creating URLs like this can have problems especially with spaces and punctuation.
the answer is a FORM
the following will create a hidden form :
FORM ACTION="[ProcedureName]" METHOD="POST" name="F1"
INPUT type="HIDDEN" name="[parameter1]" value="[value1]"
INPUT type="HIDDEN" name="[parameter2]" value="[value2]"
/FORM
you can set the values in the form using:
document.F1.[parameter1].value="abc123%%&&$$!";
document.F1.submit();
will submit the form and the PL/SQL procedure should receive the text as it was contained in the form.
the only characters that can now cause problems are :
" as it delimits the field.
' as it may cause problems in PL/SQL.
\ as it is a special character.
Regards Michael -
Use If then else statement to display concatenated values
Hi,
I am trying to create a field which will display 2 different names depending on the status of another field.
Here is the code I have but it returns no data when I try it:
<?xdofx:if ReportStatus='Approved' then concatenate(DisplayFirstName, DisplayLastName) else concatenate(InvFirstName, InvLastName) end if?>
(Also I need to solve how to create a space between the first and last names)
Any help would be appreciated thanksUse the following.
<?choose:?>
<?when:ReportStatus='Approved' ?>
<?DisplayFirstName?> aspace <?DisplayLastName?> or <?concat(DisplayFirstName,' ', DisplayLastName)?>
<?end when?>
<?otherwise:?>
<? InvFirstName?> a space <? InvLastName?> or <?concat(InvFirstName,' ', InvLastName)?>
<?end otherwise?>
<?end choose?> -
Is there a method to get the list of the BIP reports in the system , like using the Catalog Manager in OBIEE 11g?
THi,
By Using Create Report - Via catalog manager
Go to login --> catalog manager---> tools menu--> create report--> select type of report
then you will get o/p report and just save it as .xls
Refer section, 17.9 Creating Reports to Display Catalog Data Using Catalog Manager
http://docs.oracle.com/cd/E23943_01/bi.1111/e10541/prescatadmin.htm#i1038437
Thanks
Deva -
Charactersitic values to be used in IFTHEN ELSE STATEMENT IN QUERY
scenario: i need to use the characteristic values(not the attributes) to be used in an IF THEN ELSE STATEMENT in query. so i created a formula variable for the characteritic of processing type replacement path, replace with key.The values are not fetched in the result and is displayed as X.
what should i replace with key,lable, constant or other options whereas my requirement is the all the values present in the characteristc should be used.
eg. if char name is xyz and has the values 1,2,3,4,5 till -
20.
then in a calculated key figure :(formulavariable =1)* kefig1keyfig2 +not(formulavariable =1)kef2keyfig3.
this formula variable should have all the values of the characteristic values ie 1,2,3---20.
2. how should i do get the values of characterstics values in the equation give me the steps in detail..
3. i do not want to use the attributes, though i tried initally while creating the formual variable i replaced with attribute value, there is was an error and there were no reult.
i tried to create char. variable for the characteristic of manual entr , not ready for input values and gave all the values 1,2,3 --20 as default values and then created formaul variable and repalce with the variable, however this characteristic variable is not at all displayed from the list of variables which will be displayed while creating the formula variable.
help me out.
Thankshi srini,
i have includedthe char in rows. i want you to explain in detail how to use these values in the if then else statement in query.
i have created a calculated key figure 2= (formual variable =1 & keyfig a =0)* keyfig1kefig2 +not(formual variable =1 & keyfig a =0)keyfig2 *calculated keyfig1.
so this formula variable of replacement path have ref. to then char. and with what value should it replace, key, name, external char or attribut etc so that i should get the values of the char from 1 to20.
i donot to repalce with the attribute. i just want the char. values and not thier attributes (1. description 2. the second attribute has the values say abc1,efg2,ghi3 for respective charteristic values.
ie
char value desc 2nd attrib
1 hi abc1
2 bye defg2
3 ciao ghi3 -
Problem in If-Then-Else formula in report
Hello guys!
I use an If-Then-Else statement in a Calculated Key Figure (Cf. <a href="http://help.sap.com/saphelp_nw04s/helpdata/en/23/17f13a2f160f28e10000000a114084/content.htm">Conditional Calculations</a> ) and it works great with basic calculations.
I have a query (done in BI 7.0) where I display, for each calendar months (via 0CALMONTH), the usage (stored in a normal key figure in hours) of several products.
I need to take into account only the products that have been used for at least 60% of the time of the highest product for each month. I a single product, for a month, has been used less than 60% of the highest one, it should be considered as not being used at all (so the calculated usage would be = 0), otherwise, its usage is counted as normal.
In order to achieve this, I thought I would display the normal usage (the regular key figure) in column A, a calculated key figure that determines the MAXimum usage for each month in column B (which should be the same for all products) and another calculated key figure that displays the result of the If-Then-Else statement in column C.
In rows, I have 0CALMONTH and the products.
HOWEVER, when I do this, the result is incorrect. This is probably because to determine the MAX usage, I use a local calculation option, which displays the correct maximum usage on each row but it's not correct when used somewhere else.
<b>MY QUESTION IS: HOW can I display the maximum usage for a month on all rows without using the calculation option (and therefore would be correctly used by the If-Then-Else statement. I tried an aggregation exception but it doesn't really work (it works only on the total, but I need to do the calculation on each individual row).</b>
<u><b>Any useful comment will be greatly appreciated </b></u>
Thanks in advance!Hi Francal ,
Have you tried it . The constant selection will work if you have defined the calculated key figure correctly i.e. Aggreagtiomn "Max" with "product" as ref characteristic. Then you have to use this calculated key figure in your query , restrict it by "product" and make it a constant selection.
The calculated key figure it self will bring the highest usage for Month + product + ( any other characteristic you have in query ) but this will only apply to result . If you use constant seelction on top of it it will make sure that you see same value for all product for a particular month( and other characteristic combinations if you have ).
I have built similar queries and it works . By the way which versions of backend and frontend you have ??
Regards
Sanjay -
ApEx BIP report using webservice: could not convert null to bean field
Seems like a pretty straightforward problem but I don't manage to find a solution.
I have a BI Suite implementation on one server.
And a database with ApEx on another server.
I want to call a BIP report from within my ApEx application using the webservices (runReport) available in BIP 11g.
I used soapUI to test my webservice. Result : OK
When called from within ApEx, ApEx gives me a succes message but the report isn't generated. Instead the console on the BIP server shows the following error:
<Sep 12, 2012 10:28:37 PM BST> <Error> <org.apache.axis.encoding.ser.BeanPropert
yTarget> <BEA-000000> <Could not convert null to bean field 'sizeOfDataChunkDown
load', type int>
'sizeOfDataChunkDownload' is a field of the webservice that is left empty.
That indeed is the only difference between my soapUI test and the ApEx situation.
In soapUI I removed all empty fields. In ApEx this does not seem possible...
Some extra information:
- the webservice is created on this WSDL : /xmlpserver/services/v2/ReportService?wsdl
- it's defined as a SOAP v2
- no basic authentication
- the reports are defined in the BIP environment; not in ApEx
Edited by: kcaluwae on 13-sep-2012 3:19I overlooked a not nillable field...
-
How to use LIKE function with a parameter in Oracle REPORT builder??
how could i use parameter inside a LIKE function in Oracle reports builder?
it works in SQL plus, but not in report builder!!
Example:
select code,desc from item_master where desc
like '%&give_desc%'; ---works in SQL
like '%:give_desc%' ---doesn't work in report builder!!Hi Renil,
You will need to use the wildcard character (%) and the concatenation character (||) to join to your user parameter.
i.e. like '%'||:give_desc||'%'
Regards,
John -
Need Report in which using PC/CC , planned order could be found out.
Hi All,
Is there any standard report to find a Plan report for 2009 using which one could see the orders planned for respective department and where we can book time. Any report ( if any) in which using profit center or cost center the planned orders can be found out.
Please do let me know.
Regards,
Ajayreenek:
Welcome to the Apple Discussions. From what you've described the library to keep is the iPhoto Library_1. But before you do try the following:
1 - Rename each iPhoto Library folder so that you can easily identify them. They can be named anything you'd like, Library 1, Library 2, Library 3 or whatever.
2 - Launch iPhoto with the Option key depressed and, when asked, locate and open Library 1. Check it out as to contents.
3 - do the same for Libraries 2 and 3.
4 - now you'll know exactly which one to keep and which to delete.
5 - now download and run iPhoto Library Manager to rebuild your remaining library. It creates a new library and copies the files and data it needs from the old one, leaving it untouched and unchanged. If you have some unneeded folder in your library they will be ignored by iPhoto Library Manager. Here's how:
Using iPhoto Library Manager to Rebuild Your iPhoto Library
Download iPhoto Library Manager and launch.
Click on the Add Library button, navigate to your User/Pictures folder and select your iPhoto Library folder.
Now that the library is listed in the left hand pane of iPLM, click on your library and go to the File->Rebuild Library menu option
In the next window name the new library and select the location you want it to be placed.
Click on the Create button.
Note: It can take some time to create the new library if you have a lot of photos. One user reported that with a library of about 5,000 images it took about 12 hours so plan ahead.
Good luck.
Do you Twango? -
Is there any BI Dashboard view not allowed to use in BIP report?
My customer wants to display BI Dashboard page on BI Publisher report.
Is there any BI Dashboard view which is not allowed to use in BI Publisher report?
Seem no summarized document for this, and then can I understand like “No related limit for BIP report”?Explore this page OBIEE - Presentation Variable System (reserved variable) | GerardNico.com (BI, OBIEE, OWB, DataWarehouse)
-
BIP report using HTML view in dashboard printing without scrollbars, parts
Have created BI Publisher report in the MS Word using Landscape page settings.The report is printing without scrollbars in the OBIEE Dashboard using HTML view.
Could not see the whole page output...have tried using resolution property settings in the dashboard configuration...havent found any solution.
Have tried to use MHTML but the logos are missing.
Any quick solution for the above will be very helpful.
Thanks
BaddamHi Venkat,
Thanks for your quick respond.
1.) Auto Run is enabled. And the report runs automatically as well. But then it ignores the dashboard prompt (as a regular report would do as well). But when I choose some values in the prompt and then press go. Then it says I have to press on view as well.
2.) no that is not the case. My report is so big that it always need a scroll bar ;) also adjusting the size settings in the dashboard doesn't help. The only occurs when viewing in HTML, when previewing in excel or RTF it all just work fine.
3.) true, but ow well this is the least importetant one ;) so if this doesn't work, than it doesn't work ;)
4.) Ok, I will have a look on that.
5.) I did enabled HTML and EXCEL outputs in my BIP report. But when the first point is working, then I don't want to see the control bar anymore and I want to have the output on the dashboard in HTML and then I want to build a button, or a link or something that exports the request to excel. Is that possible? -
Syntax to get the login user who is generating the BIP report
Hi,
I need to display the user who is executing the BIP Report. I hav used the following syntax, but it displays blank.
<?xdofx:xdo_user_name?>
Can someone please provide the syntax?Hi
To connect the project professional with Project server and publish the project plan on server user need to have Project manager permission on PWA.
How to connect :
Open Project Professional from All program --> File --> Managed
Accounts -->Add you PWA URL (till PWA) --> Select the option Choose an account --> Save then close
Now open MS Project professional again it will ask you to connect to computer or PWA select PWA then you can start the Work.
You need not to get worry about LOGIN and user name , MPP will take Windows login of the user from Computer/laptop whoever
will be log in to system.
http://www.epmcentral.com/msp2010/pjserveraccount.php link is having Step by step image which will help you
kirtesh
Maybe you are looking for
-
Having Problem Adding to drag and drop to move furniture over a floor plan
I have the code which follows. I need to create floor plans where web visitors can drag and drop furniture onto the floor plan. I have three items that work but when I convert any additional items to a symbol and select movie clip and then add more
-
01858: a non-numeric character was found where a numeric was expected
Hi , I had ran a code SELECT TO_DATE (create_date,'MM/DD/YYYY HH12:MI:SS PM') FROM TABLE_A where i got error -01858: a non-numeric character was found where a numeric was expected but later i changed to SELECT TO_CHAR (create_date,'MM/DD/YYYY HH1
-
I just change phones on my prepaid account and....
I just switched phones on my prepaid account because my old one was defective, and now when I try placing a call it keeps telling me that I don't have enough money on my account to place the call. My account just renewed my plan this past weekend, pl
-
I am not able to restore a certain backup file folder to itunes. why?
i have a backup folder on my windows computer and i want to restore a file from yesterday 5/27/2013, and when i hit restore, it says that its been restored, but when i go to itunes, it says that my iphone was last restored on may 21 2013. why wont it
-
i'd like to create a home page that allows the visitor to choose between two languages- how do i do that?