Announcements
If(isEmpty(OwnerSearch) and isEmpty(NarrativeSearch), //dont sort, If(!isEmpty(OwnerSearch), If(!isEmpty(NarrativeSearch), //sort with both fields, //sort with just owner ), //sort with just narrative )
With( { _Sort1: If( !IsEmpty(OwnerSearch), "Owner", "ID" ), _Sort2: If( !isEmpty(NarrativeSearch), "Narrative", "ID" ), _Data: YourCurrentGalleryItemsHere }, SortByColumns( _Data, _Sort1, SortOrder.Ascending, _Sort2, SortOrder.Ascending ) )
Filter( DataSource, Len(OwnerSearch.Text) = 0 || StartsWith(Owner, OwnerSearch.Text), Len(NarrativeSearch.Text) = 0 || StartsWith(NarrativeSearch, NarrativeSearch.Text) )
SortByColumns( Filter( MyDataSource, IsBlank(txtOwner.Text) || StartsWith(Owner, txtOwner.Text), IsBlank(txtNarrative.Text) || StartsWith(Narrative, txtNarrative.Text), IsBlank(txtCategory.Text) || StartsWith(Category, txtCategory.Text), IsBlank(txtStatus.Text) || StartsWith(Status, txtStatus.Text) ), "Modified", Descending )
IsBlank(EventTypeFilter.Selected.Value) || EventTypeFilter.Selected.Value in Text(event_type)
Len(EventTypeFilter.Selected.Value) = 0 || EventTypeFilter.Selected.Value = event_type.Value
With( { _Data: Filter( DataSource, Len(OwnerSearch.Text) = 0 || StartsWith(Owner, OwnerSearch.Text), Len(NarrativeSearch.Text) = 0 || StartsWith(NarrativeSearch, NarrativeSearch.Text) ) }, Filter( _Data, Len(EventTypeFilter.Selected.Value) = 0 || event_type.Value in EventTypeFilter.SelectedItems ) )
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.
Jump in, show your community spirit, and win prizes!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Valantis 424
WarrenBelz 355 Most Valuable Professional
11manish 290