How can I create a pop-up for a donation? Then from there after typing out a donation, have it add to the progress bar of that person?

0
Refer to title for question. Very new to mendix and unsure how to do it. Have had multiple issues trying and would just like a step by step please. Thank you.
asked
1 answers
0

Hi Alessandro,

 

1. Add an Action Button

Place a button near the progress bar labeled “Donate” or with an icon.

Set the button action as Call a Microflow -> Open popup page.

 

 

2. Create a Popup Page

 

Add a data view of the same entity used for patient/category donation (example: Patient)

Inside it, place a text box or number input to enter donation amount

Add Confirm and Cancel buttons

 

3. Update Donation Amount In the microflow:

 

Take the input donation amount

Add it to the existing donated value:

Patient.DonatedAmount = Patient.DonatedAmount + EnteredAmount

Commit the object

Return to the main page

 

4. Refresh Progress Bar

 

Enable Refresh in client in the commit activity

 

The progress bar will update instantly to reflect the new amount

 

Configure Progress Bar

Set Minimum value = 0

Set Maximum value = Patient.RequiredAmount

 

Set Progress value = Patient.DonatedAmount

As donations increase, the bar automatically fills to show current progress

answered