Skip to main content

Notifications

Power Apps - Building 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:
  • timl Profile Picture
    timl 33,744 on at
    OnSelect property problem of a button control
    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?
  • Verified answer
    SE-21121213-0 Profile Picture
    SE-21121213-0 6 on at
    OnSelect property problem of a button control
    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. 

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,434

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,722

Leaderboard