How is your experience with the OutSystems Community?
22
Views
4
Comments
Solved
ODC: Button Loading inside block doesn't show spinner when calling a block event
Question

I have a block with a button spinner that calls an event consumed by its parent, however it doesn't show a spinner at all and the button stays clickable even if the event is still in progress. Any solutions?

2026-06-20 17-43-43
Sherif El-Habibi
Champion
Solution

Hello,

I think that once the event is triggered, the whole flow shifts to the child that is subscribing to this event. In other words, the execution is no longer inside the same block.

You could try the following approach:

  • Add an input parameter like IsSaving to the event itself
  • Move the spinner logic to the child flow that handles the event, meaning inside the action flow of the subscriber
  • In the parent (the publisher / the one triggering the event), simply trigger the event and remove both assign actions related to the spinner state

This way, the loading state is handled where the actual processing happens rather than in the publisher flow.


2026-01-28 16-57-48
Mihai Melencu
Champion

Hi @Hilario Jr Castañeda ,

The issue seems to be same or similar to this one here: Local variable in block changes but doesn't trigger OnRender . You can check the solution is provided there. It is for O11, but it should for ODC as well.

Here is some documentation as well: Defining Asynchronous JavaScript Code 

UserImage.jpg
Hilario Jr Castañeda

Hi, thank you for the input. This was helpful.

2021-01-01 09-23-30
Michael de Guzman
Champion

Hi @Hilario Jr Castañeda ,

Try the "IsSaving" parameter suggested by @Sherif El-Habibi.  That will work.

Please check the attached OML.

Test.oml
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.