Hello!
We're currently exploring powerapps and we're trying some different methods to create the app we need.
In essence, the operation we want to do is make a report and add a number of items to each report. The number of items can vary, sometimes it's 10, some other time it's 25. Each item has its own fields that need to be filled, but the item fundamentally stays the same.
Currently, we have a working example by using a gallery and placing all the items underneath each other and eventually using patch to create the report and add all the items to it with one button. The problem with this is that when we have a large number of items the patch gets very slow.
However, this time we want to see if making a form for each item and saving it to the CDS in-between items would shave some time off the process, but I'm not sure how I would be able to call the form X amount of times dynamically. My first guess would be to use a list or array, count the items and use the index but I don't think powerapps works that way.
We have a template for each report that contains the items that need to be filled in.
For example:
A 'Standard Safety' report template would have items for hardhats, safety shoes, harnesses, gloves, etc, and as such the forms would have to read the items contained within and make a form for each item dynamically.
How would I go about looping through items like this?
Thanks in advance.
Solved! Go to Solution.
assuming your checklist items are in a gallery, you could do something like this
https://microsoft-bitools.blogspot.com/2020/03/power-apps-get-next-item-from-gallery.html
this is also where I've used a model driven app. model driven apps have the native ability to navigate between records in a view.
assuming your checklist items are in a gallery, you could do something like this
https://microsoft-bitools.blogspot.com/2020/03/power-apps-get-next-item-from-gallery.html
this is also where I've used a model driven app. model driven apps have the native ability to navigate between records in a view.
User | Count |
---|---|
250 | |
249 | |
82 | |
45 | |
29 |
User | Count |
---|---|
342 | |
261 | |
122 | |
65 | |
58 |