I am following this tutorial from documentation:
https://docs.wappler.io/t/using-app-connect-with-javascript-functions/15765
Fist time I am trying this: I want to pass the height from a div to another div I am creating this function.
<script>
var div = document.getElementById('image-test');
// Get the height of the div (including padding, border, but not margins)
var cloneHeight = div.offsetHeight;
dmx.app.set('cloneHeight', cloneHeight);
</script>
But I get this error:
Uncaught TypeError: Cannot read properties of undefined (reading 'set')
Wha I am making wrong?? Any help will be welcome.