AnsweredAssumed Answered

Global variables and multiple windows

Question asked by Porpoise on Mar 14, 2014
Latest reply on Apr 8, 2014 by philmodjunk


Global variables and multiple windows



     In a layout that creates an invoice, a script is triggered that calculates the amount payable. The result is put in a global variable and displayed in the layout with Merge Variable in a Text field. Luckily both are local to each user, so when two users open the same layout, each will get his/her own result displayed. However, things turn bad when one and the same user opens two windows for two different invoices. As there is only one global variable, the same amount payable will be displayed on both invoices.

     In fact, any layout that uses Merge Variable will display the same value in each open window.

     Does anybody know a solution (short of prohibiting multiple open windows for the same layout)?

     Kind regards