Hi @LeeRoy57 Here is the code to bring the Customer Name in “Employee Time Card” screen. Add the database filed in the database for the Customer Name Graph Extension:public class TimeCardMaint_Extension : PXGraphExtension<TimeCardMaint> { #region Event Handlers protected virtual void EPTimeCardSummaryWithInfo_ProjectID_FieldUpdated(PXCache cache, PXFieldUpdatedEventArgs e, PXFieldUpdated InvokeBaseHandler) { if(InvokeBaseHandler != null) InvokeBaseHandler(cache, e); var row = (EPTimeCardSummaryWithInfo)e.Row; if (row != null) { PMProject objPMProject = PXSelect<PMProject, Where<PMProject.contractID, Equal<Required<PMProject.contractID>>>>.Select(Base, row.ProjectID); if (objPMProject != null) { Customer obj = PXSelect<Customer, Where<Customer.bAccountID, Equal<Required<Customer.bAccountID>>>>.Select(Base, objP
Hi NaveenSorry I please need your assistance again as I need to change the field one more time.At the moment the field is displaying the customer ID with the part of the customer abbreviation in front but I would please like to load the customer full name in therePlease see my picturesHere is what you helped me with to load the ID with the abbreviation I would please like your assistance again to replace that ID with the full name Please advise me on thisThank youRegards,Lee’Roy
Hi NaveenThank you very much for your help!It’s much appreciated.Hope you have a great day Regards,Lee’Roy
Hi NaveenPlease see my attached customization.I can’t seem to get this piece of code correct please assist me so that the customer name displays in grid and not the ID.Thank you very much
Hi NaveenThank you very much this is exactly what I am trying to accomplish.I please need some further assistance from you with adding the DAC extension in my customization.Below you will see I have already added the DAC extension for the TimeCardMaint class and added the code that you have supplied. Please advise me hoe I should add the EPTimeCardSummaryWithInfo DAC so that it can be linked to the page and available.Here I have added the EPTimeCardSummaryWithInfo class under DATA ACCESS tab and created the new Customer ID field Then under the CODE tab I have added the following code so far as in your code Please advise me where I should add the code for the EPTimeCardSummaryWithInfoExt class so that the pages picks it up when publishing?Please see my error at the moment when I publish the customization Please assist me with thisThank you very much in advance
Hi NaveenThank you for your replyI would like to add the field to the Employee Time Card page If you search for a Project on the grid the field that I would like to add is in the possible projects list I would please like some help to display this field in the grid also next to the project column
Already have an account? Login
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.
Sorry, we're still checking this file's contents to make sure it's safe to download. Please try again in a few minutes.
Sorry, our virus scanner detected that this file isn't safe to download.