@m4zuper Strange, as this is broken at least since 26.8.0 or something related to this. Hence I thought it's generally not working an concerns every user...
Currently using 27.6.2 on Windows 10, 64BG RAM, Ryzen 7 5800X. BAS is installed at the standard location on C drive. And it happens with every project I try to add this way. Okay, it's not that issue but it's convient to add a project with just one click.
Set Global variable Is Not working in Run Mode
-
/////Start script after run button is clicked $("#RunScript").on("click", function () { /////Validate resources if (IsResourcesValid()) { /////Disable run button immediately $("#RunScript").attr("disabled", "disabled"); /////Start script Api.AcceptResources(); } else { /////Ask user if he want to continue UIkit.modal .confirm( tr( "There are incorrectly filled fields on the form. Are you sure, that you want to continue?" ) ) .then(function () { $("#RunScript").attr("disabled", "disabled"); Api.AcceptResources(); }); } console.log("starting"); Api.SetGlobalVariable("TEST", "This is a Test").then((x) => { console.log("seted"); }); Api.GetGlobalVariable("TEST").then(function (GlobalVariableValue) { console.log("GlobalVariableValue", GlobalVariableValue); }); });it's working Only In Record Mode Not Working when i Run It.