Hi ,
I am fairly new to power apps and I have the following question:
I have a DataTable with multiple columns and I am able to perform a search and sort on all columns using this code:
SortByColumns(
Filter(
'Pending Receipts',
(IsBlank(SearchTextBox.Text) || StartsWith(
'PR #',
SearchTextBox.Text
) || StartsWith(
'Req. Office',
SearchTextBox.Text
) || StartsWith(
'Title (Title0)',
SearchTextBox.Text
) || StartsWith(
'Vendor Name',
SearchTextBox.Text
) || StartsWith(
'Receipt Status',
SearchTextBox.Text
) || StartsWith(
'Order Contact',
SearchTextBox.Text
) || StartsWith(
'Order Type',
SearchTextBox.Text
) || StartsWith(
'Receipt Status',
SearchTextBox.Text
) || StartsWith(
'Email Sent'.Value,
SearchTextBox.Text
) || StartsWith(
Response,
SearchTextBox.Text
) || StartsWith(
Status.Value,
SearchTextBox.Text
))
),
varSortColumn,
varSortDirection
)
I have been asked to add a dropdown based on the Order Type, so I added a dropdown named drpdwnOrderType, the items on my dropdown is like this: Distinct('Pending Receipts','Order Type') so that the dropdown shows unique values.
I then tested this filter for the dropdown like this (items in datatable)
Filter('Pending Receipts', 'Order Type'= drpdwnOrderType.Selected.Result) and this works just fine, but now I have no idea where exactly I need to insert this extra filter in the code listed above so that I can also continue to perform my search and sorting on my different columns within my datatable.
Any help is most appreciated.