Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
var MyObj = {MyVar:0};
var CurrentDocument = Qv.GetCurrentDocument();
CurrentDocument.GetAllVariables(function (vars) {
for (var i = 0; i < vars.length; i++) {
if (vars[i].name === "MyVariable") {
MyObj .MyVar= vars[i].value;
break;
};
};
alert(MyObj .MyVar); //Work
};
alert(MyObj .MyVar); //Undifined
Option with definition below do not offer. Firstly, it does not work in document extension. Secondly, when changing the xml, you need to delete and recreate the extension in the document each time. It came up with an idiot.
Definition.xml:
<Text Label="Text0" Type="text" Expression="=MyVariable"/>
P.S. This forum thread consists of corpses and no one can answer the sipmle questions that are asked?
@warfollowmy_ver Hi there, thanks for participating in the community. We are reaching out to someone for help, I hope they will be able to get the post soon. Thanks for your patience.