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:
  • 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
    37,418 Super User 2026 Season 2 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 220 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 194 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 150

Last 30 days Overall leaderboard