Hi Carlos,
On the screen action that add and delete the task from the list you need to Ajax refresh the container of the counter.
Regards,
Marcelo
Carlos,
Are you wanting to refresh the counter when there is an action taken outside of you current page?
if that is the case you will need to implement websockets.
Here is a forge component that uses Pusher.
https://www.outsystems.com/forge/Component_Overview.aspx?ProjectId=4339&ProjectName=pusher-channels-demo
Hi,
Create one container with some name like countercontainer, place that counter inside the container. Just use Ajax refresh from widget and assign countercontainer to the widget.
Thanks,
Rajat Agrawal
I use a server action in the logical processes that refresh the counter.The idea is to be able to refresh using the action preparation of the webblock of the counter located in the header of the site.
HI Carlos,
As per my understanding you have Counter web block in the header of your page. You want to refresh that web block based on the logic in preparation of web block.
Now what you can you do it, just call notify widget in the web block preparation and pass any value you new value or any value you want to pass counter
Just for example, I have kept countercontainer in Breadcrumb, you can keep according to your requirement
Now call on notify action of a web block, where you can read message from web block preparation and assign value then use ajax refresh.
If you work with version 10, you can use Rajat solution.
If you're working with version eleven, you can work with the events and the handlers. You can create an event in the web block, and create an action in the parent to be the handler (in there you do what you need to do):
If you want to use Rajat in version 11 you can do it, but it's deprecated.
Best regards,
Ricardo