on 08-05-2004 9:39 AM
Hi Community,
I got a question. Is it possible to save an Object in a shared memory storage (each view should have access to this), initialize it in one view and read it in another view? So i could avoid sending complex data from one view to another via plugs. Thanks for answering, regards, Robert.
Hi Robert,
the transient data store in Web Dynpro is the context. If you want to exchange data between different views, it's sufficient to create and fill a context in a controller, which both views are able to access. E.g.:
1. Create the necessary data structures in a custom controller or the component controller.
2. Map the corresponding context nodes of the view controller to the nodes of this controller context.
Result is, that both views share the data stored in the mapped context.
Hope that helps.
Regards
Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That seems to be some kind of problem because of the complexity of the data structure. So I will evade to sending keys between the views and loading the data separately from the data base.
One question remains. I created a Java Persistence Project and a Web Project binding the Persistence Project
(the tables).
Via "DataSource datasource = (DataSource) ctx.lookup("java:comp/env/TMP_PERSISTENCE");" I loaded the ressource.
Now I need to know how to import this persistence project into my WD- Project. I'd like to access these tables through a Java- Class I've written and implement some calls in the onAction..(...) term of my WD-Implementation.
I look forward to response, regards, Robert.
User | Count |
---|---|
84 | |
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.