Hi @OneWinPlease
If you have a Field that exists like an owner having the email or something
Just wrap your entire with, with a with.. Wow I actually typed that.
UGGGG I deleted my code snipper gtrr
The below uses a button to toggle show yours and show all. The words ON the label is what it WILL be if you click it not what it is currently
In your Items, the switch just either uses your current code, or filters your current code based on an Email column I assumed you have.
Using a button
Screen.OnVisible
Set(_buttonLabel, "Show Mine Only"); // This means its CURRENTLY showing all
On your button (and you can do dropdowns whatever, you asked about buttons)
Set the Button Text to
_buttonLabel
Set the Button OnSelect
If(_buttonLabel = "Show Mine Only",
Set(_buttonLabel,"Show All),
Set(_buttonLabel, "Show Mine Only")
);
Your Items Property
Switch(_buttonLabel,
"Show Mine Only", // its currently showing all
Copy and Paste your stuff here
);
,
"Show All", // means its showing JUST yours. remember clicking the button swap its
With(
{ MyData:
Copy and Paste your stuff here
},
Filter(MyData, Email = User().Email);
);
);
If I have helped you, I would really appreciate if you please Mark my answer as Resolved/Answered, and give it a thumbs up, so it can help others
Cheers
Thank You
Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
https://gernaeysoftware.com
LinkedIn: https://www.linkedin.com/in/michaelgernaey