How can i set the security on a javascript action in mendix 10

0
Hi, I was trying to call a nanoflow from a javascript action but it gives errors on that something is undefined, while searching on the internet it seems to be the security settings that are missing to call that nanoflow or that the nanoflow should have been declared first. how can i set the security settings for a javascript action and pass these settings to the nanoflow that needs to be called? or how to declare the nanoflow? (https://community.mendix.com/link/space/app-development/questions/100149) while debugging it crashes on the first action and i can see that the parameter was correct passed but something is undefined so i think it is security?
asked
2 answers
0

If you keep getting the error, consider debugging the javascript action itself.

Easiest way to do that is to simply add the statement:

debugger;

to your javascript code.

Then the code will be halted in your browser at that point and you'll be able to inspect the parameters and see which one is possibly undefined.

answered
0

Hi, it goes to the nanoflow and the parameters are present but then it crashes on the first action in the nanoflow (and that is just a create variable).

answered