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.
Similar Messages
-
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. -
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
@liHi
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??? -
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 -
Can't receive headers from JMS Adapter - "Variable is not initialized"???
I'm using JDeveloper Studio 10.1.3.4.0.4270 to try to build a BPEL process that is initiated by a JMS Adapter. I want this process to access the headers of the incoming message. Despite what Adapter Technical Note #005 says, JDeveloper says I can't do it! Despite the fact that the Receive activity is set up to store the header to a variable, JDeveloper says the variable is not initialized when I try to access it. (At least this is consistent with BPEL Process Manager's behavior -- the runtime also says it's not initialized.) In the following simple code, it looks initialized to me. What am I missing? Thanks.
<?xml version = "1.0" encoding = "UTF-8" ?>
<!--
Oracle JDeveloper BPEL Designer
Created: Mon Jun 22 18:10:17 CDT 2009
Author: memeyer
Purpose: Empty BPEL Process
-->
<process name="BPELHello3" targetNamespace="http://xmlns.oracle.com/BPELHello3"
xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"
xmlns:ns1="http://xmlns.oracle.com/pcbpel/adapter/jms/ToHello3/"
xmlns:ldap="http://schemas.oracle.com/xpath/extension/ldap"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:ns2="http://xmlns.oracle.com/pcbpel/adapter/jms/"
xmlns:bpelx="http://schemas.oracle.com/bpel/extension"
xmlns:client="http://xmlns.oracle.com/BPELHello3"
xmlns:ora="http://schemas.oracle.com/xpath/extension"
xmlns:orcl="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc">
<!--
PARTNERLINKS
List of services participating in this BPEL process
-->
<partnerLinks>
<partnerLink myRole="Consume_Message_role" name="ToHello3"
partnerLinkType="ns1:Consume_Message_plt"/>
</partnerLinks>
<!--
VARIABLES
List of messages and XML documents used within this BPEL process
-->
<variables>
<variable name="inputVariable"
messageType="ns1:BPELHello2ProcessResponse_msg"/>
<variable name="header" messageType="ns2:InboundHeader_msg"/>
</variables>
<!--
ORCHESTRATION LOGIC
Set of activities coordinating the flow of messages across the
services integrated within this business process
-->
<sequence name="main">
<receive name="Receive_1" partnerLink="ToHello3"
portType="ns1:Consume_Message_ptt" operation="Consume_Message"
variable="inputVariable" createInstance="yes"
bpelx:headerVariable="header"/>
<assign name="Assign_1">
<copy>
<from variable="header" part="inboundHeader"
query="/ns2:JMSInboundHeadersAndProperties/ns2:JMSInboundProperties"/>
<to variable="header" part="inboundHeader"
query="/ns2:JMSInboundHeadersAndProperties/ns2:JMSInboundProperties"/>
</copy>
</assign>
<bpelx:exec name="Java_Embedding_1" language="java" version="1.3">
<![CDATA[/*Write your java code below e.g.
System.out.println("Hello, World");
System.out.println("Hello, Whatever");]]>
</bpelx:exec>
</sequence>
</process>Hi,
Your code looks correct to me. However, you should name your durable subscriber: topicSession.createDurableSubscriber(topic, "myDurableSubscriber");
Then it should be possible to use your JMS provider administration API to check that your durable subscriber is registered with your topic. Once the durable subscriber is registered it will start receiving message.
To double check that your code is correct, you should test your code with another provide.
Hope this helps
Arnaud
www.arjuna.com -
Session variables is not recognized in my CFC
Hi,
I got a very weird problem today! I have created a simple
login page ( username as an email and a password). This is post to
the same page where I verify from a query if the username and
password are valid. Once the query returns a RecordCount greater
than 0, I create session variables to store the first name and last
name of the user. I can see actually the session variables from a
CFDUMP at that level.
Since I am developping an application that will mix
ColdFusion (mostly CFC) and Flex 3, I have created a CFC where I
store functions needed for the Flex application. One of the
function is fGetUserInfo where I try to collect the information I
previously store in the session scope from the login - such as the
first name. The system stop right there with an error saying that
the session variables are not defined while I have the session
variables appear at the bottom of the debug information in the same
page. This is starting to be over my knowledge and I must missing
an information to resolve this - in other words, I need your
help!!!
I include some code to understand that the problem is not a
mispelling!!! ;-))I tried to change the savings of the user's information into
cookies instead of the session scope but it does the exact same
error (except it says Element TECHNICIANID is undefined in COOKIE).
In fact, after a little break, I started to think about the
method to access the functions inside the CFC. As it is remote, I
though that it might have a sense of no life on the session scope.
Than I though about the idea to transfer all the informations to
the client with Cookie. CFCOOKIE work fine and I was kind of
animated by my idea! I coded, I tried and it failed. I used at
first the default value of the CFCOOKIE which consists to reside on
the memory like a session but disapear when the user close his/her
browser. So after the first fail I change the expiration for 30
minutes but it failed again and for the same reason: Element
TECHNICIANID is undefined in COOKIE. -
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! -
Function to get session variable is not working
I created a report based on the following sql query:
SELECT EMPNO, ENAME, JOB, MGR, HIREDATE, SAL, COMM, DEPTNO FROM SCOTT.EMP
WHERE DEPTNO = empcust.current_deptno
empcust.current_deptno is a function which returns the value of the session variable. However, nothing gets returned. The value of the session variable is not found.
I know that the session variable is being set b/c i have a procedure that sets it and prints out the assigned.
This is my code for the current_deptno function. If anyone can help, i'd greatly appreciate it!
procedure current_deptno
return VARCHAR2
as
v_Session portal.wwsto_api_session;
v_Return VARCHAR2(20); --DEPT.DEPTNO%TYPE;
begin
v_Session := portal.wwsto_api_session.load_session('PORTAL','SESS_EMP');
v_Return := v_Session.get_attribute_as_varchar2('DEPTNO');
htp.p('Return session var'||v_Return);
RETURN(v_Return);
end;Hi Imtiaz,
Could you verify that the variable has indeed a value? You could check via the Session Manager in the Admin Tool. You could also check the Query Log to verify whether the Initialization Block is working like expected.
Thanks.
Daan Bakboord
http://obibb.wordpress.com -
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 -
Server hangs and session variable value not maintained.
dear all,
this is exteremetly urgent. i upgraded my tomcat to 4.1.24.but i have problems running the same code which was working earlier, i get null in the value of session variable. and also get the following error
////////////////error got /////////////
Compile failed; see the compiler error output for details.
at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:842)
at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:682)
at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:317)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:370)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext
.java:473)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
.java:190)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:2
95)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:256)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
t.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:191)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
t.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:
2415)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:180)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
t.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatche
rValve.java:171)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
t.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:172)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
t.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:174)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
t.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:22
3)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:594)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
ssConnection(Http11Protocol.java:392)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java
:565)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:619)
at java.lang.Thread.run(Thread.java:536)
///////////////end of error messsge ////////////
the code where i am getting this message is as follows
<%@ page session="true"%>
<HTML>
<HEAD><TITLE> LOGGED IN ok</TITLE> </HEAD>
<%@ page import="java.sql.*" %>
<%! // declaring variables
String s = "";
java.sql.ResultSet rs=null;
java.sql.Connection con;
java.sql.Statement stmt=null,stmt1=null;
String username = "";
String password = "";
String Ousername = "";
String Opassword = "";
String changepass="";
String usertype ="",useremail="",EmpName="";
%>
<body>
<%
try
//set session for max of 100 milliseconds
// session.setMaxInactiveInterval(10000);
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con = java.sql.DriverManager.getConnection("jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};" +"DBQ=c:/vishal/HelpDesk.mdb;DriverID=22;READONLY=false","","");
stmt = con.createStatement();
s = "select * from LoginUser";
username = request.getParameter("LogonId"); //get this through prev. form
password = request.getParameter("txtPassword");
out.println(username + " " + password);
// make explicitly to lower case
username = username.toLowerCase();
rs = stmt.executeQuery(s);
while(rs.next())
//getting data from database
Ousername = rs.getString("EmpName");
Opassword = rs.getString("Password");
useremail = rs.getString("EmailId");
usertype = rs.getString("UserType");
if(Opassword.equals(password) && Ousername.equals(username)) //found match correct entry
changepass = request.getParameter("PasswordNew");
if(changepass != null)
stmt1 = con.createStatement(java.sql.ResultSet.TYPE_SCROLL_INSENSITIVE,java.sql.ResultSet.CONCUR_UPDATABLE);
s = "update LoginUser set Password = '" + changepass + "' where EmpName = '" + username +"'";
out.println(s);
stmt1.executeUpdate(s);
stmt1.close();
if(usertype.equals("User") == false)//ie admin
session.setAttribute("username",username);
************************this value not maintained *********************
session.setAttribute("useremail",useremail);
session.setAttribute("usertype",usertype);
************************this value not maintained *********************
//closing connections
%>
<jsp:forward page= "ComplaintType.jsp" />
<%
else //user
EmpName = username;
session.setAttribute("EmpName",EmpName);
session.setAttribute("useremail",useremail);
//closing connections
%>
<jsp:forward page="ComplaintCategory.jsp" />
<%
}//end if
}//while loop
//first closing connections then forwarding
%>
<jsp:forward page="InvalidLOGIN.jsp" />
<%
///rs.close();
////closing
//stmt.close();
// con.close();
}//try
catch(Exception ep)
out.println(ep);
System.exit(1);
%>
</BODY>
</HTML>hi all,
thanx a lot for your help,specially hari52
hari52 strangely enough the code started working,but
now i have another problem
after a while my server hangs or gets shutdown ,a
message is shown as
"java.exe has generated error and will be shutdown"
i know that more connections can be a prob. but i
make sure that connections r closed on each page,also
i am a newbie and do not have the time at present to
learn abt. connection pool ,can this problem be
solved easily?
it would be a great help again on your part,
thanx again,You remove the System.exit(1) line from the code inside the catch block
and try again. That's the reason tomcat getting down. System.exit(1) should not be used inside jsp. it will make the underlaying Servlet Engine to shutdown. -
Filter view with session variable does not display value properly.
Hi All,
I have a very unique issue and I am not sure if anyone ran into this before.
I have a prompt in my dashboard and a link to a report. The session variable default the value to the current value (term)
when I click the link to the report I get the following value, on the filter view of the report: Term Code Desc is equal to NQ_SESSION.CSA_Analysis_Term
however if I click the go button in the prompt I get the value: Term Code Desc is equal to 2030 (2011 Spring)
does anyone have a solution to this issue
thanksHello,
Have the same issue. Any solution. Gurus plz help.
thanks,
deep -
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 -
Reports containing session variables do not cache
I have a general report that is filtered using information from session variables, for example which teamleader or supervisor the user has to tailor the report.
BUT the problem is that any request with a session variable in it from Answers does not hit the cache.
Actually they do cache but only for that user, not across users. Even when I preload the cache with the report with no filtering, it is not used by subsequent filtered requests.
Question:
- it is possible to get the report to cache when the session variable is used on the Answers side?
- if not does caching happen if used in a WHERE clause in the logical or physical layers
Otherwise, how to do get this to work?
Edited by: Rob Scott on 28-Jul-2011 05:16Thanks for your reply.
The problem is this. Imagine you have a table say of the number of calls that each user has made and users belong to teams, so you have a table like this:
team, user, # of calls
You also have a session variable containing the team for that user.
What I do is have a where filter that filters the table depending on the session variable against the team, so each user only sees data relevant to their team.
This works OK but there is a caching problem.
If I don't do filtering and just have the report with all the data in it, then that is cached.
If I then run the same report but with the session variable filtering on, then it doesn't hit the cache even though it is a subset of the first request.
If you have 10s of teams each with say 20 reports, then that makes 200 requests whereas really it should just pick up the first super-table that is cached.
I will do more tests but I simply couldn't get it to pick up the cached copy. -
Session Variable is not filtering
Hi All,
I have created a seesion variable intialization block using the following query and selected row-wise initialization.
SELECT 'STATE', CUST_STATE_PROVINCE FROM SH.CUSTOMERS WHERE UPPER(CUST_LAST_NAME) = UPPER(':USER')
This returns me with the State Province for each user. Now I created a user named 'Walsh' and assigned him to a group and for the group I have given the following filter.
SH.CUSTOMERS.CUST_STATE_PROVINCE = VALUEOF(NQ_SESSION."STATE")
Now, the issue is, when I logged in as 'Walsh' it should show me only states related to this user, but it is showing me all the records, even for other users.
(I also tried using VALUEOF(NQ_SESSION.STATE) instead of VALUEOF(NQ_SESSION."STATE") but it didn't work)
What is it that am missing here. Kindly guide me
Thanks in advance,
Imtiaz.Hi Imtiaz,
Could you verify that the variable has indeed a value? You could check via the Session Manager in the Admin Tool. You could also check the Query Log to verify whether the Initialization Block is working like expected.
Thanks.
Daan Bakboord
http://obibb.wordpress.com -
Session variables is not getting updated in JSP
Hi Floks,
I had a situation where in i need to populate the drop down depending on the action perfomed by user in menus.
An action method is triggered to load the scneario specific values to drop down
here is that
PSSBuilder pssbuilder = new PSSBuilder();
pssbuilder.getPlanTypesForCreateScenarioSnapshot(this,"S");
getCCMPPSessionBean().setSelectedPlanType("0");
this.getDrpPlanType().setRendered(true);
this.getLblPlanType().setRendered(true);
this.getDrpPlanType().setDisabled(false);
Option[] opt = getCCMPPSessionBean().getPlanTypeOptions();
Option[] tmp = new Option[opt.length-2];
int j = 0 ;
for(int i = 0 ; i < opt.length ; i++){
if((opt.getValue().toString().trim()).equalsIgnoreCase("SSMP") ||
(opt[i].getValue().toString().trim()).equalsIgnoreCase("SRECON")){
}else{
tmp[j] = opt[i];
j++;
getCCMPPSessionBean().setPlanTypeOptions(tmp);
// For debug
opt = pssDetails.getCCMPPSessionBean().getPlanTypeOptions();
for (int i = 0; i < opt.length; i++) {
CCMPPLogger.getLogger().debug(
"Value [ " + opt[i].getValue() + " ] Label [ "
+ opt[i].getLabel() + " ]");
in my JSP im doing this
<ui:dropDown id="drpPlanType"
binding="#{PSSDetails.drpPlanType}"
items="#{CCMPPSessionBean.planTypeOptions}"
selected="#{CCMPPSessionBean.selectedPlanType}"/> i can see the logs with the values i expected from my action method.
where as comming to the jsp its showing some other things other than which i see in logs..
Please help me
Thanks & Regards,
Shivaji Byrapaneni.hi,
testdownload.setTocopy(blank);
check in testdownload class weather setTocopy (..) function is define or not
public void setTocopy (datatype var)
}
Maybe you are looking for
-
Hello: Slowly getting used to my new MacBook after having been a PC person for 15 years. I want to make a slideshow, and I want to use music; I've looked at the other posts on this subject and know to use iTunes playlist if I want more than one tune.
-
Simple checkbox query on underlying view attribute
Hi, I can associate a messageCheckBox with a view instance's view attribute. Simple question: if I have only "Y" and "N" as the possible values of the view attribute, will the "checked" and "unchecked" thing take care of itself based on this value? W
-
WHEN SCANNING TO EMAIL IT REQUIRES A 4 DIGIT PIN FROM THEM TO ME BEFORE THEY CAN RECIEVE THE EMAIL, HOW DO I GET RID OF THE 4 DIGIT PIN PROBLEM. CAN YOU HELP ME I SHOULD NOT HAVE THE PERSON I AM SENDING THE EMAIL TO HAVE THEM SEND ME AN EMAIL BEFORE
-
I can enter time machine but it won't "go back in time"!
When I launch time machine it will go to the Star Wars looking screen but won't allow me to scroll back through time. I have checked the backup and it is all there. I can go through it manually but the cool interface is not working. Can someone pleas
-
Premiere Elements 12. When I select Publish+Share / Computer, the options of Quicktime/Image/Audio do not appear. Instead Adobe Flash Video/MPEG/AVCHD appear. Therefore I cannot make the option for freeze-framing in square pixels. Grateful to know ho