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

Notifications

Announcements

Community site session details

Community site session details

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

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,383 Super User 2025 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 793 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 333 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard