On the Employee Time Cards page (EP305000) I’m trying to add the Customer’s Name associated with the project on the Summary tab. I created an unbound field and I tried to use the PXUnboundDefault attribute to populate the name, then added the field to the page. So I have an EPTimeCardSummary extension created with this field:
[PXString]
[PXUIField(DisplayName = "Customer Name")]
[PXUnboundDefault(typeof(Search2<BAccount.acctName,
InnerJoin<PMProject, On<BAccount.bAccountID, Equal<PMProject.customerID>>>,
Where<PMProject.contractID, Equal<Current<EPTimeCardSummary.projectID>>>>))]
public virtual string UsrCustomerName { get; set; }
public abstract class usrCustomerName : PX.Data.BQL.BqlString.Field<usrCustomerName> { }
But when I add it to the page and publish the customization, I get this strange error message after choosing a timecard. The message includes the reference number for the timecard which I don’t understand why it would.

I could easily just create the unbound field and populate it when the graph loads so it’s not like I don’t have other options, but I’m not sure why it wouldn’t work and just trying to understand why. Anyone have any thoughts?
The DAC used on the page’s summary is actually a projection of EPTimeCardSummary called EPTimeCardSummaryWithInfo, so I just extended the EPTimeCardSummary. Is the fact that this is a projection causing issues?