What reusable options do I have to increase one of multiple decimal attributes using buttons?

0
I have a Data View with the Checklist entity as its data source. The Checklist entity contains 10 decimal attributes (Time_1, Time_2, Time_3, …). Inside the Data View, I display a table with rows and text boxes for each of these decimal attributes. Below each text box, I want to place three buttons: +10 minutes, +30 minutes, +1 hour (where 0.5 equals 30 minutes) Each button should increase the value of the corresponding decimal attribute. From what I’ve checked so far, if I use a single microflow for all buttons, I can’t dynamically pass which specific decimal attribute should be updated. I’d like to avoid creating a separate microflow for each button and each attribute. Is there a reusable approach for this scenario? For example, would a JavaScript action or another pattern be more suitable?
asked
1 answers
0

Hello Nansi, 

 

An idea is to maybe rethink your domain model and at the ten times for the checklist into a separate entity with a 1*n association with Checklist.

Then you show in your datagrid the different times and you can use one microflow with as parameter your newly created entity.

 

Hope this helps,

 

Good luck

answered