Is it Possible to Create System Session variable
Hi Gurus,
I am creating a new Session variable but it is created under non-system variable. Is it any way to create a System Session variable. I am using User and GROUP the defualt Session System variable, i want to creat a new one for my requirement. Is it possible to do it? If so please give me some steps todo.
Thanks in advance
Regards
@li
Hi
as far my knowledge, it's not possible...
All system variables are predefined.. if you want to define anything you will have to satisfy with Non-System variable
But curious, why do you want to create session variable there only???
Similar Messages
-
Non-system session variable is not initializing
Hi,
I have created a non-system session variable using Row wise initialization, and using it in answers to filter a column. it is displaying below error
State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 23006] The session variable, NQ_SESSION.Visible_All_Offices1, has no value definition. (HY000)
I have tried all possible ways like giving the session variable in SQL result set, giving with quotes and without quotes. In all ways it is throwing the same error.
I think this variable is not getting initialized when starting the session, is there any way to check it. this variable is also not showing in Manage > Sessions > Variables in OBIEE Admin.
Please reply, if anyone faced similar issue. I am trying this from last 2 days.
Thanks,
Ash.When you run this sql query against the database, are you seeing results? and why are you using non-system session variables for this? Session variables are usually used to retrieve data into variables based on the user login.
Check the following things:
1) In variable target, make sure the row-wise initialization is checked.
2) Make sure the cache option is UN-checked
3) Run the sql against the database and make sure it is retrieving results.
4) Try this in init block:
select distinct 'Visible_Regions', NVL(Regions, '0') from SH.Regions_Dim A inner join SH.USER_Table B on A.employee_ID = B.employee_ID;
-Amith. -
Using row-wise multi-value GROUP system session variable in report filter
The title says it all except I am using 10g OBIEE.
What I want to do is filter on the dynamic system session variable GROUP created in a row-wise initialization block.
The GROUP vriable is being set up correctly and it shows the user dynamically put into the correct groups in Answers.
(Using the admin tool and looking at the user session, only the initial authentication block variables show up.)
But if I want to filter using the value of GROUP it doesn't work.
The obvious way is to choose the filter icon, then choose Add -> Variable -> Session, enter GROUP, and then display results.
It comes back with no rows.
Any idea how to do this? I've tried lots of things but none of them work either producing no rows or an error.
This is the kind of Answers SQL this report is resulting in, which makes sense to me, but produces no rows.
SELECT "Package Virtual Group (Dim)"."Package Virtual Group" saw_0, "Contact (Fact)"."Contacts All Count" saw_1 FROM "Case/Transaction/ABC" WHERE "Package Virtual Group (Dim)"."Package Virtual Group" = VALUEOF(NQ_SESSION."GROUP") ORDER BY saw_0866038 wrote:
Errors come from trying things that don't work.
For example, instead of =, using IN VALUEOF(NQ_SESSION.GROUP) or @{session.GROUP} or lots of other things.
The question is this:
how can I filter a column in Answers using the GROUP session variable which had been initialized in a row-wise initialization block?
I can find no way to do it. Mostly it returns no rows.Hi,
we had a similar requirement, where we have an external name that has project number values. We used row wise initialization to capture all the projects that a user belongs to. Then, we applied the filters at the RPD level, instead of doing it at the report level. From you requirement I see that you are trying to filter the groups based on user login. When a user logs in, he will see the information about the groups that he only belongs to. Correct me if I am wrong here.
Assuming I am right about your requirement, providing the filter that you need apply in RPD.
On all the fact tables are joined to the Package Virtual Group dimension, apply the below filter.
case when 1=1 then (Dim)"."Package Virtual Group" END = VALUEOF(NQ_SESSION."GROUP");
The reason for use of case statement here is, it converts the logical sql to IN Clause, helping us acheive the exact query that we would want.
Please Award points if this helps.
Thanks,
-Amith. -
System session variable ':GROUP'
Dear Friends,
I am having an issue with retrieving a value for the reserved system session variable :GROUP IN OBIEE 11.1.1.5
From what I’ve read in the other posts I should be able to use :GROUP variable after where clause, and if there is more than one group assigned to a user INSTR should take care of this case. However I can’t get this to work.
I am using row-wise variable, here is the code
select 'ORGANIZATIONS' , s.ORGANIZATION_ID
from T_VZA_SECURITY s
where
INSTR(':GROUP', trim(s.group_id)) > 0
--INSTR('MyGroup', trim(s.group_id)) > 0
I also tried to replace ':GROUP' session variable with 'VALUEOF(NQ_SESSION.GROUP)'
my security table
create table T_VZA_SECURITY
(GROUP_ID VARCHAR(20),
ORGANIZATION_ID VARCHAR (20),
OWNING_DEPARTMENT_ID VARCHAR (20),
ASSIGNED_DEPARTMENT_ID VARCHAR (20)
Thank youI can't test my statement, it comes back with the error if i specify system session variable. If i replace a group variable with the string it works.
I don't see how i can set the execution order - i only have one init block with row-wise initialization enabled. Basically followed
http://www.rittmanmead.com/2012/03/obiee-11g-security-week-row-level-security/
guide, and it does work for :USER but doesn't for :GROUP.
Thank you for spending time to look at the issue! -
Override the GROUP system session variable within an initialization block
Hi,
We're trying to override the GROUP system session variable and having no luck. We've created an initialization block to return the semicolon-separated list we're looking for but when a user logs in, it seems like it is overridden with the default. When we change the name of the variable to something other than GROUP, it works great and we get the expected value. Is there something we're missing with overriding the particular value?
Here is the query we're attempting to use for the variable:
Select 'GROUP',
ListAgg(OBI_ROLE, ';') Within Group (Order By USER_EMAIL)
From CSS_OBI_USER_ROLE
Where USER_EMAIL In (':USER')
We also tried:
Select
ListAgg(OBI_ROLE, ';') Within Group (Order By USER_EMAIL)
From CSS_OBI_USER_ROLE
Where USER_EMAIL In (':USER')
We made sure that the variable name was 'GROUP' as well.
Not sure if it's important to note or not, but the returned values do correspond to existing applications groups already defined within OBI.
Any help is greatly appreciated!
Thanks,
Jassince you have value as OpsReviewViewer;OpsReviewAuthor:BIAdministrator
my not help row wise setting
try to handle ; part using sql query so that you get those number of records to use row-wise
so this
Select 'GROUP',
ListAgg(OBI_ROLE, ';') Within Group (Order By USER_EMAIL)
From CSS_OBI_USER_ROLE
Where USER_EMAIL In (':USER')
with row-wise show work -
How to Create a Session variable in JSP?
How to create a session variable and add attributes to it?
For example i want to create a session variable called "name" and add value "user" to it? if i try to do it with setAttribute(), it is giving error as both is of type string? how to do it? kindly help meThis is variable what is working in my aplication
String variable;
if(user == null){
user=new String("");
}//if you don'y do this you will have null pointer exception
session.setAttribute("user",user);//put value
String name=(String)session.getAttribu("user"); //get value;
I hope this will help -
How to create a session variable in Apex?
Hello colleagues,
Is there someone do know how to create a session variable in Apex?
How to get them?
Thanks
Best RegardsHello,
What do you mean by 'session variable'? You mean something that stores the value int he users session state?
I really recommend reading the 2-Day Developer guide documentation, there is a complete section on session state -
http://download.oracle.com/docs/cd/E10513_01/doc/appdev.310/e10499/concept.htm#CIHCFHBD
Hope this helps,
John
Blog: http://jes.blogs.shellprompt.net
Work: http://www.apex-evangelists.com
Author of Pro Application Express: http://tinyurl.com/3gu7cd -
Creating a session variable with PHP
Can anyone offer me a PHP script that creates a session
variable? The Dreamweaver CS3 Help documentation offers coding
samples for ColdFusion and ASP but not for PHP. I tried this
without success:
"$_SESSION['usermail']= $_POST['sub_email'];" in which I am
trying to capture an email address from a form and save it to use
in a confirmation email to a new subscriber. Any help would be
sincerely appreciated.
[email protected]I use this -
<?php
if (!isset($_SESSION)) {
session_start();
?>
at the top of the page, and then this within the code block
where you are
processing the form's data -
$_SESSION['usermail']= $_POST['sub_email'];
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"Jugdish" <[email protected]> wrote in
message
news:gb8aov$691$[email protected]..
> Can anyone offer me a PHP script that creates a session
variable? The
> Dreamweaver CS3 Help documentation offers coding samples
for ColdFusion
> and ASP
> but not for PHP. I tried this without success:
> "$_SESSION['usermail']= $_POST['sub_email'];" in which I
am trying to
> capture
> an email address from a form and save it to use in a
confirmation email to
> a
> new subscriber. Any help would be sincerely appreciated.
> [email protected]
> -
Load more than one user groups to system session variable GROUP from table
hi, I found that the value of the system session variable GROUP can be assigned by setting a sql in initialization blocks.
however, if there are some users with more than one user group.
can this be done by table driven (using sql in initialization blocks) ?
thanks !!Referencing GROUP session variable in initialization blocks for different types of authentication
http://108obiee.blogspot.com/2009/10/referencing-group-session-variable-in.html
Users are assigned to multiple groups from external table with semicolons, see example two and three from the post.
Regards
Goran
http://108obiee.blogspot.com -
Hi,
i have setup-ed the action links and used the USER variable for the EBS secuirty context init block as this
EBS_RESP_ID
EBS_RESP_APPL_ID
EBS_SEC_GROUP_ID
EBS_RESP_NAME
EBS_USER_ID
EBS_EMPLOYEE_ID
USER
Now for the sso configuration in the RPD i need to use the USER variable again as per the document (section A.1.1 )http://docs.oracle.com/cd/E14571_01/bi.1111/e10543/legacy.htm#BABFJEJF
"To set up LDAP authentication:
Create an LDAP Server as follows:
Select Manage then Identity in the Oracle BI Administration Tool to launch the Security Manager.
Select Directory Servers from the left pane in Security Manager.
Right-click in the right pane in Security Manager and select New LDAP Server. The LDAP Server dialog is displayed.
Create the LDAP server by completing the fields.
Create an LDAP initialization block and associate it with an LDAP server. For more information. see "Creating Initialization Blocks" in Oracle Fusion Middleware Metadata Repository Builder's Guide for Oracle Business Intelligence Enterprise Edition.
Define a system variable named *USER* and map the USER variable to an LDAP attribute (uid or sAMAccountName)."
So how can i use the same user variable and assign it to LDAP init block as well the EBS security context init block.
can you provide your valuable inputs here.Referencing GROUP session variable in initialization blocks for different types of authentication
http://108obiee.blogspot.com/2009/10/referencing-group-session-variable-in.html
Users are assigned to multiple groups from external table with semicolons, see example two and three from the post.
Regards
Goran
http://108obiee.blogspot.com -
Can XSQL create multiple session variables using only one database call?
Right now if I want to set session variables for username and accesslevel, I code out like this:
<xsql:set-session-param name="name" bind-params="username password">
SELECT DISTINCT USERNAME
FROM LKUP_USER
WHERE USERNAME = ? AND PASSWORD = ? AND ACCESSLEVEL = 0
</xsql:set-session-param>
<xsql:set-session-param name="authlvl" bind-params="username password">
SELECT DISTINCT ACCESSLEVEL
FROM LKUP_USER
WHERE USERNAME = ? AND PASSWORD = ? AND ACCESSLEVEL = 0
</xsql:set-session-param>Is there any way to do it so that I don't have to do multiple queries to the database to set session variables? i.e., something like this:
<xsql:set-multiple-session-param name="user authlvl" bind-params="username password">
SELECT DISTINCT USERNAME,
ACCESSLEVEL
FROM LKUP_USER
WHERE USERNAME = ? AND PASSWORD = ? AND ACCESSLEVEL = 0
</xsql:set-multiple-session-param>Sort of like how bind-params works. Setting bind-params="username password" makes the first ? akin to username and the next ? akin to password.
Is this functionality already in existence?
Thanks!
Malik Graves-PryorNot currently possible to collapse into one request without doing it in a custom action handler.
A custom action handler can:
[list=1]
[*]Get the current JDBC connection from the XSQLPageRequest
[*]Get the SQL statement to perform using the function getActionElementContent
[*]Handle any bind parameters specified an a bind-params attribute on the action element by calling handleBindVariables()
[*]Execute and fetch the row from the query
[*]Check to see that the return value of getPageRequest().getRequestType() equals the value "Servlet"
[*]Cast the page request to an XSQLServletPageRequest and call getHttpServletRequest()
[*]Call getSession() on the request
[*]Set the session variables you want to
[*]Close the JDBC statement
[list]
will consider a built-in enhancement for a future XSQL release. -
Is it possible to create a system software disc on a USB flash drive to start Apple Hardware Test on mid 2009 iMac running OS X 10.9?
Hopefully, those dvd's are the correct ones. If not, it's possible to download the AHT for many models from Apple, & either make a bootable drive, or replace the files in the hidden /System/Library/CoreServices/.diagnostics folder.
see Download and run Apple Hardware Test (AHT) from a USB drive.
There are additional download details in the comments for some later models. -
Dreamweaver need to create a session variable or Cookie or something Help
I have been working for weeks I am very close but can't get over one last hurdle. I am trying to call a session variable much like dreamweaver calls mm_username. It is in the same user table as username - password - access level - Customer_id. I need to pull the session variable or cookie or however I can do it to access the customer id number so I can have customer specific information and pricing. There will be mulitple users for each customer so I need another variable besides mm_username. Help I use dreamweaver cs4 aspvbscript and sqlserver ...help
I soon as I put the red line of code in it is custoemr _id instead of user id in my table. Dreamweaver removes the user id function. is it in the wrong place ...what am i doning wrong ....it is fine with the first part you did but the second part it doesnt like in red.
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<!--#include virtual="/Connections/p21.asp" -->
<%
' *** Validate request to log in to this site.
MM_LoginAction = Request.ServerVariables("URL")
If Request.QueryString <> "" Then MM_LoginAction = MM_LoginAction + "?" + Server.HTMLEncode(Request.QueryString)
MM_valUsername = CStr(Request.Form("username"))
If MM_valUsername <> "" Then
Dim MM_fldUserAuthorization
Dim MM_redirectLoginSuccess
Dim MM_redirectLoginFailed
Dim MM_loginSQL
Dim MM_rsUser
Dim MM_rsUser_cmd
MM_fldUserAuthorization = "Access_Level"
MM_redirectLoginSuccess = "/mainmenu.asp"
MM_redirectLoginFailed = "/loginfailed.asp"
MM_loginSQL = "SELECT customer_id, Login_Name, password"
If MM_fldUserAuthorization <> "" Then MM_loginSQL = MM_loginSQL & "," & MM_fldUserAuthorization
MM_loginSQL = MM_loginSQL & " FROM dbo.btb_web_login WHERE Login_Name = ? AND password = ?"
Set MM_rsUser_cmd = Server.CreateObject ("ADODB.Command")
MM_rsUser_cmd.ActiveConnection = MM_p21_STRING
MM_rsUser_cmd.CommandText = MM_loginSQL
MM_rsUser_cmd.Parameters.Append MM_rsUser_cmd.CreateParameter("param1", 200, 1, 20, MM_valUsername) ' adVarChar
MM_rsUser_cmd.Parameters.Append MM_rsUser_cmd.CreateParameter("param2", 200, 1, 10, Request.Form("password")) ' adVarChar
MM_rsUser_cmd.Prepared = true
Set MM_rsUser = MM_rsUser_cmd.Execute
If Not MM_rsUser.EOF Or Not MM_rsUser.BOF Then
' username and password match - this is a valid user
Session("MM_Username") = MM_valUsername
Session ("MM_USERID") = MM_rsUser.Fields.Item("customer_id").value
If (MM_fldUserAuthorization <> "") Then
Session("MM_UserAuthorization") = CStr(MM_rsUser.Fields.Item(MM_fldUserAuthorization).Value)
Else
Session("MM_UserAuthorization") = ""
End If
if CStr(Request.QueryString("accessdenied")) <> "" And false Then
MM_redirectLoginSuccess = Request.QueryString("accessdenied")
End If
MM_rsUser.Close
Response.Redirect(MM_redirectLoginSuccess)
End If
MM_rsUser.Close
Response.Redirect(MM_redirectLoginFailed)
End If
%><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Brown Live Online Login</title>
<style type="text/css">
<!--
body {
background-image: url(/images/gradientblacktowhite.jpg);
background-repeat: repeat-x;
.style1 {
color: #FFFFFF;
font-weight: bold;
.style3 {color: #000000; font-weight: bold; }
.style5 {
font-size: xx-large;
color: #0000FF;
.style6 {color: #000000}
-->
</style></head>
<body>
<p class="style5"><img src="/images/BTBlogosmall.jpg" width="322" height="53" /></p>
<p class="style5">Brown Live Online 2.0 </p>
<form ACTION="<%=MM_LoginAction%>" id="form1" name="form1" method="POST">
<p>
<label><span class="style3"> User Name</span>
<input name="username" type="text" id="username" size="20" />
</label>
</p>
<p>
<label><span class="style1"><span class="style6">Password</span></span>
<input name="password" type="password" id="password" size="20" />
</label>
</p>
<p>
<label>
<input type="submit" name="button" id="button" value="Login" />
</label>
</p>
</form>
<p><a href="/index.html"><img src="/images/brown2.0.jpg" width="100" height="100" /></a> Click Image to return to <a href="http://www.browntransmission.com">www.browntransmission.com</a></p>
</body>
</html> -
Possible to reference a session variable in customMessages.xml?
In customMessages.xml, I put in this code:
<!--Allow user to change password -->
<WebMessage name="kmsgChangePasswordLink">
<HTML>
<a href="http://www.somelink.com?someThingToPass=BISessionVariable">Change Password</a>
</HTML>
</WebMessage>Is there a way to reference a BI session variable within customMessages.xml somehow?John,
You make a good point. So I can't do this in customMessages.xml... can I make a change somewhere else that would accomplish this? Basically I want to be able to bring in the content of a session variable into the 'My Account' page. Does anyone know if this can be done? -
Is it possible to create a Text Variable that uses text from a structure?
The question is this -
I have created structure which consists of 4 high-level nodes. Each level one node contains a different number of level 2 nodes. Is it possible to use the text from these nodes in replacement path variables?
Example, my structure levels are:
GS
SA
OOI
COGS
If a user drills into COGS, I'd like to display the text "COGS" in the header but I have not found a way to capture it. From what I can tell, the variable editor only allows Characteristics and their text/key or user input text. I don't see an option for Structure level/node text.
Anyone know if this is even possible?
Thanks!HI!,
I think you should separate programming for AS3 and for FLEX,
this is beacuse they both use different class packages. If you want
your classes to be FLEX compatible you need to extend them from
Flex Objects and not from AS3 Objects.
In sum, if you want your class to be processed by let's say
the application object then you need to extend it from
mx.core.UIObject.
This is because there are lots of methods that FLEX uses to
place your class on the screen that are not used by normal AS3
applications.
Maybe you are looking for
-
After upgrading to ios7, i cannot see multiple mail folders on the mailboxes page
On ios6, i could see all my accounts and browse folders of each account on my iphone. Why is this not visible on ios7?
-
XML Forms on the Portal posting to an IDOC
Scenario Goals 1. Portal Based XML form being used by users to enter information 2. Posting to an IDOC in R3 Current Solution 1. The XML form outputs a file to local file system through the EP 2. XI then takes this file transforms 3. XI Posts IDOC Qu
-
Use of default XACML with custom role mapper and authorization provider
Hi, Is it possible to use the default XACML provider for custom role mappers and authorization providers when role information will be provided via an external application ( not an LDAP or RDBMS server )? My custom providers will be communicating wit
-
IPhoto '11 crashes after rebuilding
So I have gone through the boards to search for a solution. I too am getting the KERN_PROTECTION_FAILURE exception. I have downloaded the iPhoto Library Manager, rebuilt the library, but nothing works. Faces seems to break my library each time. W
-
Quiery about 12.0.3 Patchset
Dear all, We had Installed R12 v3 succesfully and and we have applied Support Diagnostic Patches. 6280873 6265820 but I have checked the about oracle application screen shows the 12.0.0 version as application version why? and We have checked in the d