Skip to main content
Question

How to Override the PMTaskTotal.CuryExpense Field Value in the Project Screen?

  • December 3, 2025
  • 0 replies
  • 12 views

Sagar Greytrix
Captain II
Forum|alt.badge.img+3

Hi Team,


I want to override the PMTaskTotal.CuryExpense field, which is available on the Project screen.

 

I have tried several events such as RowSelected, RowSelecting, RowPersisting, RowPersisted, and RowInserted, but I am still not getting the expected result. The field value is not changing.

 

Currently, I have added a hardcoded value just to test the event, but it still doesn’t update.

Can someone please assist me with how I can customize or override this field properly?

 

using PX.Data;

namespace PX.Objects.PM
{
    public class ProjectEntry_Ext : PXGraphExtension<PX.Objects.PM.ProjectEntry>
    {
        #region Event Handlers

        // This will modify the value when it's selected/displayed
        protected void PMTaskTotal_CuryExpense_FieldSelecting(PXCache cache, PXFieldSelectingEventArgs e)
        {
            if (e.Row is PMTaskTotal row && e.ReturnValue != null)
            {
                decimal currentValue = (decimal?)e.ReturnValue ?? 0m;
                e.ReturnValue = currentValue + 1000m;
            }
        }

        #endregion
    }
}