cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
saturation
Resolver I
Resolver I

SortColumn not working on Lookup field data - incorrect syntax?

Hi, I have an app and when someone clicks on one of the gallery header columns, in this case "State", it does not sort, but it should (text columns do sort correctly). State is a lookup table and is not the primary table being displayed. I have tried many different combinations to see if it works, no luck. It actually clears out all data in the gallery list (which makes sense). Here are just a few of the combinations I've tried
 
- Set(SortColumn, "State"); UpdateContext({SortColumn: "State", SortDescending: !SortDescending})
 I've tried with "State.Value" "state.name" many different combinations and no luck
 
FYI - my text columns work fine with the sorting. It's lookups and other field types where I'm struggling. But let's start with a lookup. Any help appreciated.
1 REPLY 1
RezaDorrani
Dual Super User
Dual Super User

@saturation 

 

same as your other post

https://powerusers.microsoft.com/t5/Building-Power-Apps/SortColumn-not-working-on-Lookup/m-p/543276#...

 

--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

Thanks,
Reza Dorrani, MVP
YouTube
Twitter

Helpful resources

Announcements
October Events

Mark Your Calendars

So many events that are happening this month - don't miss out!

Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Top Solution Authors
Top Kudoed Authors
Users online (2,931)