I am getting the “GetItemExtension failed.” error while changing the value of the Group by Task checkbox in revenue budget tab of Projects screen (PM301000).
I am trying to add RowSelected event to implement my logic to display my custom column.
protected void RevenueBudgetFilter_RowSelected(PXCache cache, PXRowSelectedEventArgs e)
{
RevenueBudgetFilter row = (RevenueBudgetFilter)e.Row;
if (row == null) return;
if (row.GroupByTask ?? false)
{
PXUIFieldAttribute.SetVisible<PMRevenueBudgetExt.usrField>(this.Base.RevenueBudget.Cache, null, false);
}
else
{
PXUIFieldAttribute.SetVisible<PMRevenueBudgetExt.usrField>(this.Base.RevenueBudget.Cache, null, true);
}
}
Best answer by darylbowman
View original