Hello team,
I am new to the software. I busy building my own screen.
I have added a button on my screen, and the action i want it to perform is to clear all my textbox.
Where or how do i perform the action for this.
Please i am struggling a lot.
Regards M.C.
Best answer by Naveen B
Hi
Below is a sample example to add a button in a graph.
public class TestGraph : PXGraph<TestGraph>
{
public PXAction<DACName> TestConnection;
[PXButton]
[PXUIField(DisplayName = “TestConnection”, MapEnableRights = PXCacheRights.Select, MapViewRights = PXCacheRights.Select, Enabled = false)]
protected virtual IEnumerable testConnection(PXAdapter adapter)
{
// logic here
return adapter.Get();
}
}
Hope this helps!!