cancel
Showing results for 
Search instead for 
Did you mean: 

Open the new window by using window.open

Former Member
0 Kudos

I use the javascipt 'window.open' to open a new window. I pass the controller name (XXX.do) to the paramerter 'name'. When I want to pass a parameter to XXX.do, I can pass it like this.

name = "XXX.do?key=11"

However, is it possible to pass an internal table or a model class to the XXX.do by this way?

Moreover, I would like to another question for my knowledge. Everytime when I call this function 'window.open', how can the controller class be instantiated?

Accepted Solutions (1)

Accepted Solutions (1)

thomasalexander_ritter
Active Contributor
0 Kudos

Hi,

>However, is it possible to pass an internal table or a

>model class to the XXX.do by this way?

That is not possible. When you need a data source which can accessed by more than one controller use an application class.

>Moreover, I would like to ask another question for my

>knowledge. Everytime when I call this

>function 'window.open', how can the controller class be

>instantiated?

The controller will always be instantiated by the MVC framework. Furthermore when your application is stateful the controller will be cached, of course. So everytime the controller is called from a web browser the framework will load the cached version or if it is a stateful application instantiate a new one.

regards

Thomas

Message was edited by: Thomas Ritter

Answers (1)

Answers (1)

Former Member
0 Kudos

Hai,

It is not possible to send an interal table in the URL as there is limit to the number of character that u send in the URL around 255 chars,

You can go by storing the internal table in the serverside cookie, from the caller application and retive it from the called application.

There is no limit to the size of the data you store in the internal table.

Regards,

venkatesh.