Hey, i did that golbals [var] and sc vars format {var} it does not work.
Also there seems to be a bug with connection update logic, when you change connection in an event and run the app, it does not use new update connection and instead pull cashed connection data. Once you refresh the page it then has updated connection info on your previous run and then connection with info you want.
I am using the connection info change function in OnScriptInit and it does not get updates for the grid content.
So lets say i have DB Server A and B
If I open grid and send server A id I want it to dynamically update connection info for the grid and pull records for DB server A.
Since I am changing same connection application is using, before records even begin pulling I expect that this would work.
What happens is when I run the application, And send server id A - everything is good and server A data is pulled but if I then send server B then I still see server A data in the the grid, but if i refresh it - it is now connection B. So update to connection happens after application runs not before records are pulled.
So although connection should have changed, before grid began pulling records - it uses stored info and updates it after. This defeats the whole reason why i used connection change, I want to dynamically swap connection so system processes grid on different database.
Additionally I need connection change to be available for onRecord actions because as i list servers I want to go to each one separately and do data analytics and display relevant results in the grid row. I do not think this is even implemented.