I added UDFs to the EP305000 screen in the Details Tab. You can see here that the data is saving to the DB as expected. (Customer, MEP ID, Advisor ID, Product Line ID)
I want to take the data after the hyphen in the Customer number field and put it into the Plan ID UDF.
When I added the fields, it created a DAC Extension in PMTimeActivity.
In the Project Editor, if I choose to add a handler on the Field Updated event for the Customer field,
It creates a graph Extension as here:
So, the DAC extension is as follows as
public class PMTimeActivityExt : PXCacheExtension<PX.Objects.CR.PMTimeActivity>
but the graph extension is
public class TimeCardMaint_Extension : PXGraphExtension<TimeCardMaint>
This obviously won’t compile as the cache is not PMTimeActivity, but rather it is EPTimecardDetail.
PMTimeActivityExt myExt = PXCache<EPTimecardDetail>.GetExtension<PMTimeActivityExt>(row);
How can I get a reference to the DAC Extension when the cache is different from what the graph is showing the cache should be?
Best answer by Joe Schmucker
View original