cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Anonymous
Not applicable

Collections - best time and place to initiate?

Hi,

I am back again with this old chestnut after some long cogitating and reflection - cant put it off any longer and am still not clear how to achieve it.

With in my app I wish to collect the value of 167 radio buttons.

A filter will be run to count how many have a value and how many are "Yes" from a gallery?

With each radio selected - the count will change in real time - and I hope be able to be seen in a label and latter saved on upload?

At what stage is the best to initiate the collection?

When the screen becomes visible?

Can  the collection be refreshed - say a refresh at each radio button if the collection is created at screen visible.

 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Collections - best time and place to initiate?

Hi @Anonymous ,

 

Yes, you can create the collection in the OnStart property of the app and set the collection as the data source of a gallery control. 

 

You can use ClearCollect to delete all the records from the old collection created with OnStart and then recollect the values after you change all the radio buttons to the same collection. 

 

For more information, please have a look at:

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-clear-collect-clearcollect

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/create-update-collection

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Community Support Team
Community Support Team

Re: Collections - best time and place to initiate?

Hi @Anonymous ,

 

Yes, you can create the collection in the OnStart property of the app and set the collection as the data source of a gallery control. 

 

You can use ClearCollect to delete all the records from the old collection created with OnStart and then recollect the values after you change all the radio buttons to the same collection. 

 

For more information, please have a look at:

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-clear-collect-clearcollect

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/create-update-collection

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors
Users Online
Currently online: 324 members 5,989 guests
Please welcome our newest community members: