cancel
Showing results for 
Search instead for 
Did you mean: 

How to transfer a String array from one view to another

Former Member
0 Kudos

Hi,

I am working on a scenario where I need the array of values in one view to be used in another view.

Is there a type similar to String array for a value attribute so that I can transfer the values through the attribute.

I also tried declaring a variable in the first view and creating an object of the view to access that particular variable.

Even this didn't work.

Please correct me or let me know any other way to accomplish this.

Version:

NWDS - 7.0.09

SAP NW SP 12

Thank you,

Vasu

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

You can store any collection (List, Set, Map etc.) in context attributes. In your example, you might use an ArrayList.

Armin

Answers (1)

Answers (1)

sridhar_k2
Active Contributor
0 Kudos

Vasu,

One simple solutions. Create one context variable in the controller with Type String[] , set it from first view and access it in second view, As it is in the Controller (Global to Views), you can access from any view.

Let me know, if it is not clear.

Regards,

Sridhar