cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
AlanR
Helper III
Helper III

Add a sort by date option to the browse screen

Hi there,

 

I have a simple data set showing on the browse screen of my app that already has the default sort ascending descending button, the OnSelect command is UpdateContext({SortDescending1: !SortDescending1}).  I have a text field on the screen that shows the date and time a record was added via the EditScreen and I would like to add a button to allow users to sort by date and time.

 

The text field that holds the date is named "Body1", so I tried putting "UpdateContext({SortAecending:Body1})" but I get a message saying there are side effects and it cannot be evaluated, does anyone have any advice for me?

 

Thanks,

Alan

13 REPLIES 13

Hi @v-monli-msft  and @mdevaney  I am hoping one of you can maybe help me with this question.  The thread is maybe too long now and a bit confusing to review so just to clarify, I want to add a button to my apps BrowseScreen that sorts the records shown by the date field "Body1" in the screen shot attached.  Can you guide me on how best to approach this?

 

Thanks,

Alan

 

 
 
AlanR
Helper III
Helper III

Hi @v-monli-msft @Delid4ve guys, did you have a chance to look at this one from me?  I am really hoping one of you can help me with it....

this one worked for me but you have to put it on the BrowseGallery1_1. So that will sort that list by date and time no matter what the sorting button does

Hi @Nohaph , thanks for responding to this one!  Can you help me further, when you say "this one worked for me" what are you referring to?

 

Alan

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Top Solution Authors
Top Kudoed Authors
Users online (70,104)