how to get hidden variable in javascript when srceen is initialize

how  to get hidden variable in javascript when srceen is initialize  thank you!

You're going to need to provide more information.

  • What type of application (mobile, traditional web, or reactive)?
  • What version of the platform? (i.e. - OS 10, OS 11)
  • What is the use case...that is what are you trying to accomplish?
  • Why do you feel you need to use JavaScript to accomplish this?


Thank you for your response

  • What type of application (mobile, traditional web, or reactive)?  ? Web
  • What version of the platform? (i.e. - OS 10, OS 11)   ? OS10
  • What is the use case...that is what are you trying to accomplish?  ?I want to pass the local variable  of outsystems  to JS and let JS draw a picture on the screen  ?Local variable is the coordinate value
  • Why do you feel you need to use JavaScript to accomplish this? ? let JS draw a picture on the screen
Solution

Hi,


You can have something like a textbox that has its Visible property set to false, give it an Id and you can do something like this.


Expression Value (JS)



Result




Its not very elegant, but it might be what you are looking for. let me know if it helps you out.


Regards,

Ralph

Solution

The problem is solved. Thank you very much!


It will also work without Textbox anyways it works properly.