Refresh widget when value of the variable associated with process changes

Hi,

In my web application,  I want to refresh my widget on screen when process data associated with it reaches to some state. Is there any way doing this?

In simple terms, I want to trigger some event when value of variable in the process becomes "refresh" and widget on screen should refresh with new data. 

Thanks.

Umesh

Hi Umesh,

You can refresh only the part of the page that must be updated using AJAX.

Make sure that the widget or the container in which it is placed has the name property set.

Then you can use the Ajax Refresh widget in your screen action and select the container by name that you want to refresh.

https://success.outsystems.com/Documentation/11/Reference/OutSystems_Language/Logic/Implementing_Logic/Web_Logic_Tools/Ajax_Refresh

Google on "how to use ajax refresh in outsystems" for more info.

Regards,

Daniel


Hi Daniel,

I think I didn't mention it clearly, but I want to refresh part of the screen e.g. alert section when BPT process variable has some value.

To simply my question, I have a BPT process and logic in associated action. When this process reaches to some state, I want to refresh alert section of the screen. I want that if user is already on that page, they should see new alerts immediately.

Currently, I don't find any way to trigger any event from BPT process to refresh widgets.

Sorry for the confusion.

Thanks,

Umesh

Hi Umesh,

That wasn't clear to me from your initial post.

I don't know either that there is some functionality within BPT to achieve what you want.

One way (the easiest to implement, but not the most elegant and performant) is to do an auto refresh of that screen part. There are several forge components to help you with that or you do it with some javascript yourself.

If you don't like this polling solution you could have a look at forge pusher component

https://www.outsystems.com/forge/component/1493/pusher-com-apis/

There is a demo app, https://www.outsystems.com/forge/component-overview/4339/pusher-channels-demo

Regards,

Daniel


Thanks a lot Daniel for response. I will try forge component you mentioned.

I will keep this post open for few days. Hopefully we will get more options from community.

Thanks,

Umesh