all three objects exist and are output to the console,
next, I try to output the value of the variable, but none of the methods works - the answer is always undefined:
var Var1 = dmx.parse('myvariabe');
var Var2 = dmx.app.data.myvariable;
console.log(Var1);
console.log(Var2);
I've probably tried >10 variations already and haven't found the right answer yet. What is the right way?
I haven't seen such an option, but it didn't help either. I also tried content.myvariable.value and payment.myvariable.value. 'payment' is my content page name.
A friendly reminder that timing is a crutial thing here, you need to "wait" to AppConnect set myvariable and that's why the function() thing needs to be there.
Otherwise, the javascript will "read" something that doesn't exist (yet).
Should thanks also @famousmag who kindly remind me that on private while we were speaking