Hi All,
I have a gallery of items that OnSelect leads to a detailed information screen that allows users to accept the item. Upon acceptance, the status of the item will change from 'Undelivered' to 'In Progress'. When this happens, the gallery of items visibility will be hidden from the user. The code is shown below. While my intent is to hide from the current user. The outcome is that it hides for all users! How do I isolate the visibility of the gallery items to each user's actions?
Thanks in advance!
Alois
Solved! Go to Solution.
Hi @Alois ,
i guess you can do something like this,
in the visible property of item
ThisItem.status.value = "In Progress" && ThisItem.'Modified By'.Email = User().Email
Hi @Alois ,
Do you want to hide some items only for current user?
Could you tell me the details of the hiding rule?
Do you have a column with email value and if someone accept activity, this field will update with the person who accept the activity?
Or do you want to hide the accepted activities temporarily when been accepted?
Firstly, I suggest you use Filter function to filter items based on different situations, not set gallery's Visible which will hide the whole gallery.
1)In first situation, you could set gallery's Items like this:
Filter(tablename,Not(status.value = "In Progress" ,'Modified By'.Email = User().Email))
2)In second situation, you could set like this:
set the accept button's OnSelect:
Collect(accepteditems,ThisItem.ID)
set the gallery's Items:
Filter(tablename,Not(ID in accepteditems.ID))
Best regards,
Hi @Alois ,
i guess you can do something like this,
in the visible property of item
ThisItem.status.value = "In Progress" && ThisItem.'Modified By'.Email = User().Email
Hi @Alois ,
Do you want to hide some items only for current user?
Could you tell me the details of the hiding rule?
Do you have a column with email value and if someone accept activity, this field will update with the person who accept the activity?
Or do you want to hide the accepted activities temporarily when been accepted?
Firstly, I suggest you use Filter function to filter items based on different situations, not set gallery's Visible which will hide the whole gallery.
1)In first situation, you could set gallery's Items like this:
Filter(tablename,Not(status.value = "In Progress" ,'Modified By'.Email = User().Email))
2)In second situation, you could set like this:
set the accept button's OnSelect:
Collect(accepteditems,ThisItem.ID)
set the gallery's Items:
Filter(tablename,Not(ID in accepteditems.ID))
Best regards,
Stay up tp date on the latest blogs and activities in the community News & Announcements.
Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST
Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.
User | Count |
---|---|
209 | |
194 | |
82 | |
58 | |
38 |
User | Count |
---|---|
303 | |
249 | |
120 | |
83 | |
55 |