web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / OnSelect property prob...
Power Apps
Answered

OnSelect property problem of a button control

(1) ShareShare
ReportReport
Posted on by 6
My formula bar of OnSelect cproperty of Button control to navigate a screen as new mode as hereby below;
 
Set(varCurrentItem,Blank());
Set(varFormMode,FormMode.New);
Set(varLast,First(SortByColumns(DCCLog_Corrs,"cr90b_newindex",SortOrder.Descending)).NewIndex);// which is better ? max or this one?
Notify(varLast);//test if correct value?
Navigate('Correspondance-Add');
 
I am testing in Power Apps Studio session; working for Canvas and Desktop optioans while not working for Mobile and Tablet (portrait) options.
 
Any one to advise how to correct it?
 
Thanks in advance.
Suleyman Erarslan
 
Categories:
I have the same question (0)
  • Verified answer
    SE-21121213-0 Profile Picture
    6 on at
    Sorry for the post ,it is working. I realized that I had designd another button for mobile screen and not paste same formulas for its OnSelect property. 
  • timl Profile Picture
    36,682 Super User 2026 Season 1 on at
    Hi 
     
    >> Set(varLast,First(SortByColumns(DCCLog_Corrs,"cr90b_newindex",SortOrder.Descending)).NewIndex);// which is better ? max or this one?
     
    In answer to the above question, the approach you're using now (ie, First/Order by descending) is better.
     
    Can you clarify what isn't working on mobile and tablet? Is it not finding the record, or is it not navigating to the new screen?
     
    Can you confirm that you've published your app? I assume you're using the mobile player, rather than opening the app in a browser on the mobile and tablet?

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.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Haque Profile Picture

Haque 103

#2
WarrenBelz Profile Picture

WarrenBelz 82 Most Valuable Professional

#3
wolenberg_ Profile Picture

wolenberg_ 67 Super User 2026 Season 1

Last 30 days Overall leaderboard