Hi everyone,
I'm trying to figure out how to filter the gallery so that the current user only sees its own data entries.
I've read many posts in the forum but none was able to provide me the correct solution.
This is what I did so far:
Set(VarUser; User()) //declared in App
SortByColumns( //in Items in Gallery
Search(
Filter(
[@MonthlyStatement];
"EmployeeName" = VarUser.FullName);
TextSearchBox1.Text;
"crb06_MonthlyStatementID");
"crb06_MonthlyStatementID";
If(SortDescending1; Descending; Ascending)
)
This shows me no results at all even though the entry was successful.
This is the code without the filter and it's working properly:
SortByColumns( //in Items in Gallery
Search(
[@MonthlyStatement];
TextSearchBox1.Text;
"crb06_MonthlyStatementID");
"crb06_MonthlyStatementID";
If(SortDescending1; Descending; Ascending)
)
My table from which I'm retrieving the data looks like this:
| MonthlyStatementID | EmployeeName | Project |
| 0001 | Jack Wick | Data security |
The data is connected via Dataverse.
Any suggestion on what I could try?
Thanks!