Announcement

Collapse
No announcement yet.

Making variables to application specific

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

  • Making variables to application specific

    So this is one question I have been thinking about lately. Is it possible to make variables so they can be altered only inside a specific application.

    I have one menu application where you select an customer, here we give the customer id to the next menu application which opens to a tab.
    Everything works great when you have only one customer open, but if you open two or more customers to their own tabs the global variables used inside applications start colliding because you have the same application open multiple times, only with different customer data.

    So what would be the best approach in this situation? We are mostly using the global variables to show detailed customer information in applications and would like to restrict it so that an application open in another tab cannot change variable used some where else.

  • #2
    Has you global var as session?
    /Giuseppe

    Professional Scriptcase Services
    Some Customers opinions

    Comment


    • #3
      All the global variables we are using are only marked as POST and GET in the Application -> Global variables menu, but still they are being changed from outside of the current application.
      If I have undestanded correctly setting the variables as SESSION would make them available through out the project, that is why I am finding it odd that they are changing with our current settings.

      Comment


      • #4
        Try the config attached and use on your code onApplicationInit:

        [loc_myvar] = [glo_myvar]

        and use [loc_myvar] in all your app
        /Giuseppe

        Professional Scriptcase Services
        Some Customers opinions

        Comment


        • #5
          I have to test this little more, but seems to be exactly what I needed. Thank you!

          Comment

          Working...
          X