Notifications
Announcements
I need help with Power Apps. It is a news application that receives a list of news, displays the list, and when someone selects a news item, it shows the details of the selected news. There are three screens, on the screen called "Noticias" there is a gallery: "Lista Noticias". The code for the gallery is: ++++++++++++++++++++++++++ SortByColumns( Filter( [@GeparNews]; (IsBlank(selectedTag) || CountIf(TAGS; Value = selectedTag) > 0) && (IsBlank(TextSearchBox1.Text) && StartsWith(TÃtulo; TextSearchBox1.Text) || StartsWith('Modificado por'.DisplayName; TextSearchBox1.Text) || StartsWith(Empresa.Value; TextSearchBox1.Text) || StartsWith(Ticker.Value; TextSearchBox1.Text) ) ); "Modified"; If(SortAscending1; SortOrder.Ascending; SortOrder.Descending) ) ++++++++++++++++++++++++++ and I also have an icon to sort the list, which in the OnSelect property receives the formula: UpdateContext({SortAscending1: Not(SortAscending1)}) ++++++++++++++++++++++++ The problem is when I touch the sort icon, the view moves with the selected item to the top or the end, but I want the view to stay at the top. ps.: In Brazil we use ";" not ",'
OnSelect
UpdateContext({selectedItem: ListaNoticias.Selected}); UpdateContext({SortAscending1: Not(SortAscending1)}); Reset(ListaNoticias);
UpdateContext({SortAscending1: Not(SortAscending1)}); Set(ListaNoticias.Selected, Blank()); Reset(ListaNoticias);
UpdateContext({SortAscending1: Not(SortAscending1)}); Select(lblScrollTop)
UpdateContext({SortAscending1: Not(SortAscending1)});; Set(ListaNoticias.Selected, Blank());; Reset(ListaNoticias);;
UpdateContext({SortAscending1: !SortAscending1});; UpdateContext( { selectedItem: LookUp( [@GeparNews]; ID = First(ListaNoticias.AllItems).ID ) } );;
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 796 Most Valuable Professional
Michael E. Gernaey 327 Super User 2025 Season 2
Power Platform 1919 268