Hi Team, Can someone help me with how to call Mendix Constant Name into JavaScript file example - I have passed a key in constant value now I need to configure that value dynamically in JavaScript file with the help of constant name. when configured my end throwing an error like undefinedmodule. So someone can help me how to resolve this issue
asked
Gellu Sravani
2 answers
6
You can pass the constant value as an input parameter for the JavaScript action.
Create constant with exposed to the client
Create a JavaScript Action with Input Parameter
Call a JavaScript Action inside the Nanoflow
Pass the constant value in the JavaScript Action Input parameter
Attached is the image for reference
answered
Krishnaraj
1
You need to call mx.session.getConstants() from JavaScript and then look for the constant you require in the returned results.