on 03-25-2008 5:34 AM
hi
i want to pass an array of attributes from one view to another view how can i do that...is it possible ...?
it is urgently needed pls help me,,,,
Will give points to helpful answers
Warm regards
Shanto Aloor
Hi
1)if u wnat to pass 4 values like val1,val2,val3 and val4
2)create context variables in the component controller like cvar1,cvar2,cvar3 and cvar4
3)Then map these variables to the target view.(By using the data modler.
Thanks
Hazrath
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
To pass objects from one view to another view is simplest way is set the objects into session(HTTPSession) and retrieve it from another view. Steps are given below.....................
Step 01: Add J2EE.jar file into classpathe of your webdynpro application as add external jar.
Step 02: Create session(HTTTPSession) object.
Step 03: Store objects into session as setAttribute.
Step 04: Retrieve objects from session from another view.
Regards...
Santanu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Shanto,
Which version of NetWeaver r u using? If u r using 04s/7.0.x , u can use a collection for that. Create an context attribute of type ArrayList(or any other collection) & using context mapping, u can pass the values.
regards
Sumit
Edited by: Sumit Malhotra on Mar 25, 2008 11:30 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hai shanto,
Even iam having the same requirement.Once you find the solution plz share it with coding.
Thanks n Regards
Sharanya.R
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thats what contexts mapping/bindings are for. Just create an attribute in controller context, of that array type, and map it to both of those views.
When you change the value on one of these contexts, it will change on the others too, mapped attributes share values because they share the same instance.
Regards
Julio Herrera
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
What kind of array?
Instead use the attribute inside a node and map it to both the views using controller.
Now you have array of values in both the views.
thanks & regards,
Manoj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.