Hi
I've been messing arround with PowerApps, and I just don't get how it works. This is what I'm current;y trying to do.
I have a list of people. Each people has a few values, like Name, email, etc. And there is a value called NumberOfStrikes, which is a number.
In the details view of the person, I placed a button with the "+" sign next to the NumberOfStrikes vlaue. I want NumberOfStrikes to increase by one every time I press the button (and ideally, to save the update right away to the Data Source). So far I can't beguin to figure out how to do this.
I can't even change the text of the button when I press it. I tried using a formula on the OnSelect:
ButtonAdd.Text = "New Text"
I tried:
UpdateContext({Text:"New Text"})
But nothing I do has any result.
Any help would be apreciated.
Solved! Go to Solution.
Hi @JosePerez,
If here you are working with the Detail screen, then the formula under the OnSelect property of the '+' Sign should be:
UpdateContext({Input:Value(BrowseGallery1.Selected.NumberOfStrikes)+1});Patch(PeopleList,BrowseGallery1.Selected,{NumberOfStrikes:Value(Input)})
See if it would work in your scenario,
and if you have any further questions, please post back.
Regards,
Michael
Hi @JosePerez,
If here you are working with the Detail screen, then the formula under the OnSelect property of the '+' Sign should be:
UpdateContext({Input:Value(BrowseGallery1.Selected.NumberOfStrikes)+1});Patch(PeopleList,BrowseGallery1.Selected,{NumberOfStrikes:Value(Input)})
See if it would work in your scenario,
and if you have any further questions, please post back.
Regards,
Michael
User | Count |
---|---|
176 | |
111 | |
87 | |
44 | |
42 |
User | Count |
---|---|
229 | |
114 | |
114 | |
72 | |
67 |