webblock variable

webblock variable

How to access from the webscreen a webblock variable without session variables??
Hi Filipe

You can't actually access a WebBlock variable from a webscreen, because the variable only exists on the webblock scope, and being a self-contained widget, you can't access it from a web screen.

You need to either use session variables, site properties, database values, or if you need to get a Text value based on a ajax event from the webblock, you might do it using the NotifyWidget and the NotifyGetMessage actions

More information on webblocks and using variables can be found on the OutSystems Service Studio Help online. Here some direct links to it:


More information on the NotifyWidget action:


Hope this info is helpful.

Let me know the use case if none of the suggestions applies.


Miguel João