With(
{
x: Filter(
SQL_Products,
StartsWith(
cr539_productname,
txtSearch_3.Text
)
)
},
With(
{
x: SortByColumns(
x,
Switch(
var_sortColumn,
"Id",
"cr539_id",
"Product",
"cr539_productname",
"Package",
"cr539_package"
),
If(
var_sortDir = "Ascending",
SortOrder.Ascending,
SortOrder.Descending
)
)
},
With(
{
x: Filter (
x,
If(
IsBlank(ComboBox1_9.Selected.Value),
true,
ProductName in ComboBox1_9.SelectedItems.Value
),
If(
IsBlank(ComboBox1_10.Selected.Value),
true,
Package in ComboBox1_10.SelectedItems.Value
)
)
},
x
)
)
)
No comments:
Post a Comment