I want to create a reusable tracking component. Click a button, collect a timestamp, click the button again, collect another timestamp, etc.
I don't know how to approach this problem since "...PowerApps doesn't support collections in components".
Is there a way to:
Would I use a Custom Output Property here and variables?
I created a Component and inside that added a button. I wrote "Collect(TimeStamp,Now())" on the OnSelect method of the button. Also I used the components in multiple screen and it is working. I also exported the component and imported in another App and it is working. May be you try using collect command in your component.
Hi @seadude ,
Do you want to set a control's OnSelect inside component to Collect collection?
I've made a similar test and found that it is feasible.
Please note that component is an experimental control, so its function is improving.
Once in a while, its function will update. The doc that you listed wrote six months ago, some new functions may not update.
Here's my test for your reference:
1)Create a component, set a button 's OnSelect:
2)Insert this component in screen1 and screen2
3)Set a gallery's Items to this collection: a
4)Run this app
If I click the button in screen1 and click the button is screen2, the collection will update successfully.
Check out the on demand sessions that are available now!
Stay up tp date on the latest blogs and activities in the community News & Announcements.
Features releasing from October 2020 through March 2021
Check out the Power Platform Community Highlights