Hello.
I have few different Browse screens and each of them shows items with different Status (filter by status value)
All of them I made as a copy of default Browse screen.
But when I select an item on these screens it follows me on wrong item.
on the default BrowseScreen1 it works correctly.
Solved! Go to Solution.
Add this code before the Navigate function in the OnSelect property:
Set(varRecordID, ThisItem.ID)
Now go to your form displaying the wrong information and put this code in the Item property
LookUp(your_datasource_name, ID=varRecordID)
---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."
What happens when you click it? And what is the formula for the parent's (gallery) onSelect.
@ppl
Instead of looking at the code in the OnSelect property of the icon you need to look at the OnSelect property of the gallery. It will need to be changed for each gallery you copied. Select(Parent) refers to the OnSelect property of the Gallery.
If you need help be sure to post a screenshot here.
---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."
OnSelect is Navigate(DetailScreen1, ScreenTransition.None) in all my Screens galleries.
When I click an arrow it follows me to the first item in my list, and not to that which I choose.
Add this code before the Navigate function in the OnSelect property:
Set(varRecordID, ThisItem.ID)
Now go to your form displaying the wrong information and put this code in the Item property
LookUp(your_datasource_name, ID=varRecordID)
---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."
@ppl It is always taking you to the details screen of the first item because your item property on the detail screen is probably tied to only one screen, probably the first one that you created.
However, what you want to do is change the items property dynamically depending on which item is selected on any screen. Storing the selected item in a variable and using that variable on the details screen's form's item property should work.
1. Use the formula below on the right arrow icon on each browse screen:
Navigate(DetailScreen1, ScreenTransition.None, {(SelectedItem: ThisItem)});
2. Use the formula below on the details screen's form's items property:
SelectedItem
Best,
Zabi
Mark this post as a solution, or kudo it if you found it be helpful. You can choose more than multiple answers as solutions, including your own answer. 🙂
Hello again.
@mdevaneyyour solution works correctly first time but after some tests it works time to time. Sometimes I see something like this when I choose an item
where I need to define this variable?
I put this in my Arrow
and this to an Item property in my DetailScreen
but it has red underline
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 |
---|---|
205 | |
187 | |
77 | |
49 | |
37 |
User | Count |
---|---|
318 | |
262 | |
122 | |
73 | |
60 |