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 new user group experience and if you are a leader please create your group
Check out how to claim yours today!
Test your skills now with the Cloud Skill Challenge.
We are excited to announce that Demo Extravaganza for 2021 has started!
On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks