Hi all,
So I am currently working on an ICT Asset register for our organisation and want to see if it is possible to filter down a Gallery based on both Single Line search and Barcode Reader Search.
Currently, the single-line search is working fine (see code below)
SortByColumns (
Filter (
[@'ICT Assest Manager'],
StartsWith (
Title,
TextSearchBox1.Text
)
),
"Title",
If (
SortDescending1,
SortOrder.Descending,
SortOrder.Ascending
)
)
I then attempted to update the code to pull the data from the barcode reader scan. (included below)
SortByColumns(
Filter(
[@'ICT Asset Manager'],
Or(
StartsWith(Title, TextSearchBox1.Text),
Title = BarcodeScanner1.Value
)
),
"Title",
If(SortDescending1, SortOrder.Descending, SortOrder.Ascending)
)
Alternatively, I also tried using the barcode scan to fill in the data to the search field but came again came across the same issue
TextSearchBox1 = BarcodeReader1.Value
Unfortunately, I am coming across an error with BarcodeScanner1.Value as shown in the screenshots attached. Has anyone else managed to successfully carry this out?
For context I am using SharePoint Lists as my backend for Power Apps.
(p.s. I just realized the spelling mistake with the table name so I've gone ahead and fixed it!)
Thanks,
Matthew