Updating a session property set
Hi,
How can I update a session property set?
I can get my properties like this: <%= session.getProperty("test_set", "groups")
%>
But how do I update the same set. The documentation does not mention this...
Is it possible to um? I did not get it to work.
But maybe I did something wrong.
<um:getProperty id="getResult" propertySet="test" propertyName="groups_test"/>
The above returned null.
But after updating it with:
<um:setProperty propertySet="test" propertyName="groups_test" value="<%= list
%>" result="setResult"/>
It returned something.
br,
Chris
A correction: It appears that it is being set but, as the pageflow action forwards to the success page the entitlement isn't taking effect until I refresh the page I forward to.
Any ideas on why the entitlement requires a refresh on the forwarded page?
Similar Messages
-
How to update Session property set.
Hi,
How can I update a session property set?
I can get my properties like this:
<%= session.getProperty("test_set", "groups") %>
But how do I update the same set.
The documentation does not mention this...
br,
ChrisChris wrote:
Hi,
How can I update a session property set?
I can get my properties like this:
<%= session.getProperty("test_set", "groups") %>
But how do I update the same set.
The documentation does not mention this...
br,
ChrisI am not sure what you want, but you can add properties to the session
property set in the EBCC, by adding custom properties. You should then
be able to retrieve them programmatically.
Jalpesh -
Hi,
How can I update a Session property set from a JSP page?
I can get the properties with the following code:
com.bea.p13n.http.Session s = new com.bea.p13n.http.Session(request.getSession());
out.println(s.getProperty("TestSet", "TestProperty"));
This prints the default TestProperty values but how can I update the same Session property set?
Do I have to use PropertySetManager?
br,
ChrisHi,
How can I update a Session property set from a JSP page?
I can get the properties with the following code:
com.bea.p13n.http.Session s = new com.bea.p13n.http.Session(request.getSession());
out.println(s.getProperty("TestSet", "TestProperty"));
This prints the default TestProperty values but how can I update the same Session property set?
Do I have to use PropertySetManager?
br,
Chris -
Session property set not updating in Portal Admin console
Hello,
We have a Portal application running on 10 MP1. Included in the EAR file is a session property set and is correctly stored in the right directory (META-INF/data).
When deployed, I can view our session properties when I try to create some entitlements and expressions. However, we need to update the name of one property and when we redeployed the EAR with an updated session property file, in the Portal Admin console, the session property still has the old name.
This happens on one of our environments, but does not happen on my local machine. On my local machine, when I look at the database, the DATA_SYNC_ITEM table is empty. But on our other environment (where the problem exists), in the database I can see relevant entries for my app and property file in the DATA_SYNC_ITEM table.
Does anyone have any ideas why this table is not populated on my local machine and why I can't seem to update the session property file on my other environment where the table is populated?
Any help would be much appreciated.
Thanks,
JonathanProbably either development mode /prodiction mode differences or differences between deploying as an exploded ear (local) and a compressed ear (in your environment that doesnt work). The easiest way is to propagate the changes from your local to the other environment (you can scope it to just session properties)
http://download.oracle.com/docs/cd/E13155_01/wlp/docs103/prodOps/propToolAdvanced.html -
Programatic session property set updates
I have created a session property set user.ses
with a property user_type
How do I modify a property from a page flow controller.
session.setAttribute("user_type","value") doesn't seem to have any effect when used with an entitlement role.
I also tried user/user_type as the attribute name.
When I dump the session attributes I don't see a property set called user.
Any help would be appreciated since the documentation doesn't really address how to do this.Thank you, deepshet. Now, it works perfectly.
-
Session Property Set not available in Portal Administration Console
We have a Portal Application (WLP 10.0 MP1) that needs to have visitor entitlements applied to allow some customization based upon a Session Property Set. The property set has been defined in Workshop and the .ses file is now included in our Portal EAR file in the /META-INF/data directory. When the EAR is deployed on a local (winXP) domain the property set is then available in the portal admin console and can be used to build entitlements. When the EAR is deployed to our test server (Solaris 10) the property set does not become available in the portal admin console. Both servers are in development mode and already have a previous version of the EAR deployed in streaming mode.
Is there anything obvious that needs to be done to ensure that a property set is enabled when deploying a new EAR?We are actually performing the portal EAR build using maven but are creating the same directory layout as is created by Workshop when a data sync project is used and an EAR exported, i.e. the contents of the data sync project ends up in the EAR /META-INF/data directory.
The mystery here is that the property set correctly deploys in one environment but not in another. I'd really like to know whether there are any particular tricks to the property set deployment and what the deployent process actually does. Could issues with the target environment prevent correct deployment of the property set? -
Session/Request Property Sets.
What are the Session and Request property sets used for? And how do I
get at them? The documentation states I can access these via the
Personalization Advisor. There doesn't appear to be a tag nor a method
to access these. Also if I create a Session Property it does not show up
in the HttpSession object.
[chris.jolley.vcf]Hi,
Thanks for your answer.
We are using Portal 4.0 and the com.beasys.commerce.axiom.p13n.jsp.P13NJspBase has
been
deprecated.
I found one solution "hidden" in the p13n examples.
It was in sample.jsp under p13nApp\p13n in the examples directory.
It would be nice if something was mentioned in the documentation
about how to get Session property sets to work.
br,
Chris
Ture Hoefner <[email protected]> wrote:
>
>
Hello Chris,
Do not set and get request and session properties with the
<um:setproperty> and <um:getproperty> tags. Use the methods
JspBase.setSessionValue() and JspBase.getSessionValue() for session values
and HttpRequest.setAttribute() and HttpRequest.getAttribute() for request
properties.
You have to use the JspBase methods for the session values because the
key
is "fixed up" by prepending the name that is registered to the
JspServiceManager or PortalServiceManager servlet for your application.
This allows multiple portals to be served to a client from a single server.
This also means that you cannot use session properties in an application
that does not use the JspServiceManager or PortalServiceManager.
Here is a test JSP that may be registered as a portlet and added to an
example portal. To use it, you must create your session and request
rulesheets (or use existing ones) with the admin tool. You can
create/register the "age" property in the DefaultRequestPropertySet and
in
the DefaultSessionPropertySet using the admin tool. The sample code works
for rulesheets named "request" and "session". Then create a classifier
in
each rulesheet called "middleage" that says something like this:
REQUEST.DefaultRequestPropertySet.age >= 40
and
REQUEST.DefaultRequestPropertySet.age < 65
SESSION.DefaultSessionPropertySet.age >= 40
and
SESSION.DefaultSessionPorpertySet.age < 65
<%@ taglib uri="lib/um_tags.jar" prefix="um" %>
<%@ taglib uri="pz.tld" prefix="pz" %>
<%-- A JSP page that uses the Personalization Advisor (typically
through the pz tags) must extend P13NJspBase --%>
<%@ page extends="com.beasys.commerce.axiom.p13n.jsp.P13NJspBase" %>
<%
/* Put an age in the session. Use the JspBase.setSessionValue() method
so
that the key is "fixed up" by prepending the name registered with
the JspServiceManager
or PortalServiceManager for this application.
This is to allow a single server to service multiple portals. */
Long ageLong = new Long(52);
setSessionValue("age", ageLong, request);
request.setAttribute("age", ageLong);
%>
<%-- Do not use <um:getproperty> and <um:setproperty> tags to get and set
session
properties. Session properties should be set/get with JspBase.setSessionValue()
and
JspBase.getSessionValue(). Request properties should be set/get with
HttpRequest.setAttribute()
and HttpRequest.getAttribute() --%>
<br>
The middleage classifier will run for the session property:
<br>
<pz:div
ruleset="jdbc://com.beasys.commerce.axiom.reasoning.rules.RuleSheetDefinitionHome/session"
rule="middleage" >
<br>
The middle age classifier evaluated to TRUE
<br>
</pz:div>
<br>
The middleage classifier will run for the request property:
<br>
<pz:div
ruleset="jdbc://com.beasys.commerce.axiom.reasoning.rules.RuleSheetDefinitionHome/request"
rule="middleage" >
<br>
The middle age classifier evaluated to TRUE
<br>
</pz:div>
<%
// Clean up the session in case you are testing this over and over
removeSessionValue("age", request);
request.removeAttribute("age");
%>
Ture Hoefner
BEA Systems, Inc.
2590 Pearl St.
Suite 110
Boulder, CO 80302
www.bea.com
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Hello Chris,
<br> Do not set and get request and session properties with the <um:setproperty>
and <um:getproperty> tags. Use the methods JspBase.setSessionValue()
and JspBase.getSessionValue() for session values and HttpRequest.setAttribute()
and HttpRequest.getAttribute() for request properties.
<br> You have to use the JspBase methods for the session values because
the key is "fixed up" by prepending the name that is registered to the
JspServiceManager or PortalServiceManager servlet for your application.
This allows multiple portals to be served to a client from a single server.
This also means that you cannot use session properties in an application
that does not use the JspServiceManager or PortalServiceManager.
<br> Here is a test JSP that may be registered as a portlet and added
to an example portal. To use it, you must create your session and
request rulesheets (or use existing ones) with the admin tool. You
can create/register the "age" property in the DefaultRequestPropertySet
and in the DefaultSessionPropertySet using the admin tool. The sample
code works for rulesheets named "request" and "session". Then create
a classifier in each rulesheet called "middleage" that says something like
this:
<br>
<p> REQUEST.DefaultRequestPropertySet.age >= 40
<br> and
<br> REQUEST.DefaultRequestPropertySet.age < 65
<p> SESSION.DefaultSessionPropertySet.age >= 40
<br> and
<br> SESSION.DefaultSessionPorpertySet.age < 65
<br>--------------------------------------------------------------------------------------------
<pre><%@ taglib uri="lib/um_tags.jar" prefix="um" %></pre>
<pre><%@ taglib uri="pz.tld" prefix="pz" %></pre>
<pre></pre>
<pre><%-- A JSP page that uses the Personalization Advisor (typically</pre>
<pre> through the pz tags) must extend P13NJspBase
--%></pre>
<pre><%@ page extends="com.beasys.commerce.axiom.p13n.jsp.P13NJspBase"
%></pre>
<pre></pre>
<pre><%</pre>
<pre> /* Put an age in the session. Use the JspBase.setSessionValue()
method so</pre>
<pre> that the key is "fixed up" by
prepending the name registered with the JspServiceManager</pre>
<pre> or PortalServiceManager for this
application.</pre>
<pre> This is to allow a single
server to service multiple portals. */</pre>
<pre> Long ageLong = new Long(52);</pre>
<pre> setSessionValue("age", ageLong, request);</pre>
<pre></pre>
<pre> request.setAttribute("age", ageLong);</pre>
<pre>%></pre>
<pre> </pre>
<pre><%-- Do not use <um:getproperty> and <um:setproperty> tags
to get and set session</pre>
<pre> properties. Session properties should
be set/get with JspBase.setSessionValue() and</pre>
<pre> JspBase.getSessionValue(). Request properties
should be set/get with HttpRequest.setAttribute()</pre>
<pre> and HttpRequest.getAttribute() --%></pre>
<pre> </pre>
<pre><br></pre>
<pre>The middleage classifier will run for the session property:</pre>
<pre><br></pre>
<pre><pz:div</pre>
<pre> ruleset="jdbc://com.beasys.commerce.axiom.reasoning.rules.RuleSheetDefinitionHome/session"</pre>
<pre> rule="middleage" ></pre>
<pre> <br></pre>
<pre> The middle age classifier
evaluated to TRUE</pre>
<pre> <br></pre>
<pre></pz:div></pre>
<pre></pre>
<pre><br></pre>
<pre>The middleage classifier will run for the request property:</pre>
<pre><br></pre>
<pre><pz:div</pre>
<pre> ruleset="jdbc://com.beasys.commerce.axiom.reasoning.rules.RuleSheetDefinitionHome/request"</pre>
<pre> rule="middleage" ></pre>
<pre> <br></pre>
<pre> The middle age classifier
evaluated to TRUE</pre>
<pre> <br></pre>
<pre></pz:div></pre>
<pre> </pre>
<pre></pre>
<pre><%</pre>
<pre> // Clean up the session in case you are testing
this over and over</pre>
<pre> removeSessionValue("age", request);</pre>
<pre> request.removeAttribute("age");</pre>
<pre>%></pre>
<p>
<p>--
<br>Ture Hoefner
<br>BEA Systems, Inc.
<br>2590 Pearl St.
<br>Suite 110
<br>Boulder, CO 80302
<br>www.bea.com
<br> </html> -
Hi,
I am getting the user PreferredName from user profile and trying to assign the value to column of type person/group as below
lblPreferredName.Text = (profile["PreferredName"].Value).ToString();
SPUser user = subSiteWeb.EnsureUser(lblPreferredName.Text);
SPListItem itemToAdd = CurrentList.Items.Add();
itemToAdd["Nominated"] = user.ID;
subSiteWeb.AllowUnsafeUpdates = true;
itemToAdd.Update();
subSiteWeb.AllowUnsafeUpdates = false;
But i am getting the error as below.
Plase correct me if i am wrong
Updates are currently disallowed on GET requests. To allow updates on a GET, set the 'AllowUnsafeUpdates' property on SPWeb.
Regards,
Sudheer
Thanks & Regards, SudheerHi,
So you are trying to save the SPUser value in the "Nominated" column.If yes then this code snippet will be helpful.
using (SPSite site = new SPSite(SPContext.Current.Site.Url))
using (SPWeb web = site.OpenWeb())
SPUser userObj = SPContext.Current.Web.EnsureUser("Murugesan");
SPFieldUserValue userValue = new SPFieldUserValue(SPContext.Current.Web, userObj.LoginName);
SPList list = web.Lists["Project"];
SPListItem item = list.Items.Add();
item["Title"] = "Project-2";
item["Manager"] = userValue;
item.Update();
Run this code with elevated privilege.
Murugesa Pandian.,MCTS|App.Devleopment|Configure -
How to set a page to not update the session
Hi all,
I have a page that has Ajax on it and because it updates the
session all the time the page does not timeout!
So how can I make the page timeout after 20 min. like all the
other pages??
Regards
MartinWell, CF won't timeout for you automatically since you are
actively renewing the session every time you perform your ajax
call. You could always put a timer in to redirect the user to a
logout script using javascript after 20 minutes of inactivity on
that page. -
How to update Integrator's property that was created by api
bne_integrator_utils.create_integrator(p_application_id => 20023, --CUX
p_object_code => l_object_code,
p_integrator_user_name => l_inte_user_name, --
p_language => 'ZHS',
p_source_language => 'US',
p_user_id => -1,
p_integrator_code => x_integrator_code --
bne_integrator_utils.create_interface_for_api(p_application_id => 20023,
p_object_code => l_object_code,
p_integrator_code => x_integrator_code,
p_api_package_name => l_package_name, --API
p_api_procedure_name => l_procedure_name, --API
p_interface_user_name => l_object_code || '_INTF', -
p_param_list_name => l_object_code || '_INTF', --
p_api_type => 'PROCEDURE', --API
p_upload_type => 5,
p_language => 'ZHS',
p_source_lang => 'US',
p_user_id => -1,
p_param_list_code => x_param_list_code, -
p_interface_code => x_interface_code --
I use above code to create Integrator, it was going well,but after I finished the set ,I realized there was something wrong.
So I want to use 'Manager Integrator' to update Integrator's property,but it was read only,
so any one can tell me,how to update the Integrator's property just like coloum type and so on.
ths for adviceHi,
Use the below update statement.
update bne_integrators_b
set source='C'
where integrator_code='Your Integrator code'
then commit..
Now u will be able to update the integrator from front end.
Regards,
Sreekanth.S -
How do I update "Rendered" attribute property from VO in runtime?
I can override isAttributeUpdateable() in RowImpl for "updateable" attribute property of a VO in runtime.
Is there API to update "Rendered" attribute property? I need to set it based on some condition or business rule in runtime.
thanks,If you have a work flow there are several ways to do this. If the attribute is global, and can change on all resources, you can set user.global.<attribute> to what ever you want and it will usually propagate out fine. You can also update the attribute specifically on the resource with user.accounts[LDAP].<attribute>.
-
Collection does not exist after update of session state
Attempting to leverage sample application code from Knowledge Testing 1.0 using apex v3.00 and getting ORA-20102: Application collection QUESTIONS does not exist
Note that the error is thrown in a cursor loop over that very collection (see bolded text below)
Can anyone shed some light on the subject?
Thx,
Derek
SFFD
procedure get_question
is
c pls_integer := 0;I NUMBER;
l_question pls_integer := 0;
--DEBUG
log_root number;
--/DEBUG
begin
--DEBUG
begin
select max(log_id) into log_root from fdrpts.log_entries where routine='QUIZ';
exception when no_data_found then
log_root:= fdrpts.log.add('INFO','QUIZ','Testing quiz functions');
end;
IF LOG_ROOT IS NULL THEN log_root:= fdrpts.log.add('INFO','QUIZ','Testing quiz functions'); END IF;
--/DEBUG
l_question := nvl(nv('KT_QUESTION'),1);
--DEBUG
log_root := fdrpts.log.add('INFO','QUIZ.GET_QUESTION','quiz.get_question('||to_char(l_question)||')',LOG_ROOT);
SELECT COUNT(*) INTO i FROM APEX_COLLECTIONS WHERE COLLECTION_NAME='QUESTIONS';
*fdrpts.log.add('INFO','QUIZ.GET_QUESTION',TO_CHAR(i)||' QUESTIONS IN TEST QUEUE',LOG_ROOT);*
--/DEBUG
if l_question > nvl(nv('KT_QUESTION_COUNT'),1) THEN -- wrap to beginning of test, page logic will handle quit.
--DEBUG
fdrpts.log.add('INFO','QUIZ.GET_QUESTION','KT_QUESTION ('||L_QUESTION||') > KT_QUESTION_COUNT ('||nvl(nv('KT_QUESTION_COUNT'),1)||') WRAPPING AND SETTING STATUS TO ''REVIEW''',LOG_ROOT);
--/DEBUG
wwv_flow.update_cache_with_write('KT_TEST_STATUS','REVIEW');
wwv_flow.update_cache_with_write('KT_QUESTION',1);
l_question:=1;
end if;
*for c1 in (*
SELECT
SEQ_ID,
c001 q_number,
c004 qtype,
c005 question,
c006 image,
c007 question_footer,
c008 question_header,
c009 answer,
trim(c010) WRONG1,
trim(c011) WRONG2,
trim(c012) wrong3,
trim(c013) wrong4,
c014 correct_answer,
c015 w1,
c016 w2,
c017 w3,
c018 w4,
c020 answer_given,
c021 get_time,
c022 post_time
*FROM APEX_collections*
*WHERE collection_name = 'QUESTIONS'*
order by c002
*) loop* -- NOTE: the order by c002
c := c + 1;
--DEBUG
fdrpts.log.add('INFO','QUIZ.GET_QUESTION','quiz.get_question SCANNING '||TO_CHAR(C),LOG_ROOT);
--/DEBUG
if c = l_question then -- this is the nth question in test's ordering method
wwv_flow.update_cache_with_write('KT_QUESTION_TEXT',htf.escape_sc(c1.question));
wwv_flow.update_cache_with_write('KT_QUESTION_FOOTER',htf.escape_sc(c1.question_footer));
wwv_flow.update_cache_with_write('KT_QUESTION_HEADER',htf.escape_sc(c1.question_header));
wwv_flow.update_cache_with_write('KT_QTYPE',nvl(c1.qtype,'PICTURE'));
wwv_flow.update_cache_with_write('KT_SELECTION',c1.answer_given);
wwv_flow.update_cache_with_write('KT_IMAGE','<img src="'||
replace(replace(replace(c1.image,
'#WORKSPACE_IMAGES'||'#',
v('WORKSPACE_IMAGES')),
'#APP_IMAGES'||'#',
v('APP_IMAGES')),
'#IMAGE_PREFIX'||'#',
v('IMAGE_PREFIX'))||
'" alt="picture" />');
wwv_flow.update_cache_with_write('KT_COLLECTION_SEQ_ID',c1.SEQ_ID);
--DEBUG
fdrpts.log.add('INFO','QUIZ.GET_QUESTION','quiz.get_question SESSION VARS SET',LOG_ROOT);
--/DEBUG
if c1.correct_answer = 1 then
wwv_flow.update_cache_with_write('KT_CORRECT','1');
wwv_flow.update_cache_with_write('KT_LABEL1',c1.answer);
wwv_flow.update_cache_with_write('KT_LABEL2',c1.wrong1);
wwv_flow.update_cache_with_write('KT_LABEL3',c1.wrong2);
wwv_flow.update_cache_with_write('KT_LABEL4',c1.wrong3);
wwv_flow.update_cache_with_write('KT_LABEL5',c1.wrong4);
elsif c1.correct_answer = 2 then
wwv_flow.update_cache_with_write('KT_CORRECT','2');
wwv_flow.update_cache_with_write('KT_LABEL2',c1.answer);
wwv_flow.update_cache_with_write('KT_LABEL1',c1.wrong1);
wwv_flow.update_cache_with_write('KT_LABEL3',c1.wrong2);
wwv_flow.update_cache_with_write('KT_LABEL4',c1.wrong3);
wwv_flow.update_cache_with_write('KT_LABEL5',c1.wrong4);
elsif c1.correct_answer = 3 then
wwv_flow.update_cache_with_write('KT_CORRECT','3');
wwv_flow.update_cache_with_write('KT_LABEL3',c1.answer);
wwv_flow.update_cache_with_write('KT_LABEL1',c1.wrong1);
wwv_flow.update_cache_with_write('KT_LABEL2',c1.wrong2);
wwv_flow.update_cache_with_write('KT_LABEL4',c1.wrong3);
wwv_flow.update_cache_with_write('KT_LABEL5',c1.wrong4);
elsif c1.correct_answer = 4 then
wwv_flow.update_cache_with_write('KT_CORRECT','4');
wwv_flow.update_cache_with_write('KT_LABEL4',c1.answer);
wwv_flow.update_cache_with_write('KT_LABEL1',c1.wrong1);
wwv_flow.update_cache_with_write('KT_LABEL2',c1.wrong2);
wwv_flow.update_cache_with_write('KT_LABEL3',c1.wrong3);
wwv_flow.update_cache_with_write('KT_LABEL5',c1.wrong4);
else
wwv_flow.update_cache_with_write('KT_CORRECT','5');
wwv_flow.update_cache_with_write('KT_LABEL5',c1.answer);
wwv_flow.update_cache_with_write('KT_LABEL1',c1.wrong1);
wwv_flow.update_cache_with_write('KT_LABEL2',c1.wrong2);
wwv_flow.update_cache_with_write('KT_LABEL3',c1.wrong3);
wwv_flow.update_cache_with_write('KT_LABEL4',c1.wrong4);
end if;
--DEBUG
fdrpts.log.add('INFO','QUIZ.GET_QUESTION','quiz.get_question LABELS SET',LOG_ROOT);
*fdrpts.log.add('INFO','QUIZ.GET_QUESTION','GET_TIME='||to_char(sysdate-nvl((to_date(c1.post_time,'YYYYMMDDHH24MISS')-to_date(c1.get_time,'YYYYMMDDHH24MISS')),0),'YYYYMMDDHH24MISS'),LOG_ROOT);*
--/DEBUG
-- set question generation time *THIS IS THE OFFENDING STATEMENT*
APEX_COLLECTION.UPDATE_MEMBER_ATTRIBUTE(
p_collection_name => 'QUESTIONS',
p_seq => c1.seq_id,
p_attr_number => 21, --GET_TIME
p_attr_value => to_char(sysdate-nvl((to_date(c1.post_time,'YYYYMMDDHH24MISS')-to_date(c1.get_time,'YYYYMMDDHH24MISS')),0),'YYYYMMDDHH24MISS'));
*fdrpts.log.add('INFO','QUIZ.GET_QUESTION','quiz.get_question READY TO EXIT',LOG_ROOT);*
exit;
end if;
*end loop;*
--DEBUG
fdrpts.log.add('INFO','QUIZ.GET_QUESTION','quiz.get_question EXIT',LOG_ROOT);
--/DEBUG
end get_question;LOGS
*LOG_ID DTTM ROUTINE TEXT*
7014853 04/23/09 11:40:57 QUIZ TEST 14
7014854 04/23/09 11:41:22 QUIZ.INIT_TEST quiz.init_test(2,918615994152352,'DEREK')
7014855 04/23/09 11:41:22 QUIZ.INIT_TEST 4/5 QUESTIONS RANDOMIZED
7014856 04/23/09 11:41:22 QUIZ.INIT_TEST RANDOM QUEUE CREATED 5 ENTRIES
7014857 04/23/09 11:41:22 QUIZ.INIT_TEST GROUP 2
7014858 04/23/09 11:41:22 QUIZ.INIT_TEST 4 QUESTIONS IN TEST QUEUE
7014859 04/23/09 11:41:22 QUIZ.INIT_TEST SESSION VARS SET
7014860 04/23/09 11:41:23 QUIZ.GET_QUESTION quiz.get_question(1)
7014861 04/23/09 11:41:23 QUIZ.GET_QUESTION 4 QUESTIONS IN TEST QUEUE
7014862 04/23/09 11:41:23 QUIZ.GET_QUESTION quiz.get_question SCANNING 1
7014863 04/23/09 11:41:23 QUIZ.GET_QUESTION quiz.get_question SESSION VARS SET
7014864 04/23/09 11:41:23 QUIZ.GET_QUESTION quiz.get_question LABELS SET
*7014865 04/23/09 11:41:23 QUIZ.GET_QUESTION GET_TIME=20090423114123*
13 rows selected.Edited by: derek on Apr 23, 2009 1:43 PM
Edited by: derek on Apr 23, 2009 2:06 PMHi Tyson,
If you look closely you will see that the routine already has access to the collection (which is, in fact, instantiated in a different procedure).
The routine has a debug statement to count and log the number of collection members; that statement reports 4 members in the collection.
Then the routine opens a cursor loop over that collection, calcs and sets some session variables and attempts to update the collection.
It is at this point (in the midst of the cursor loop over the same collection) that the collection does not exists is thrown.
Does it not follow that if the cursor loop has entered its first iteration, then the collection exists? How then does it cease to exist during the cursor loop (absent a call to one of apex_collection.delete_ methods)?
Derek
SFFD -
Cannot attach User property set within a Rule set
Hi,
I cannot attach a user property set within a rule set. When i create a new
rule set in the tools it doesnt give me a field to attach a User property
set to a rule set. I dont get this.
I am using WLCS 3.2, cloudscape, WL 5.1 SP 6, Win2000.
Any help wud be greatly appreciated.Hello Kapil,
This is a good thing. Allow me to convince you. Prior to WLCS 2.0.1 sp1,
each rule set required that a property set be associated with it. Rules in
that rule set could only use properties from that property set. You could not
write a rule that used properties from multiple property sets. Therefore, it
was impossible to combine user/group, session, and request properties in
rules. It is a good thing that you don't have to associate a property set
with the rule set anymore.
kapil wrote:
Hi,
I cannot attach a user property set within a rule set. When i create a new
rule set in the tools it doesnt give me a field to attach a User property
set to a rule set. I dont get this.
I am using WLCS 3.2, cloudscape, WL 5.1 SP 6, Win2000.
Any help wud be greatly appreciated.--
Ture Hoefner
BEA Systems, Inc.
2590 Pearl St.
Suite 110
Boulder, CO 80302
www.bea.com -
How do I make a new property that I added to a property set show up in the portal
admin tool when I am editing a user?
I was able to do this in my dev environment. After that worked, I updated my EAR
file with the modified property set file (the .usr file) and redeployed the app
in my QA environment. When I go into the admin tool and try to edit the property
set for a user (in QA), I still don't see the new property. Is there anything
else I need to do? Any help would be appreciated. Thanks
Also, is there a way to add new properties to a property set thru the portal admin
tool? Or is editing the file thru workshop the only way? Thankshttp://e-docs.bea.com/wlp/docs81/deploy/deploy.html#1003633 for the
first problem. Since you have a compressed EAR, you'll need to flush the
JDBC repository to have it pick up the files from the EAR.
You can only change possible and default values through the admin portal.
Greg
Ramesh wrote:
How do I make a new property that I added to a property set show up in the portal
admin tool when I am editing a user?
I was able to do this in my dev environment. After that worked, I updated my EAR
file with the modified property set file (the .usr file) and redeployed the app
in my QA environment. When I go into the admin tool and try to edit the property
set for a user (in QA), I still don't see the new property. Is there anything
else I need to do? Any help would be appreciated. Thanks
Also, is there a way to add new properties to a property set thru the portal admin
tool? Or is editing the file thru workshop the only way? Thanks -
Hi,
I am learning ADF property set .According to the guide book, I wrote the following code :
AttributeDef fi = getDefinitionObject().getAttributeDef(FIRSTNAME);
String hello = (String)fi.getProperty("HELLOWORLD");
But in Debug i could not get the value , the value of "hello" is null;
And I set the property set in the attribute of the entity object.
TestPropertySet.xml:
<Properties>
<CustomProperties>
<Property
Name="Property"
ResId="HELLOWORLD"/>
</CustomProperties>
</Properties>
EmployeeEO :
<Attribute
Name="FirstName"
Precision="20"
ColumnName="FIRST_NAME"
SQLType="VARCHAR"
Type="java.lang.String"
ColumnType="VARCHAR2"
TableName="EMPLOYEES"
Domain="com.mm.demo.model.entities.TestPropertySet">
JesseHi Timo,
My jdev version is 11.1.1.4.0 . And the name of the guide book I saw is Oracle ADF Real World Developer's Guide.
I reference book 75 .I have followed this example do:
public class EmployeeEOImpl extends EntityImpl {
* Sets value as the attribute value for Email.
* @param value value to set the Email
public void setEmail(String value) {
boolean updateAllowed = true;
//Read the UPDATE_CHECK_ENFORCED property
//for the Email field
String emailUpdateCheckEnforced =
(String)getDefinitionObject()
.getAttributeDef(EMAIL).getProperty("UPDATE_CHECK_ENFORCED");
//If the UPDATE_CHECK_ENFORCED is added to
//the attribute, then call
//custom isEmailUpdatable() to check if update is allowed.
//Call to isEmailUpdatable() may be expensive and
//we are doing it selectively using custom property.
if (("true".equals(emailUpdateCheckEnforced))) {
updateAllowed = isEmailUpdatable();
if (updateAllowed)
Introducing Entity Object
[ 76 ]
setAttributeInternal(EMAIL, value);
//Remaining EntityImpl code goes here...
Now ,I get the value with the name "Property". But Why the value come according to the Property and not according to the Key.
Because when I get the overview of my PropertySet , I point the green plus sign butto for the Custom Properties tab.
And then I set the Key 'HELLOWORLD' , but you tell me is the Property . So I was wondering , I thought the value is got By the Key.
Maybe you are looking for
-
Error while transporting the cube
Hi all, While I was transporting my cube from Development box to Acceptance box, following error occured. Execution of programs after import (XPRA) Transport request : GCDK905220 System : NCA tp path : /usr/sap/
-
What to do if i lost my ipod touch
i feel soo bad that i lost my ipod i got it for my b-day and i only had it for two months i let my uncle use it and after he give it to me i counldnt find it i was serching it for days and when my mom found out she got really mad because we bought an
-
How do I configure a VPN Site and Subnets in Lync when clients have /32 Addresses?
Hello, I've found a few people asking this question out in the "interwebs" but no one seems to quite answer their question (Those poor souls). In most occasions that I've seen, my customers have configured their VPN networks with a /24 (255.255.255.0
-
Direct input guitar latency issue
So I have a brand new iMac 20" 2.66 GHZ /4Gb ram and an M-audio firewire 410. I have my guitar plugged direct and there is a delay in the monitor. If I match my guitar volume it sounds like slap delay. It is really annoying and I would like to know w
-
Hi Experts I wish to have a predetermined layout for CNE5 report (only with progress values), but i donot find the feature for managing layout. Is there any clue for this. warm regards ramSiva