If you want to add custom logic to the release button the following code will help you.
Tested with acumatica 5.30.X
if you want to do your custom action after release follow the below code
public delegate IEnumerable ReleaseDelegate(PXAdapter adapter);
[PXUIField(DisplayName = "Release", MapEnableRights = PXCacheRights.Update, MapViewRights = PXCacheRights.Update)]
[PXProcessButton]
public IEnumerable Release(PXAdapter adapter)
{
IEnumerable ret = Base.Release(adapter);
//DO YOUR CUSTOM ACTION HERE
return ret;
}
if you want to do your custom before after release follow the below code
public delegate IEnumerable ReleaseDelegate(PXAdapter adapter);
[PXUIField(DisplayName = "Release", MapEnableRights = PXCacheRights.Update, MapViewRights = PXCacheRights.Update)]
[PXProcessButton]
public IEnumerable Release(PXAdapter adapter)
{
//DO YOUR CUSTOM ACTION HERE
return Base.Release(adapter);;
}
Comments