I need to create a method that is triggered by a button. I already have the button mapped, and I just need to complete the function, but I've encountered some complications.
For example, I want to filter only the ones marked in red to show only '6', and if I press again, it should return to its original state. This data is in string format.
![](https://uploads-us-west-2.insided.com/acumatica-en/attachment/240c2304-7569-4d24-af1f-b4c7aab3778f.png)
[PXButton(CommitChanges = true)]
[PXUIField(DisplayName = "FilterGoformz")]
protected void filterGoformz()
{
//Logic
}
Thank you for your attention