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 it out!
Check it out!
Fill out a quick form to claim your user group badge now!
Find out where you can attend!
Features releasing from October 2019 through March 2020
The largest Power BI, Power Platform, and Data conference in New Zealand