Multiple values in Presentation Variable
Hi All,
I have a requirement like this. I have a report that report is Direct Database request. I want to pass the multiple values from the prompt in to the Direct database request report.
The single values is already passed in the direct database report with this syntax (@{PresentationVariable Name}). But when i tried to select multiple values from the prompt it doesn't work.
So can someone have any idea or any workaround how it can be achievable. My version of OBIEE is 11g.
Regards
Ashish
use something like below in DDB req
Column in '@{PresentationVariable Name}'
just save it and test with prompt value using db page.
Similar Messages
-
Store multiple values into a variable
I was wondering if it was possible to store multiple values into one varaible. Something along the lines of...
Oracle: 10g
--Table xSample (this is obviously a dumbed down version of the table for the sake of showing what I want to accomplish
S_ID YEAR
1 2009
2 2009
3 2009
4 2009
--Query
select s_id
into pID
from xSample
where year = 2009;Basically the reason I was trying to figure out how to store multiple values into a variable is b/c I was going to use that variable (pID) as a parameter and have it's values passed dynamically when the proc was called. The values would go into a query that would look something like:
select *
from cust_data
where person_id in (pID)
aka
select *
from cust_data
where person_id in (1,2,3,4)Not sure if this is possible, but if anyone knows of a way I could accomplish this that would be great.
Edited by: user652714 on Dec 23, 2009 9:37 AMHere's a basic idea building a comma seperated list, then consuming it in another query (taking the in list approach from Tom's post, linked earlier).
create table xsample (s_id number not null, year number);
insert into xsample select level, 2009 from dual connect by level <=4;
commit;
declare
--4000 should be lots ... hopefully?
v_parameter_list varchar2(4000);
begin
--create the comma seperated list
select
substr(max(sys_connect_by_path(s_id, ',') ), 2, 4000)
into
v_parameter_list
from
select s_id, row_number() over(order by 1) as rn
from xsample
where year = 2009
start with rn = 1
connect by prior rn = rn - 1;
--consume the comma seperated list
for x in
with data as
select
trim( substr (txt,
instr (txt, ',', 1, level ) + 1,
instr (txt, ',', 1, level+1)
- instr (txt, ',', 1, level) -1 ) ) as token
from
select ','||v_parameter_list||',' txt
from dual
connect by level <= length(v_parameter_list)-length(replace(v_parameter_list,',',''))+1
select *
from xsample
where s_id in (select * from data)
loop
dbms_output.put_line('next item = ' || x.s_id);
end loop;
end;
/ -
Value of Presentation variable
Experts,
What is the Value of Presentation variable if I dont type in any value in the edit box and click Go.
My requirement is if the user does not type in any value in Edit box, the request should show NO Results.
How can I achieve this.
thx,
paragParag,
To get No results when the prompt (edit box) is empty or you delete value from it and hit GO you need to use presentation variable in the filter insted of IS PROMPTED, for example:
My report:
PRODUCTS.PROD_CATEGORY
SALES.QUANTITY_SOLD
Filter (advanced SQL filter): PRODUCTS.PROD_CATEGORY='@{pv_cat}'
My dashboard prompt:
PRODUCTS.PROD_CATEGORY - edit box - wtihout default value - set presentation variable pv_cat.
Now you'll get No results when the prompt (edit box) is empty or you remove value from it.
Regards
Goran
http://108obiee.blogspot.com -
How to send different value of presentation variable in GO URL??
Hi there,
I'm using GO URL to send presentation Variable (d_pv) to filter other report on 'day' column.....
'(a href = http://server/analytics/saw.dll?GO&path=/shared/BI%20Reports/Ki1/KPIs%20Detail%20Priority%203%20Shipped&Action=Navigate&p0=1&p1=eq&p2="Time".Day&p3=@{d_pv})SHIPPED(/a)'
This is working fine. But my goal is to filter the other report using previous day of the value of d_pv (eg. if d_pv value is '2010-04-27' , I need to filter other report using '2010-04-26')
I couldn't find to pass one day back value of presentation variable using go url.
Please Help..
Edited by: bob123 on Apr 28, 2010 10:15 AMI'd say use TIMESTAMPADD(SQL_TSI_DAY,....,1) and use pass your pres variable to this column.
so when you pass 28/04/2010 to the target report day+1 column, it will show 27/04/2010 data. -
Multiple values to Substitution variable in AAS
Hi,
Is that valid to assign multiple values to substitution variable in essbase.For example Curmth(Substitution Variable) is it possible to assing Jan, feb etc.
ThanksYes in multiple ways depending on the useage.
For instance, you could have currmth in multiple database with different values
Sample.basic Currmth= Jan
SampASO.basic Currmth = Feb
Or in a single database you could have
Sample.basic Currmth = "Jan","Feb","Mar"
The above would work in a calc script bout would not work in an excel retrieve.
You can also use variables for other things For instance, you could have a vairable called settings where
settings = set updatecalc off; set msg summary; set aggmssg off
and put this in the top of your calc scripts so you don't have to repeat it every time. -
Multiple values for one variable?
I've created my first set of variables (using Form Properties>Variables), tweeked some XML sourcecode and they're working .
What I'm now trying to figure out is how to have one variable that has 2 values that pop up in 2 different text fields.
Simple form at this point:
Item, Model and Service Tag.
The user selects the item from the drop down list and the Service Tag field is autopopulated from the variables I set.
How do I get the Model to appear based on the Item selection?
I tried putting the two values for one variable together but both values appear in the same field.
Variable info that works: Scan (variable) = MC3090BT (value)
I also need this particular variable to = Handheld scanner (try to ignore the redundancy).
I attempted to make MC3090BT as it's own variable with Handheld scanner as it's value, and add to the code below but it didn't work.
Here's some of the code if it helps:
<event activity="change" name="event__change">
<script contentType="application/x-javascript">if(xfa.event.newText == "Handheld scanner"){
servicetag.rawValue = scan.value;
}else if(xfa.event.newText == "Latitude X1"){
servicetag.rawValue = X1.value;Hi, I am trying to do the same thing..passing multiple values to receiving query variable through RRI. Right now if I assign a query variable of type multiple single values it does not take any value. It works only if I assign variable of type Single Value.
In my assignment details the sender query has Generic for type and * for selection type.
If any one knows how to pass multiple values to receiving RRI query, please give the details.
Thanks -
Default multiple values for formula variable on variable selection screen
Hi All,
Suppose 'A' is formula variable with customer exit as processing type then i want four default values for this variable eg: 3, 6,9, and 12 as selection options, when we will execute query user can able to pick any one of the default value.
is it possible in BEx for formula variables?
I also tried with ABAP code in 'cmod' t-code, but it is not working properly for 4 default values....but for single default value, code is working fine.
I am using following code ::
When 'ZCSIMCTB'. // variable name
IF i_step = '1'.
CLEAR : l_s_range.
l_s_range-low = 3.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
APPEND l_s_range TO e_t_range.
CLEAR : l_s_range.
l_s_range-low = 6.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
APPEND l_s_range TO e_t_range.
CLEAR : l_s_range.
l_s_range-low = 9.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
APPEND l_s_range TO e_t_range.
CLEAR : l_s_range.
l_s_range-low = 12.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
APPEND l_s_range TO e_t_range.
ENDIF.
Thanks in advanceHi Sankar,
Thanks for reply...
With single quotes also its not working.......
Also as I am using Formula Variable so by default "Single Value" is coming on Variable Details....
Regards,
NIlesh -
Issue with Dashboard Prompt passing value to Presentation Variable
I have 2 tabular reports that grab 2 variables respectively: @Month and @Year.
The reports work fine.
My issues is that to compute the most recent month & year, so I can pass the values to the 2 variables mentioned above, I have a dashboard prompt on the same page as the 2 reports. In the dashboard prompts (Edit Box types), I have SQL in the "Default" that computes the most recent month & year. This logic also works perfectly when you preview the results of the prompt.
My issue is that when I land on the page, it seems that the month & year prompts are not computing. I have an old value of "Dec" "2009" instead of "May" "2010".
It seems the Default SQL logic is NOT running on its own? As an aside, we do our development in a test environment and the catalog is promoted to production nightly. The "Dec" and "2009" I see is the correct value for the test environment, so it looks as if the defaul values are just being migrated with the catalog, but then the SQL to compute the latest values of the 2 propmts are never executing when the user lands on the page? Thus everyone sees Dec 2009 data instead of May 2010...Help!Hi,
dgerena wrote:
My issues is that to compute the most recent month & year, so I can pass the values to the 2 variables mentioned above, I have a dashboard prompt on the same page as the 2 reports. In the dashboard prompts (Edit Box types), I have SQL in the "Default" that computes the most recent month & year. This logic also works perfectly when you preview the results of the prompt.You are creating the second prompt (edit box) to make the first prompt values, You can use the same sql in the report default to SQL in the first prompt itself.
If I am wrong please clarify.
Thanks,
Vino -
Passing multiple values to one variable in jsp/javabean
I have a form, which contains an assortment of fields/checkboxes/etc. What I'd like to see is when someone goes through the form and enters text or checks any fields on the form they want, after they submit it to the next page, the next page will display all those values that they entered or checked. Some of these values entered may be strings or integers. I want all those values (checkbox1, checkbox2, etc) to be stored in one variable in a javabean so I can call upon that value at anytime during the session. Any suggestions?
why do you want to store so many data in just one variable?
-
How to get multiple values in a variable and apply filter at run time
Hi experts,
I want to get the deprtment information for an user. User may belongs to many department.
when user login at run time the filter should be apply for his departments.
users deprtments chnages frequently so we can't hardcode it.Hi,
Please refer to below post for one of the causes of this error:
Re: obiee-ebs data security integration
Also, can you check if you are getting NULL values for any rows. This might be the issue too. To verify this add ' and a.BUSINESS_UNIT_CODE is not null' in your query and check the results. Ensure you restart the BI services, clear your cache and then verify your result.
Thanks -
How to set MULTIPLE repository variables using presentation variables
Hi,
I need to pass multiple values from presentation variable to repository.
A brief about report design :
I have two repository variables - from_dt and to_dt which are defaulted to some values from a database table and are editable by the user.
I display these default date values on the dashboard. Plus there are two dashboard date prompts allowing user to enter a date range different from what is displayed by the from_dt and to_dt. The dates entered by user are assigned to presentation variables pv_from_dt and pv_to_dt.
If user specifies a different date range then these date values are to be passed to a stored procedure which is called from the Connection Pool --> Connection Script Tab --> Execute before query. This procedure will do some calculations and populate a global temporary table before running the report.
Problem :
Now in the presentation server, in the Advanced tab, in the Prefix section, when i try to write something like this:
SET VARIABLE from_dt = '@{pv_from_dt}';
SET VARIABLE to_dt = '@{pv_to_dt}';
I get the foll error :-
Error Codes: YQCO4T56:OPR4ONWY:U9IM8TAC:OI2DL65P
Odbc driver returned an error (SQLExecDirectW).
State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 27002] Near <SET>: Syntax error [nQSError: 26012] . (HY000)
I tried all possible permutations and combinations
SET VARIABLE from_dt = '@{pv_from_dt}',SET VARIABLE to_dt = '@{pv_to_dt}'; --- gave same error
SET VARIABLE from_dt = '@{pv_from_dt}' SET VARIABLE to_dt = '@{pv_to_dt}'; -- gave same error
How do we assign values to multiple reporsitory variables... ???
Thanks
NusratHi,
I wrongly referred to the variables as "repository" variables. Both variables are Session variables. For testing i added a column field in the report with source as the session variable - VALUEOF(NQ_SESSION.from_dt). In the Prefix section i assigned a literal value - SET VARIABLE from_dt='01-JAN-2012';
When report is run, the literal value gets displayed.
The idea to update a session variable, from dashboard using presentation variable, i got from the following URL.
Go to http://oraclebizint.wordpress.com/category/obi-ee-plus/page/11/
and see the section "Oracle BI EE 10.1.3.3/2 – Updating Session Variables from Dashboards using Presentation Variables"
Thanks
Nusrat
Edited by: user10309945 on Jan 16, 2011 9:30 PM
Edited by: user10309945 on Jan 16, 2011 9:59 PM -
How to pass the values to stored proc using presentation variable in OBIEE
Need your help regarding in resolving an issue in OBIEE 10.1.3.4.1
There are 6 reports say ‘A’,’B’,’C’,’D’,’E’,’F’ in the same subject area.
The reports are being configured with prompts using either the repository/presentation variables.
One of the reports say ‘A’ has been configured to pass the values using presentation variables from the prompt in Advanced Tab of the report request to the stored procedure defined in the Execute Before Query section of the connection pool.
After running another report ‘B’ in the same subject area, upon visiting the report ‘A’ view display error is being seen ( Please have a look below screen shot for your reference) .
Speculate the issue is around presentation variables of report ‘A’ getting initialized even before running the report.
Appreciate your earliest advise as this is a prod issue.Hi Prasad,
I got your note, you should not use Session variable syntax to call presentation variable.
you should use like @{AIC_PROJ_PLAT_SEQ_NO}
One more thing: first test the variable AIC_PROJ_PLAT_SEQ_NO value then try to pass to SP.
Hope this helps -
Unable to pass the values to stored proc using presentation variable in OBI
Hi All,
Need your help regarding in resolving an issue in OBIEE 10.1.3.4.1
There is an OBIEE requirement whereby two prompts need to be defined.
1. Textbox prompt
2. Drop-down prompt
The dropdown values should be populated using textbox prompt. So, we have used presentation variable in textbox prompt and passing the same to select query of drop-down.
Until this step, the report works just fine.
Now, the value in both textbox and drop-down needs to be passed to stored proc.
While trying to pass the values by using the presentation variable, the following error comes-up saying
Session variable has no value definition.
Note:Although the corresponding session variable has been set to default value,still the error appears.
Please advise.
Regards,
Prasad"Session variable has no value definition" I'm assuming typo error and it should be presentation variable.
Set default value for presentation variable that may work -
In OBIEE 11g, how can you set a presentation variable value from javascript ?
I want to set up presentation variable from a javascript variable. Does anyone knows the workaround for this ?
SriniVEERAVALLI,
Thanks for your suggestions. I want to make a custom prompt that is only my requirement. From JS I have made a custom slider prompt now I want to use this slider prompt to pass selected value in presentation variable. Since, we have slider prompt only for numbers, I have to use it for other values.
I just want to make my post looks simple and focus on the specific problem.
Anyways, thanks a lot for taking time to reply. Appreciate your help. -
How to pass Presentation Variable Value from Main Report to Detail Report
Hello,
I've 2 reports that is attached to each other. In my main report i've several report prompts and i am using i"s prompted" on my detail report to attach them.
But 2 of my report prompts are presentation variables(Names : FIRST, SECOND). Both are in date format. I've a filter in my main report like;
"ASSIGNMENTS_F"."EFFECTIVE_START_DATE" BETWEEN @{FIRST} AND {SECOND}
It works fine when i run the main report. But when i click on the numbers, i see that i can not filter my detail report with the chosen values for 2 presentation variables. It just shows all the dates.
I've tried adding both presentation variables in both reports as columns and adding 'is prompted' filter to them. But did not work either.
I just cant pass the written values for presentation variable prompts to detail report..
Please help :)Hi,
What you can try is refer the filte condition in the main report to the detailed report with the option--> Filter based on another request.
Or you try creating another intermediate report which will refer the main report filters and pass the filters to the detailed report.
Hope this helps.
Regards
MuRam
Maybe you are looking for
-
Applet very slow and shows no activity, but its running
I have a new applet for the users, but I am reluctant to implement until I get some others opinions. It is very slow (30 - 40 seconds) Before it outputs a screen with about 20 lines, it reads 90 different html files. It looks at the forth rec of each
-
Report without a selection-screen, just a dynpro
Hi experts, I wrote a small report, which reads out a file. After this I want to display it in a tablecontrol of my dynpro. In the dynpro there is a button to push the data of the tablecontrol in the R/3 via BDC. Now I have the problem of a automatic
-
.. and I can't put in my proper payment options, since it's fixed for brasil automatically. Does anyone know what to do about that? ( Can't change the language, drop-down menu on the bottom is gone.)
-
Scope of MM in Service Industry
Hi, What is the scope of MM in a Service Industry? Regards,
-
I have an iPad 2 that just stopped working...no display...won't turn on...tried to sync to iTunes and couldn't because I need to put in my passcode. There is no display, so can't do this. Am dead in the water. Does anyone have ideas to solve this iss