Get global variable with javascript

How can I get the value of a global variable in Axure 8.

I tried the following but its not working: Get undefined.

$axure.internal(function($ax){
$ax.public.getGlobalVariable = $ax.getGlobalVariable = function(name) {
return $ax.globalVariableProvider.getVariableValue(name);
};
});
$axure.internal(function($ax){
$ax.public.getGlobalVariable = $ax.getGlobalVariable = function(name) {
return $ax.globalVariableProvider.getVariableValue(name);
};
});

var vraag1 = $axure.getGlobalVariable(“vraag1”);

alert (vraag1);

The patch you’re using for that global variable function should work. See attached…

AlertGlobalVariable.rp (42.2 KB)

Thanx a lot! great work

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.