Hi,
I have a visio button that opens another page as a window to display router control. I am initialising the router control session variable at page level by using InitVar as below and the values are set to something different when needed.
The problem is that the visio seems to hold the last value of the session variable even though the page(window) is closed so when we reopen the screen, the values are still the last value set from the previous opening instead of the initialised values.
Is there any way to reset the session variables when the window is closed so that the session variable keeps initialised when the window is opened? I will look forward to hearing from you soon.
Thanks
Paul.
Hi Jens,
Thanks for your suggestion but it did not work I'm afraid.
I'm using the session variable in router control componentOptions as below, would it be why it's not working?
I expect to see below box to show 'test' but it still shows the last set value.
Hi Jen, changing Variable to PageVariable didn’t print anything. So it just came out as ‘*’.
Hi Paul, my mistake. You can keep the Variable option, but you need to add Options with value PageVariable
Hi Jen, thanks. I did try that too actually but it’s shows blank which makes me wondering if the initialisation worked correctly or not?
Hi Jen, it seems that the PageVariable works. It seems to be an issue with the values in InitVar shapedata. In InitVar, I have RCPLAYOUTDESKSelectedMatrixElement:[param:[this serviceid],1060] command and this somehow seems to be causing a problem. It works fine when I replace it with something like RCPLAYOUTDESKSelectedMatrix:test. Can you spot what is wrong with the SelectedMatrixElement command?
Hi Paul, I see in the last Visio image that you’re using Variable option. Can you also replace that one to PageVariable?