The below event works fine when the UI button is pressed, however when a business event calls it the PressButton() function returns a NullRefernceException. I can not figure out why. the exception stack is at PX.Data.PXAction`1.<Press>d__38.MoveNext() at PX.Data.GraphHelper.PressButton(PXAction action, PXAdapter adapter) at GPGeneral.PM.PMTaskEntry_Ext.SendPendingNotifications(PXAdapter adapter) in C:\Program Files\Acumatica ERP\ACU-1\App_Data\Projects\GPGeneral\GPGeneral\PM\Task\PMTaskEntry_Ext.cs:line 511 at PX.Data.PXAction`1.RunHandler(PXAdapter adapter) at PX.Data.PXAction`1.<Press>d__38.MoveNext() public PXAction<PMTask> sendPendingNotifications; [PXUIField(DisplayName = "Send Pending Notifications", MapEnableRights = PXCacheRights.Update, MapViewRights = PXCacheRights.Select, Enabled = true)] [PXButton(CommitChanges = true, Category = "Notify", Connotation = PX.Data.WorkflowAPI.ActionConnotation.None)]//, ImageKey = Sprite.Main.P
I am trying to make some changes to the TimeCardMaint screen. My goal is to join and load both the PMTimeActivity and CRActivity in one projection while being able to persist both.However when I hit save PMTimeActivity is persisted while CRActivity is not, I get no errors so I am confused as what to do next. Can you please advise. Attached is the projection EPTimecardDetail and below is the view in the DAC. [PXViewName("Time Card Detail")] public PXSelect<EPTimecardDetail, Where<PMTimeActivity.trackTime, Equal<True>>, OrderBy<Desc<EPTimecardDetail.date>>> Activities; Also I have reviewed Understanding Acumatica's PXProjection Attribute | Acumatica Cloud ERP several times.
Hello, I have added two views to the PMTaskEntry, all works except when I try and delete the PMTask via the UI. I get the following exception.Collection was modified; enumeration operation may not execute. at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource) at System.Collections.Generic.List`1.Enumerator.MoveNextRare() at PX.Web.UI.PXCallbackManager.GetCallbackResultInternal(PXCallbackResultMethod resultMethod)I think it has to do with the views trying to refresh while the row is being deleted, but I am not sure.I appreciate the help, thanks in advance. public class PMTaskEntry_Ext : PXGraphExtension<PX.Objects.PM.ProjectTaskEntry> { public static bool IsActive() => (true); #region Cost Budget //[PXFilterable(new Type[] { })] [PXDependToCache(typeof(PMTask))] public PXSelect<PMCostBudget, Where<PMCostBudget.projectID, Equal<Current<PMTask.projectID>>, And<
I would like the standard status popup to show while a long running operation is executing. How do I go about this?I thought placing the operation inside PXLongOperation.StartOperation(Base, delegate {...}); would do the trick but nothing changes. Thanks
Trying to set the customer based on the selection of a project. However I get a validation error. public class SOOrderEntry_Extension : PXGraphExtension<PX.Objects.SO.SOOrderEntry> { protected void (Events.FieldUpdated<SOOrder, SOOrder.projectID> e) { if (e.Row == null) return; SOOrder so = (SOOrder)e.Row; if(so.CustomerID == null && so.ProjectID != null) { var prj = PMProject.PK.Find(e.Cache.Graph,so.ProjectID); e.Cache.SetValue<SOOrder.customerID>(e.Row, prj.CustomerID ?? null); } }}results in when the project is selected. I have tried both SetValueExt and SetValue, SetValueExt causes the ProjectId to be set to null or “X”, while SetValue works as intended with the exception of the validation error.The validation error occurs in both cases.Unselecting the project, and then reselecting the project causes the error to go away. How can I request the
During or shortly after the Release action for a ChangeOrder I would like to perform additional updates to the related Project. However, I am not sure how to do this in a way where the Release action is full persisted before continuing. Below I have attempted to handle the standard release action (Base.Release), and then tag on a function call (SetCurrentOrderSet) to update the project, however since the Release action has not been persisted my logic in SetCurrentOrderSet fails.public class ChangeOrderEntry_Ext : PXGraphExtension<ChangeOrderEntry>{ public PXAction<PMChangeOrder> release; [PXUIField(DisplayName = "Release")] [PXProcessButton] public virtual IEnumerable Release(PXAdapter adapter) { var result = Base.Release(adapter); PMProject prj = this.Base.Project.Current; ProjectEntry prjGraph = PXGraph.CreateInstance<ProjectEntry>(); ProjectEntry_Extension prjGraph_Ext = p
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.