@clarabellerising Hello bro, thanks for your support, I'm still very confused how how to apply this in the tool as a newbie working hard to learn this, can I Pm you on telegram or Chat??
Will appreciate it, thank you!
/////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.