on 11-17-2007 2:28 PM
Hi All,
I have a requirement like this, I have to store some complex data(like some object) in webdynpro session object.
I know that i can store some string value in session by using wdScopeUtil and is it possible to store some complex data like(object ot object array).
See i have some ContryTO[] object which contains countrycode and value i have to store this Array object in session.How can I solve this problem,i am strucked regarding this pls help me regarding this issue.
Regards,
saleem
Hi,
Can you elaborate your requirement related with the lifetime expectancy of the session. If you want some data to be stored till the life time of your WD application you can use the controller context to store this.
Regards
Ayyapparaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
My Scenario is like this .
I am getting a ArrayList object from database and want to store it somewhere so that i can use the same list in the entire application without going to database again and again.
i thought of using WDScopeUtil.put(WDScopeType.APPLICATION_SCOPE, but it can store only sting objects.
hope you understand the problem if yes please get back to me with a solution
bala
Bala,
Go thru this link. It may be useful to you.
List elementList = new ArrayList();
// set values to your list.
IMaintainScope maintainer = Utils.getScopeMaintainer(WDScopeType.APPLICATION_SCOPE);
maintainer.getScope().put("list",elementList);
List elementList1 = (List)maintainer.getScope().get("list");
Regards,
Sridhar
Hi,
I think you need to create a similar structure in your WD context and set the individual attributes from your transfer objects.
Regards,
Murtuza
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
even i am facing with the same problem.I need to store the database results in session so that i need not go to database everytime.
somebody help us in resolving this issue
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.