Introducing Acumatica Cloud ERP: 2026R2
Technical discussions focused on Customizations for developers. See Low Code | No Code Forum for non-technical discussions
Recently active
I have a customization that generates an error when trying to bring up an opportunity.I get the error:Error: The entry form (ID: CR304000, title: Opportunities) cannot be automated. The view MultipleCustomersView doesn't exist. Or when trying to edit the SCREEN in the customization, I see this variation of the same error: The error (frustratingly) does not trip my debugger, so I don’t know exactly where this is happening.There is a MultipleCustomer class… but I don’t see a MultipleCustomerView anywhere in the C# code/Here’s the class: public class CRMultipleCustomer : IBqlTable { #region MultipleCustomerID [PXDBIdentity(IsKey = true)] public virtual int? MultipleCustomerID { get; set; } public abstract class multipleCustomerID : PX.Data.BQL.BqlInt.Field<multipleCustomerID> { } #endregion #region OpportunityID [PXDBString(15, IsUnicode = true)] [PXUIField(DisplayName = "Opportunity ID")] [PXParent(typeof(Select<
Hello ,I am trying to make performance improvements in Acumatica ERP by minimizing the data processing in the background. What can be the ways by which we can remove data older than 2 years? Not deleting it permanently but it should always remain accessible when required.
I am trying to change the default sort order of the details on Approve Bills for Payment. I’ve read these articles:acumatica - How to use OrderBy in a data view delegate - Stack Overflow acumatica - OrderBy in PXProjection Select does not work - Stack OverflowThe APApproveBills graph has a data view and a data view delegate, but according to the above articles, it seems like the following code should achieve what I need:namespace PX.Objects.AP{ public class APApproveBills_Extension : PXGraphExtension<PX.Objects.AP.APApproveBills> { public override void Initialize() { Base.APDocumentList.OrderByNew<OrderBy<Vendor.acctName.Asc>>(); } }}This does change the sort, but the result is not what I am expecting. Can someone explain why this is happening and/or how to fix it?
I’m creating a new form and it requires selecting a business account. so I have written the Code as follows in the DAC, #region BAccountID [PXDBInt()] [PXDefault()] [PXUIField(DisplayName = "Business Account")] [PXSelector(typeof(Search<BAccount.bAccountID>), typeof(BAccount.acctCD), typeof(BAccount.acctName) )] public virtual int? BAccountID { get; set; } public abstract class bAccountID : PX.Data.BQL.BqlInt.Field<bAccountID> { } #endregionwhen I’m entering the new record, it raised an error as follows, “Error: Inserting 'Customer Call' record raised at least one error. Please review the errors.” But when I’m selecting another business account in the same form, I can save the data successfully. However, I can't save the data with the business account I initially chose and it raised an error like “Error: Updating 'Customer Call' record raised at least one error. Please review the errors.”how can I resolve
I have a problem when closing out an opportunity (OpportunityMaint) graph. It is giving the dreaded “Another process has added/updated/deleted the ‘{0}’ record. Your changes will be lost.”In the past I have handled this by simply using:PXTimeStampScope.SetRecordComesFirst(typeof(OpportunityMaint), true);But I can’t figure out how to override the Closed as Won method. In source code, it seems Acumatica is now adding a “workflow” class but extending the OpportunityMaint class:class OpportunityWorkflow : PX.Data.PXGraphExtension<OpportunityMaint>And within that, it defines the options for closing an opportunity:var formOpen = CreateForm("FormOpen", OpenReasons, OpportunityReason.Qualified); var formWon = CreateForm("FormWon", WonReasons); var formLost = CreateForm("FormLost", LostReasons); But I can’t override it. I tried creating this: [PXOverride] public void CloseAsWon(PXAdapter adapter, Action<PXAdapter> baseMethod) { using (PXTimeStampScope ts =
Hello, We are trying to create some customizations for our self-service portal, however we are not having luck getting the customization screen to load the screens objects. The screens are blank.Anyone had luck customizing self-help portal? Acumatica 2020 R1Build 20.111.0017
Hello!Mi instance is 22R2 and until now, conditionally enabling/disabling custom actions had been pretty easy.Usually I just use the SetEnable Method in a RowSelected event… Like this one here that I’m trying to use for a custom action in the SOInvoice screen: protected void _(Events.RowSelected<SOInvoice> e) { SOInvoice row = e.Row; if (row == null) return; itemSearch.SetEnabled(Base.Document.Current.CustomerID == null ? false : true); }The problem that I’m facing right now is that visually, the button remains “Enabled” at all times, while logically the button is disable until the user enters the customer:When the user clicks on the button without entering a Custmer. The condition works and the system display the alert: But the button remains visually enabled and my eye is twitching becouse of this!In the aspx I placed the button inside the actionbar like I have done with many other customizations:<ActionBar> <
Is it possible to send another “follow-up” email from a business event that will be put in the same thread with the original email when sent? I tried reply but it is sending a separate email:
Hi all, I want to generate “Check form with remittance”(ap641000.rpx) Report Programmatically. But in the usual way, I was unable to do that as it has no key parameters. Schema Builder of the report - Parameters TabI used to do report generation in the following way. But I can not apply this approach here as there are no key parameters here. Is there any alternative approach of doing this?Dictionary<String, String> parameters = new Dictionary<String, String>();parameters["DocType"] = apInvoice.DocType;parameters["RefNbr"] = apInvoice.RefNbr;//Report ProcessingPXReportSettings settings = new PXReportSettings("MA105000");PX.Reports.Controls.Report report = ReportLoader.CheckIfNull(nameof(ReportLoader)).LoadReport("MA105000", null); ReportLoader.InitReportParameters(report, parameters, settings, false);PX.Reports.Data.ReportNode reportNode = ReportDataBinder.CheckIfNull(nameof(ReportDataBinder)).ProcessReportDataBinding(report);byte[] data = PX
Hello I am Currently Customizing the Process Shipment screen and I want to add new value Print packing Slip to the existing, process shipment screen. I was able to add the new value via, the customization package.However, when I run my code, via extending the process shipment graph, I do not see the selected value. The goal I am trying to achieve , here is I want to run a report ( Shipment packing slip) via the process shipment screen. I have the report code working. All I want to do is , call this report via dropdown on the process shipment Action filter. public PXAction<SOShipment> printPackingSlip; [PXButton(CommitChanges = true)] [PXUIField(DisplayName = "Print Packing Slip", MapEnableRights = PXCacheRights.Select, MapViewRights = PXCacheRights.Select)] public virtual IEnumerable PrintPackingSlip(PXAdapter adapter) { return Base.Report(adapter.Apply(delegate (PXAdapter it) { it.Menu = "Print Packing Slip
I have a very strange issue that feels like a bug. I am iterating through a list of SOOrders and then using the following line to set the current order as the Document.Current:foreach (SOOrder order in orders){ orderGraph.Document.Current = orderGraph.Document.Search<SOOrder.orderType, SOOrder.orderNbr>(order.OrderType, order.OrderNbr); // ...}However, when performing this search for any order type that is not the Default Sales Order Type on SO Preferences, the value returned by the search is null.This gets deeper. I tested the following code with a simple action on SOOrderEntry:public PXAction<SOOrder> ActionName;[PXButton(CommitChanges = true)][PXUIField(DisplayName = "ActionName")]public virtual void actionName(){ SOOrder order = Base.Document.Search<SOOrder.orderType, SOOrder.orderNbr>(Base.Document.Current.OrderType, Base.Document.Current.OrderNbr); throw new PXException($"{order.OrderType} {order.OrderNbr}");}Notice I’m performing the search in the Base graph. T
I have a create production order screen , where in I need to customize and add two new column on create process.I want to extend the below code, which is on the CreateProductionOrdersProcess acumatica code, but I am not able to achieve that. public static void CreateProcess(List<AMFixedDemand> list, ProductionOrdersCreateFilter filter) { var prodMaintGraph = CreateInstance<ProdMaint>(); var createProdOrdersGraph = CreateInstance<CreateProductionOrdersProcess>(); Numbering prodNumbering = PXSelectJoin<Numbering, LeftJoin<AMOrderType, On<AMOrderType.prodNumberingID, Equal<Numbering.numberingID>>>, Where<AMOrderType.orderType, Equal<Required<AMOrderType.orderType>>> >.Select(prodMaintGraph, filter.CreationOrderType); if (prodNumbering == null) { throw new PXException(Messages.GetLocal(Messages.Numberin
I’m working on a customization to disable editing of Business Accounts under certain conditions.I have it working for most portions of the screen with the following code, but I cannot figure out how to access the DefLocationAddress view from my extenstion.Looking at the Acumatica source, it looks like that portion is implemented in an extension.Any idea how I can access that view from my extenstion to disable it? PXUIFieldAttribute.SetEnabled(e.Cache,row,false);PXUIFieldAttribute.SetEnabled(Base.Caches<Address>() , Base.AddressDummy.Current, false);PXUIFieldAttribute.SetEnabled(Base.Caches<Contact>(), Base.ContactDummy.Current, false);PXUIFieldAttribute.SetEnabled(Base.Caches<CSAnswers>(), Base.Answers.Current, false);PXUIFieldAttribute.SetEnabled(Base.Caches<CR.Standalone.Location>(), Base.BaseLocations.Current, false);ThanksScott
The hackathon at the Acumatica Summit drew close to 100 participants in January 2023. One of the projects that drew the most attention was the new Customization API that was introduced in the 2022 R2 version of Acumatica’s REST API. This feature now allows programmers to control and automate the release of their customization packages on the Acumatica platform. This is accomplished by leveraging 2022 R2 REST API Customization Endpoint. Some of the benefits of this API is to provide confidence through automated validation and publishing. It helps reduce the repetitive steps that you write in your workflow files. We can leverage GitHub Custom Actions for continuous integration, dependency updates, release management, and task automation.The REST API for this endpoint is fairly straightforward. Below are the 4 endpoints needed to successfully login, import, validate and publish your Acumatica customization package. The help documentation outlines the details of each endpoint. REST
Hello,I’m working on a customization where I have to attach subcontract files to Email subcontract action. So end user will get subcontract attachments in the email along with the default report.At present, acumatica allows only to send report assigned to subcontract in preference will send through email subcontract action. Along with report, I need to attach that particular record file with it.The action code contains SENDNotificaiton method with the attachment parameter.But with below code i’m able to send NOTEID of the file to the sendnotificaiton method but I’m unable to see my file in “ALL Email” screen.Base.Activity.SendNotification(APNotificationSource.Vendor, notificationCD, order.BranchID, parameters, _attachments);I’m sending NoteID value of the record to this method from my extended graph but the files are not attaching to the email. I have tried below code:using System;using System.Collections;using System.Collections.Generic;using System.Linq;using PX.Data;using PX.Object
I am looking to set the Price Class field to be required on the location screen when a customer is being created.So my attributes are set as below.This works fine on the customer screen but when I try to add a vendor or employee I hit a stop as the price class is not populated, price class isnt required on either so is there anyway just to enforce this requirement on the customer screen? [PXDBString(10, IsUnicode = true)][PXSelector(typeof(AR.ARPriceClass.priceClassID))][PXDefault(PersistingCheck = PXPersistingCheck.NullOrBlank)][PXUIField(DisplayName = "Price Class", Visibility = PXUIVisibility.Visible, Required = true)]
In 2023R1I have a custom field UsrOriginalPromise to the Purchase Orders Details. I am enabling all three fields shown below for closed orders.Requested Date is the Requested field with a modified label. Current Promise is Promised with a modified label. Those are built in fields that I am able to get enabled for editing.I added all three fields to the Closed Workflow. I also added the following code to finish the job of enabling the cache and enabling the fields: THIS IS IN THE PROJECT EDITOR, NOT VS.If I remove the comments from the lines below, the two built in fields get enabled, but the custom field does not, AND there are errors on the PO3010PL entry point screen and in the Project editor. public class POOrderEntry_Extension : PXGraphExtension<PX.Objects.PO.POOrderEntry> { #region Event Handlers protected void POLine_RowSelected(PXCache cache, PXRowSelectedEventArgs e, PXRowSelected InvokeBaseHandler) { if(InvokeBaseHandler != null) InvokeBaseHandler(cac
I am trying to upgrade a customer. I am getting an error in a few places, especially around printing reports. (From 2021 R2 to 2022 R2)I’m not sure how to debug this. The error is not tripped by my debugger. I go into Sales Quotes and try to do a “Print Quote” when I do that I get an error. I have no idea what report is being called, so I don’t know how to look at that.I tried to do an override of the PrintQuote function, so I could see what was going on inside of it but no dice. It wont permit an override. This is the source to it:public IEnumerable PrintQuote(PXAdapter adapter) { Dictionary<string, string> parameters = new Dictionary<string, string>(); string actualReportID = DefaultReportID; PXReportRequiredException ex = null; foreach (CRQuote item in adapter.Get<CRQuote>()) { Save.Press(); parameters[nameof(CRQuote.OpportunityID)] = item.OpportunityID; parameters[nameof(CRQuote.QuoteNbr)] = item.QuoteNbr; ex
Hi All,I am currently researching how to automatically send label files to a printer for printing.After reviewing the documentation, we found that we can utilize Acumatica Device Hub for this purpose. I would like to inquire whether Acumatica Device Hub can be installed separately on the client-side.Additionally, apart from using Device Hub, are there any other methods you would recommend for achieving automatic label printing? Thank you,Reggie
Hello everyone!, I hope someone can help me 🙂I have to change the label of a button, but I realized that it does not change the Translation Dictionary. Does anyone know another way to do it?
I have few customizations. I’m wondering why my Fields and Conditions in “e2SOCostCodeAndDepartment” are not reflecting. Maybe because I have another Customization for Sales Order after that? Here’s my customization:Here’s After it:
I have created a button on the Opportunities (CR304000) called 'Convert to SO’ which converts the current opportunity to a Sales Order. I would like to move the button to the Action Menu > Record Creation, how can I do it?The Acumatica version I am using is: 23.105.0016 (2023R1)
When I create unit tests, I reference PX.Tests.Unit.dll, but always have this error.although I don't use this 'Microsoft.Bcl.AsyncInterfaces’. Is there any good way to solve this problem?“Could not load file or assembly 'Microsoft.Bcl.AsyncInterfaces, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)”
I am working on a customization where i need a Multi-Selector on an unbound field.But i am getting an error on adding the second option: Here is the definition of the unbound field: And here the code for the PXCustomSelectorAttibute: ASPX:Are there any know issues or am i doing something wrong?
I wanted to change a PXSelector attribute on a DAC field to Fluent BQL syntax if possible in order to include a subquery. Is there any way to do a Fluent BQL equivalent of PXSelector that you know of?
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.