Announcement

Collapse
No announcement yet.

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

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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.
    Albert Drent
    aducom software netherlands
    scriptcase partner, reseller, support and (turn-key) development
    www.scriptcase.eu / www.scriptcase.nl

  • #2
    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.

    Comment


    • #3
      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.
      Albert Drent
      aducom software netherlands
      scriptcase partner, reseller, support and (turn-key) development
      www.scriptcase.eu / www.scriptcase.nl

      Comment


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

        Comment

        Working...
        X