Hello Gang,
I am trying to hide 3 buttons of Acumatica as I have added 5 custom buttons to either replace or add more functonality. Out of these 3 Acumatica buttons 1 (releaseFromHold) is created by acumatica in Base Graph and the other 2 (approve and reject) in one of Acumatica’s own graph extensions. Using RowSelected event I’m trying to hide these 3 buttons. My code hides the one from the base graph (releaseFromHold) but the other two (approve & reject) remain visible. Why? Here is my little event code:
protected virtual void APInvoice_RowSelected(PXCache cache, PXRowSelectedEventArgs e)
{
var row = e.Row as APInvoice;
if (row == null) return;
APInvoiceEntry_ApprovalWorkflow BaseAM = Base.GetExtension<APInvoiceEntry_ApprovalWorkflow>();
Base.releaseFromHold.SetVisible(false);
BaseAM.approve.SetVisible(false);
BaseAM.reject.SetVisible(false);
}
Best answer by markusray17
View original