Andries-Smit / Mx-Progress-Bar-Button

Mendix widget; Send progress feedback to user interface when processing takes long.
Apache License 2.0
1 stars 2 forks source link

Upgrade to Mendix 7 #4

Open LinoGomes opened 6 years ago

LinoGomes commented 6 years ago

I was wondering if it is possible to have this upgraded to Mendix 7? It was throwing an error with the No Context widget and a deprecation warning with using _FormBase.save. I was able to resolve both of these issues and have it working in Mendix 6. In Mendix 7, however, I can get the popup to display but it doesn't get updated. When I step through the code, the attributes are not getting the updated values from the change activities of the IVK_OnClick microflow. Also, when I click the button a second time I get an error related to the Progress entity not being passed to the microflow. At this point I don't know how to get it working.

Andries-Smit commented 6 years ago

Dear Gomes.

The trick for updating does not seems to work for Mendix 7 due to the stateless server design.

IF it can be fixed it would require a whole new approach...

I was working on a re-write... but stopped when I discovered that the architecture did allowed our trick... I will have an other look at it... (but, no guarantees)

Cheers Andries

LinoGomes commented 6 years ago

Thank you Andries for looking into this. I was able to get it somewhat working using a slightly different approach, making the entity persistent then using a microflow to get the updated value. It's not the cleanest but I was able to make it work.