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]
Howdy, Stranger!
Categories
- 4.2K All Categories
- 64 General
- 11 Training
- 201 Installation / Setup
- 1.1K Flows
- 106 Rules
- 261 Administration
- 212 Portal
- 490 General Q & A
- 694 Forms
- 333 Reports
- 3 Designer Extensions
- 47 Example Flows
- 51 CSS Examples
- 1 Diagram Tile
- 7 Javascript Controls
- 178 Pages
- 5 Process Mining
- New Features
- 178 Datastructures
- 69 Repository
- 221 Integrations
- 28 Multi-Tenant
- 27 SDK
- 78 Modules
- 56 Settings
- 25 Active Directory
- 12 Version 7
- 35 Version 8
- 76 Lunch And Learn Questions