how to pass a global variable to an app running in a container?

I have a global variable to show a form with a certain record. Called from within the menu it works well. As soon as i put this app in a container it displays that it cannot find any record. Appearantly the global variable is lost? I start the container by a sc_redir to the container application.

I used sc_redirect with blank app -> grid+form(in Iframe as detail), and global variable is not present with redirected apps. Have to do some more testing, but right now I can’t make it work.

I managed by creating a global variable and bind it to a session. If you have to change the global and reload the full widgetset you can do a sc_redir to that widgetset but use the menu iframe as target. It works like charm.

sc_redir($app, GlobVar=$someval); this finally worked