I want to navigate to a specific item in my gallery when an icon is pressed. On the icons onselect I put Navigate(Gallery1.Selected.Title1 = "3.6 Standard and Complex projects", Fade) but it doesnt work. There is a label called title1 that contains where I want to go after selection. I want it to navigate to the gallery item that has that title. The error is that naviagate should go to a control or a screen. I need it to stay on the same screen and move to a specific gallery item. How can I do this?
1. Create a Table using OnVisible or Using Onselect of another button:
Set(MyTable,Table({Color:"3.1 Delivery Timeline"}, {Color:"3.1 Delivery and Handling Costs"}, {Color:"3.1 Location"}, {Color:"3.1 Liquidated Damages"}, {Color:"3.2 Installation"},{Color:"3.3 Customer Obligation"}, {Color:"3.3 Customer Obligation Cont."},{Color:"3.4 Training Scope"}, {Color:"3.4 Training Schedule"}, {Color:"3.4 Training: Customer Obligation"}, {Color:"3.4 Training Cost"}, {Color:"3.4 Training Certificate"},{Color:"3.5 Commissioning"}, {Color:"3.5 Commissioning and Acceptance"},{Color:"3.5 Acceptance: Sample Language"},{Color:"3.6 Standard and Complex projects"}))
2. On the Items property of the Gallery:
Filter(MyTable, Color= SelectedItem)
3. On the Navigate button:
Set(SelectedItem,"3.6 Standard and Complex projects")
------------
If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.
I am getting invalid argument type. Is this because I created the table in the items? @eka24
Replace Title with the Column Name Color:
Filter(Gallery1, Color = "3.6 Standard and Complex projects")
------------
If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.
I am not sure about how to do this I tried this on the onselect on the button Filter(Gallery1, Title1 = "3.6 Standard and Complex projects")
I am manually loading the items in the gallery with this Table({Color:"3.1 Delivery Timeline"}, {Color:"3.1 Delivery and Handling Costs"}, {Color:"3.1 Location"}, {Color:"3.1 Liquidated Damages"}, {Color:"3.2 Installation"},{Color:"3.3 Customer Obligation"}, {Color:"3.3 Customer Obligation Cont."},{Color:"3.4 Training Scope"}, {Color:"3.4 Training Schedule"}, {Color:"3.4 Training: Customer Obligation"}, {Color:"3.4 Training Cost"}, {Color:"3.4 Training Certificate"},{Color:"3.5 Commissioning"}, {Color:"3.5 Commissioning and Acceptance"},{Color:"3.5 Acceptance: Sample Language"},{Color:"3.6 Standard and Complex projects"}). Then when the icon is selected I want to navigate to 3.6 Standard and complex @eka24
Navigate() has to go to a screen; you could consider filtering the gallery with something (perhaps by setting a variable, or referencing the value of another control, etc.), which would result in the gallery having at least one item in it that meets those filter criteria.
Edit: Oops didn't mean to jump on the bandwagon of replies, didn't see others replied while I was typing mine.
The function Navigate expects a screen value as first parameter
Back and Navigate functions in Power Apps - Power Apps | Microsoft Docs
You can use the button to Filter the items Gallery and then use SetFocus function to the desired control
SetFocus function in Power Apps - Power Apps | Microsoft Docs
On the OnSelect put:
Set(SelectedItem,"3.6 Standard and Complex projects")
Then in the Items property of the Gallery:
Filter(Datasource, ColumnName = SelectedItem)
------------
If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.
WarrenBelz
146,751
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
66,091
Most Valuable Professional