I am trying to use a CDS view as the items source for a gallery, then apply a filter function in the app based on user input.
My formula in the gallery's Items property:
Filter('Entity Name', 'Entity Name (Views)'.'View Name', 'Record Date' >= 'Date Picker Control'.SelectedDate)
Currently, the formula erroneously yields no results. If I remove the Date test from the formula, I get see results based on the view's sort and filter parameters, which I pre-set in the CDS View Designer. Those view-based sort/filter parameters are based on different fields than those being tested by any app controls. I tried swapping the Date test for a different field/data type/control, and had the same issue.
What's weird is that, when I set the gallery's items source as the CDS view, I get this error - "The specified record was not found. Server response: userid is empty guid!" Even when the gallery is successfully displaying records, using the view's preset sort/filter parameters, this error comes up. It can't be a delegation issue because I'm querying <500 records.
What gives?