Data Repeater: How to set different default values

Data Repeater: How to set different default values

Comments

  • [font=Roboto, Arial, Helvetica, sans-serif]Hi, We have a requirement for data repeater. When we add a new item in data repeater using Data Repeater Add Button, we want to set the default values for the newly added item. How do I achieve it? In some scenario, default values may differ depending on existing data. I tried using an Event Button instead of Data Repeater Add Button. Upon event button click, I consume item list in a flow, add a new record with default values and use the flow result. But the problem with this approach is, upon click, it flashes data repeater control. From user perspective it is not good as if something went wrong. [/font]

  • [font=Roboto, Arial, Helvetica, sans-serif]The short flash shown when a data repeater is updated by a data flow is intended behavior. The flash is caused by the data repeater rendering a loading wheel while the data flow is updating it. The amount of time taken to add a single row to a data repeater is usually extremely short, causing the loading animation to look like a flash. We can leverage the data repeaters source instead, by creating a data flow in the source which updates values in the repeater if they are empty or do not meet some given criteria, instead of using a data flow in the parent form. I have created a small demo project showing how to populate a data repeater with a list of data and set constant default values when a new row is added with a data repeater add button. Feel free to import, review, or modify it at your convenience.[/font]

Sign In or Register to comment.