Skip to Content
author's profile photo Former Member
Former Member

How to store complex data in session object

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Nov 17, 2007 at 09:18 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 19, 2007 at 03:52 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 19, 2007 at 04:00 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.