Can we use session variables in BI publisher's Data Model SQL Query?
Hi Experts,
We need to implement Data level security in BI Publisher 11g.
In OBIEE we do so by using session variables, so just wanted to ask if we can use the same session variables in BI Publisher as well
ie can we include the where clause in the Data Models SQL Query like
Where ORG_ID = @{biServer.variables['NQ_SESSION.INV_ORG']}
Let me know your views on this.
PS: We are implementing EBS r12 security in BI Publisher.
Thanks
Read this -> OBIEE 11g: Error: "[nQSError: 23006] The session variable, NQ_SESSION.LAN_INT, has no value definition." when Creating a SQL Query using the session variable NQ_SESSION.LAN_INT in BI Publisher [ID 1511676.1]
Follow the ER - BUG:13607750 - NEED TO BE ABLE TO SET A SESSION VARIABLE IN OBIEE AND USE IT IN BI PUBLISHER
HTH,
SVS
Similar Messages
-
Session variables in bi publisher 11g data model
Hello ,
I am new to bip data models , i am creating data model using bi answers issued sql query . In that bi answers there is an column containing session variable (nq.session.Currency) . When using column in bip data model . How do i give filter column telling it has session variable and setting the session variable currency as bind parameter .
Please provide inputs how to use columns containg session variable in bi publisher data model
Thanks,
SRIKANTHHi,
You can use VALUEOF("session_variable_name") in the filter condition in your logical query.
BR. -
Can we use repository variables in bi publisher like in anwers
can we use repository variables in bi publisher like in anwers
if possible then howYes,
but you should be using Oracle BIEE as Datasource in order to use the variable of repository
you 'll have to follow this syntax: valueof("variable") -
How can we use Session Variable in Answers or Analysis?
How can we use Session Variable in Answers or Analysis?
Again, duplicate cross-posting!
See rukbat 's post here: Re: BI Apps 7.9.6.3(Agent Issue) -
Hi All,
I have created a write back report and successfully inserted records into a table.
Now i want to capture the user who has inserted in to the table.
Till now i have given edit option to the users on USERNAME column.
But now i want to capture the user automatically.
when i user VALUEOF(NQ_SESSION.USER), i can capture the Logged in user in USERNAME col and the moment i execute the report it is throwing an error.
What i observed is....
In the advanced tab USERNAME col is changed to VALUEOF(NQ_SESSION.USER).
is there any workaround for this?
Thanks>>I have a session variable assigned to the ID#(auto
number in access db) of messages posted.
I not sure if I follow your in the description. I would
assign the Record ID to the session variable.
Place the Record id in the repeat region.
Then you could assign that record id to a session variable
when the button is click, capture the button click event. Then
redirect to the EMPLOYEEMessageDELETE1.asp page, which will read in
the session variable (record id) to be deleted.
David Pearson -
How can I use a variable in BEx of type date ?
Hello,
I have an infoprovider with a key figure of type "date" and I want to display for example all the data where the date is lower than a date entered by the user.
So I want to create for that a date variable and use it in conditions.
When I try with "manual entry", I can't get the type "date" : it proposes quantity, amount, number but not date.
When I try with "customer exit", I can get the type "date" but when I get it on the selection screen, the date is seen as a number so it doesn't work.
Does anybody have an idea.
Thanks for your help.
Regards,
Vanessa RoulierHi!
if you are using a cube then there will be at least one time char. I think you can just add 0calday to your cube , even if you are not filling it.
Once this is available in cube it can be used in query (free chars) where we can define a variable on this 0calday. But we it will not have any effect on query results as you are not storing anything in your query.
then in your conditions you create a variable with USEREXIT type. then in your ABAP code you can access the value stored in variable(which is entered by user) and copy it to the USEREXIT variable. Then your condition works because it is having a date type and the value is date.
I don't see any problem in implementing this scenario.
with regards
ashwin -
How to use numeric column in BI Publisher 11g Data Model?
Hi Gurus
I was able to create a link(join) in Data model when I used VARCHAR column.
However if I used numeric column I got an error
Any ideas?
Thanks
LaszloCan you please post the error message?
Regards,
Kalyan Chukkapalli
http://123obi.com -
Using Session Variable in the Column Level Security
My Question -
1. I created an initialization block with initialization string by calling a new session variable CTP_ID_LIST in the sql command, given appropriate database connections and when I exit out of Block, and chosen Row-wise initialization. I do not see a new session variable created under variables list. Why does this happen? Please help me on this.Hi,
This happens when you select Row-wise Initialization.
The row-wise initialization feature allows you to create session variables dynamically and set their values when a session begins. The names and values of the session variables reside in an external database that you access through a connection pool. The variables receive their values from the initialization string that you type in the Initialization Block dialog box.
You can also use the row-wise initialization feature to initialize a variable with a list of values. You can then use the SQL IN operator to test for values in a specified list.
Example: Using the table values in the previous example, you would type the following SQL statement for the initialization string:
select 'LIST_OF_USERS', USERID
from RW_SESSION_VARS
where NAME='STATUS' and VALUE='FULL-TIME'
This SQL statement populates the variable LIST_OF_USERS with a list, separated by colons, of the values JOHN and JANE; for example, JOHN:JANE. You can then use this variable in a filter, as shown in the following WHERE clause:
where TABLE.USER_NAME = valueof(NQ_SESSION.LIST_OF_USERS)
The variable LIST_OF_USERS contains a list of values, that is, one or more values. This logical WHERE clause expands into a physical IN clause, as shown in the following statement:
where TABLE.USER_NAME in ('JOHN', 'JANE')
Regards
MuRam -
How to use session variable in JSP function & How to use both JSP Servlet
Hi,
I am new to JSP and servlets
Still I am devloping a website in JSP. I am not mixing JSP with servlets, but I do create Java files for bean, logic and database works.
I try to keep the hard coding part out of JSP.
I dont how to use both JSP and Servlets in combination.
Hence If needed I write some functions in JSP.
but it gives me error
+<%! public void abc()+
+{+
int intUserId = Integer.valueOf((Integer) session.getAttribute("MySession_UserID"));
+}+
+%>+
Saying cannot find symbol session
1) So can u please tell how can I access session variables within JSP function
2) And also give me some links/tutorials about useing both JSP and Servlets in combination.
Thanks
VenkatThe application architecture when you use Servlets and JSP in a standard MVC pattern is explained here (under the heading "Integrating Servlets and JSP Pages") and here ...
-
Use Session Variable with row-wise initialization
Hello,
I use an initialization block in order to load some translations in my repository (version is 11.1.1.6.BP1) :
SQL :
SELECT CODE_KEY, STRING_VALUE FROM "TABLES" WHERE LANGUAGE_KEY= 'VALUEOF(NQ_SESSION.USERLOCALE)'
Values :
CN_INCOMING, Incoming, en
CN_OUTGOING, Outgoing, en
CN_INCOMING, Réception, fr
CN_OUTGOING, Emission, fr
etc ...
I checked the row-wise intialization.
The query is correct and returns the right values (I check in the log file ..).
So far, So good.
But when I want to use session variables in a column expression (in repository) like :
CASE WHEN "column"="xx" THEN VALUEOF(NQ_SESSION."CN_INCOMING") ELSE VALUEOF(NQ_SESSION."CN_OUTGOING") END
I got the error: [nQSError: 23006] The session variable, NQ_SESSION.CN_OUTGOING, has no value definition.
If I used the same formula directly in Answers it's working correctly.
Do I have to necessarily do this in answers or is there a way to do this in the repository.
Thanks in advance
Regards
BenjaminYes I already tested this point, when I don't use a row wise initialization it's working, but I don't want to create one variable for each translations that I need to use in column formula if you know what I mean.
I don't understand why we can't use this kind of variable in this context ..but if I have to create the column in my analysis, I will do that, but it's not really user friendly
Anyway thanks for your time. -
Page Specific Persistence using Session Variables
Hi, I have read a lot about using session variables to persist the ReportDocument object across page loads. This works fine if you have just one page open with one report. The problem I am having is I have a web application that makes 30 or 40 different reports available to the user. To simplify the code and make it easier to add new reports I have developed a single template aspx page that can be used to view any of the reports.
My problem is that if the user opens 2 different reports in 2 separate tabs in the browser then the session variable persistence doesn't work because the session variable is available to both tabs.
Is there a way to persist the ReportDocument object which is 'page' specific.
ThanksYour best option is likely to have something that makes the session variable names unique. I've done such things as putting the current datetime in the url as a querystring parameter and appending that to the variable name. On each postback that querystring should persist.
You might be able to use the reportclientdocument object and serialize the report and persist through view state, haven't tried this with inproc ras though. A sample that uses the ras sdk can be found [here|http://wiki.sdn.sap.com/wiki/display/BOBJ/NETRASSDK+Samples] -
Dates Format in Promts using Session Variables
Hi Experts,
I have an issue in controlling date format in prompts using session variable which I am using to set default value.
By default date format is timestamp E.g '2010-12-19 12:00:00 AM'.
As per requriement(s) I customized the date format in Reports as 19-Dec-2010 and I saved it as "System Wide Default for <Date Column Name> "
So, I got desired format in Reports and Date Prompts.
Now, I need to set a default value in Date Prompt. So, in RPD I created a Session Variable which returned me date in
DD-MON-YYYY format. Using follwing SQL :
SELECT REPLACE(CONVERT(VARCHAR(11), Getdate (), 106), ' ', '-') AS [DD-Mon-YYYY]
But in reports takes this value as string and not Datetime. So i got an error message.
A datetime value was expected (received "19-Dec-2010").
If i do not use above SQL to CONVERT date then default date in prompt get displayed as timestamp format and give me desired results but Formatting looks very odd in prompt
Is this a way so I can persist the [DD-Mon-YYYY] Formatting for default value which comes using variable and still run the report.
Above problem also exist vice versa that is if i SET that session variable and pass the datetime value to server. But there i guess I can use ToDate or some Casting in RPD column expression to handle that. Tell me if i am right ?
Thanks
SaurabhThat almost works. I had to adjust the syntax to the following...and then there are other issues doing this.
select cust_no, name,'@{session.currentUser}' from customersMy write-back SQL is this:
UPDATE customers SET NAME='@{c1}',LAST_EDITED_BY='@{c2}' WHERE CUST_NO=@{c0}But I don't want to display the cust_no column to the user. So I hide it in the UI. But if I do that I get the below error during write-back. Apparently sometimes when you hide a column on a direct query (numeric maybe?) the value doesn't transfer over to the write-back. If that's the case, this won't work for me. Hmm...
Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43093] An error occurred while processing the EXECUTE PHYSICAL statement. [nQSError: 17001] Oracle Error code: 936, message: ORA-00936: missing expression at OCI call OCIStmtExecute: UPDATE customers SET NAME='Wyatt Donnely',LAST_EDITED_BY='Administrator' WHERE CUST_NO= . [nQSError: 17011] SQL statement execution failed. (HY000)
SQL Issued: EXECUTE PHYSICAL CONNECTION POOL dev1 UPDATE customers SET NAME='Wyatt Donnely',LAST_EDITED_BY='Administrator' WHERE CUST_NO= -
Can we use Substitution variables in MAXL?
Hi,
Can we use substitution variables in MAXL script?
I have to run this MAXL command for clearing a slice of ASO cube on V11.1.1.3.
alter database Apname.DBname clear data in region 'CrossJoin({[2009]},{[Dec]})';
I am planning to use Current_year & Current_month variables instead of hardcoding 2009 & Dec as I have to use this everymonth to clear the current months data.
If it is allowed, what is the syntax?
Is there any alternative apart from substitution variables?
Appreciate your thoughts.
Thanks,
-Ethan.You would just use ampersand and the variable name instead of the hard coding e.g. &yearVar &periodVar.
Not tried it on aso clears but in theory it should work as ...'CrossJoin({&yearVar},{&periodVar})';
just change yearVar and periodVar for your substitution variable names.
Cheers
John
http://john-goodwin.blogspot.com/ -
How can I use environment variables in a controller?
Hi all,
How can I use environment variables in a controller?
I want to pass a fully qualified directory and file name to FileInputStream and would like to do it by resolving an env variable, such as $APPLTMP.
Is there a method somewhere that would resolve this??
By the way,Did anyone used the class of "oracle.apps.fnd.cp.request.RemoteFile"?
The following is the code.
My EBS server is installed with 2 nodes(one for current,and other is for application and DB).I want to copy the current server's file to the application server's $APPLTMP directory. But the result of "mCtx.getEnvStore().getEnv("APPLTMP")" is current server's $APPLTMP directory.
Can anyone help me on this?
private String getURL()
throws IOException
File locC = null;
File remC = new File(mPath);
String lurl = null;
CpUtil lUtil = new CpUtil();
String exten;
Connection lConn = mCtx.getJDBCConnection();
ErrorStack lES = mCtx.getErrorStack();
LogFile lLF = mCtx.getLogFile();
String gwyuid = mCtx.getEnvStore().getEnv("GWYUID");
String tmpDir = mCtx.getEnvStore().getEnv("APPLTMP");
String twoTask = mCtx.getEnvStore().getEnv("TWO_TASK");
// create temp file
mLPath = lUtil.createTempFile("OF", exten, tmpDir);
lUtil.logTempFile(mLPath, mLNode, mCtx);
Thanks,
binghaoHowever within OAF on the application it doesn't.
what doesnt work, do you get errors or nothing ?XX_TOP is defined in adovars.env only. Anywhere else this has to go?
No, it is read from the adovars.env file only.Thanks
Tapash -
How can we use java variable in javascript code on JSP page?
How can we use java variable in javascript code on JSP page?
Pls helpThink about it:
JSP/Java is executed on the Server and produces HTML+JavaScript.
Then that HTML+JavaScript is transfered to the client. The client now interpretes the HTML+JavaScript.
Obviously there's no way to access a Java variable directly from JavaScript.
What you can do, however, is write out some JavaScript that creates a JavaScript variable containing the value of your Java variable.
Maybe you are looking for
-
A MacBook Air was reported stolen From a room at my hotel that belong to a guest. I request a apple Id and password from the guest in order to track it though iCloud, when I login into the account the MacBook was not their, however I saw other device
-
Hello, I was wondering if it would be possible order sql results from a mysql database by a piece of a name. For instance, all the product names that contain "red" should come first such as: Red Flashligh deluxe or Redundant lights or whatever. I hav
-
Can't load about:newtab page in new tab
Hello, A recent hack attack from Bing has reset the value in browser.newtab.url to their search page. I keep trying to reset it to about:newtab but when I click OK the URL remains the same and my changes are ignored. What can I do about this? I reall
-
Fill aggregates through process chain?
hi, we are creating aggregates on cube for perticular characters. when i use same thing in process chain, i am getting cube level, how can i find perticular character while filling aggregates in process chain? regards ss
-
REP-3104: Anchors and matrices problem in Report
I have a master detail report. The detail repeating frame has a set of boiler plates that are diiferent from the master e.g master lease master address master location master first name master lastname Then master repeating frame The detail boiler pl