Hi Brice,
It seems like you microflow is returning a Decimal value in a variable.
But your text box is expecting an attribute, which always is part of an entity.
The variable you return in the microflow in the screenshot can not be returned to a page.
The value you have calculated in the variabel needs to be set in the attribute in the object and you should return the object to the page and select the right attribute for the text box.
Hope this helps.
Thank you for your reply Vicky! As a Mendix newbie I was still a little confused. I did figure it out working with process of elimination based on your response. I have formulated the following steps in case anyone else has this issue:
1. Domain model has 2 entities, a persistable with the list of attributes shown for data grid 2. A non-persistable with a single attribute for whichever attribute you'd wish to total. I labeled mine "Expenses" & "TotalExpenses" with decimal and 0 stored.
2. Microflow > This microflow does not need a Parameter. Edit (double click empty space) Return Object, Select the non-persist entity
3. Retrieve List from persist entity, no need to select attribute.
4. Create Variable > For me Decimal with Value 0 - Named 'TotalAmount'
5. Loop ( Each Item In List) and I named mine 'LoopExpenses'
6. Inside Loop, Change Variable, selecting the one created in step 4. for Value reference your variable name + loop name/Amount. For me '$TotalAmount + LoopExpenses/Amount'
7. After Loop, Create Object, select not persist entity, Commit & Refresh, New - Member (your variable), Value: your variable name (for me $TotalAmount) I named my object 'TotalExpenses'
8. End - Value: your created object name, for me $TotalExpenses
Microflow Complete
9. To show in a dataview, select microflow and choose the one you made. it should auto fill out, if it doesn's, drop a TextBox into it. Select the attribute of your non-persist entity. In the "Input Mask" Label: $[Loop name/variable name], for me - Total Expenses: $[CurrentObject/TotalAmount]
I hope this helps anyone else in need.