you could just use the UI and modify the automation steps to control the display of actions - no need for code. As for code you just need to use the action to SetEnabled()
– Brendan
You can use following line of code to hide button pOSupplyOK, which has title PO Link:
Base.Actions["pOSupplyOK"].SetVisible(false);
You can find necessary value of string via looking into source code like this:
Acumatica creates array of each button, and indexes it by string name of action.
0
votes
you can put it on the DAC_RowSelected event and make the buttons not visible by using
if(row.DocumentType?(I can't remember the field) == TransferOrderType) //just a pseudocode.
{
Base.ButtonVariableNameHere.SetVisible(false);}
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkRead more