Show blocking progress bar when invoking microflow from image
Hi! I have a question about the progress bar functionality. On the homepage of the app I am developing, a dashboard is shown. On it, are several images that serve as buttons, with below them a textual link. On the latter, I can choose to show a blocking progress when the microflow is called. This is very nice for me, because a lenghty data retrieve is activated and I want to prevent users from invoking the same action multiple times. It would be nice to also have this behaviour when the image is clicked that starts the microflow, but in the microflow options is no possibility to set a blocking progress bar. Is there a way to work around this? Thank you in advance! Regards, Bart
Bart van den Heuvel
You could use a normal button with the image, and style it the way you like.
However in my opinion this is more work then should be done, this should be default Mendix. This issue has been brought up before and there are ideas, on the forum to improve it, like: https://forum.mendix.com/link/ideas/228
Another option would to use the clickable container widget. This allows you to set a microflow to be triggered when a div is clicked. This also has the option for a blocking progress bar. You would create a container on your page, add the image inside the container, and add the widget inside the container. Then when the image is selected, you can trigger a microflow with a blocking progress bar.
You could place an image, without an on-click microflow, and a copy of your first text button, without any text. Then simply use CSS to make the new "text" button cover the image (intercepting clicks on the image).