Hello,
I would like to have a thumbs up/like feature into a gallery on one of my screens.
Here is a bit of background about the gallery, it its linked to a SharePoint List, which logs maintenance items, so a user submits a maintenance item and then all submissions are shown in the gallery. Id like to have a thumbs/like function in the gallery, so users can like them, for example if they have also the same maintenance issue.
I have created two columns in my SP list ‘Thumbs’ (I’d like this to add up the numbers of like for each particular item and ‘ThumbsUser’ (to log the email of the user who’s selected the thumbs up icon).
Example “Item1” in my SP list would show how many likes it had in the ‘Thumbs’ column, and ‘ThumbsUser’ would list all the emails in one cell for that gallery item.
I found a solution on here similar to what I am trying to achieve, here is the link https://powerusers.microsoft.com/t5/Building-Power-Apps/Data-table-thumbs-up-like/td-p/687570
I am very new to PowerApps so treat me as a complete novice 😊
I hope this helps, thanks.
It's really not difficult.
When someone clicks on your Thumbs up icon, the OnSelect formula would look something like this.
Patch(DataSource, Gallery1.Selected,
{
Thumbs: Thumbs + 1
ThumbsUser: ThumbsUser & "; " & User().Email
})
If you want to get fancy (make sure your ThumbsUser column is multiple lines of text, you can do this. The 'Char(10)' will give you a line break in between the email addresses
Patch(DataSource, Gallery1.Selected,
{
Thumbs: Thumbs + 1
ThumbsUser: ThumbsUser & "; " & Char(10) & User().Email
})
User | Count |
---|---|
255 | |
114 | |
95 | |
48 | |
38 |