I want to reference a table inside Javascript code

I want to access a local variable from the JS Code I wrote for the screen.

Hi Sumit,

What type of application you build? Traditional web or Reactive Web or Mobile app?



Hi Sumit Kumar,

You cannot directly access the local variable in outsystems . Here you need to add an element on the web screen (say label, expression , also please make sure you have named the elements). then you need to assign the value present in the variable to the added html element . 

So basically you are getting the value of the local variable using the html element . Also make sure to ajax refresh the html element if the value of the local variable changes.

Hope this will be helpful.


Hey Pranav, 

The whole point of me updating is to not a request to the server, hence I don't want any Ajax Refresh. Is it possible to do it without that?