Introducing Acumatica Cloud ERP: 2026R2
Technical discussions focused on Customizations for developers. See Low Code | No Code Forum for non-technical discussions
Recently active
Hello community,I am wondering how can I write a delegate for a method that has "params" argument considering the params argument is needed to be the last parameter in the formal parameter list? public delegate void RunLogActionBaseDelegate(string action, string logType, FSAppointmentDet apptDet, PXSelectBase<FSAppointmentLog> logSelect, params object[] logSelectArgs);[PXOverride]public virtual void RunLogActionBase(string action, string logType, FSAppointmentDet apptDet, PXSelectBase<FSAppointmentLog> logSelect, params object[] logSelectArgs, RunLogActionBaseDelegate baseMethod){ baseMethod?.Invoke(action, logType, apptDet, logSelect, logSelectArgs);}I tried to override the method Any help is appreciated.
I created a custom field to go in the grid in the Line Details dialog on the Purchase Receipts screen.I looked at the solution in the following post, but resetting the defaults on the grid did not make the field show.EDIT: I found out why this is happening. See my next comment below.
Hi,I have a request to add a Customer Status and have it act like one of the existing status. The purpose is to call out certain credit situations.I can add the new status, but how can I attach the logic form one of the other statuses to it, so when selected, it acts the same?So for instance, create a new status that mimics Credit Hold. So this would not allow new orders to be created without approvals, etc. but would be a different status to alert Customer Service to a particular situation.Thanks in advance.
Good afternoon! I wanted to share with you a snippet of code that has helped us tremendously with our credit hold process. We have times when a check is created, or a credit memo is left on the account, but not yet applied to documents. These customers would have invoices that trigger credit hold, but a negative or 0 balance, so it should not. Sometimes, there is a lag time in the processing of these credits/payments, so I had to write a modification to assist. Sometimes tracing through the Code Repository and finding the correct functions to extend or events to inject than writing the actual code! The customer credit verification is held in the CustomerCreditExtension graph extension. This extension is overridden by the SOOrderCustomerCreditExtension with custom logic overriding the base logic for the SOOrderEntry screen. The class SOOrderCustomerCredit is an extension that applies the logic to the screen through extending SOOrderEntry.This uses PXProtectedAccess to access the GetCust
We are trying to update to 23R2 and I was told that one of my customizations will need to be recompiled in order to work with 23R2. What does this entail?
Hello Community;I’m creating a form to retrieve Invoices and Memos infos and calculate some taxes,I’m doing a Left join between ARInvoice table and MasterInvoice where master invoice is a table inherting from ARInvoice, like this : public class MasterInvoice : PX.Objects.AR.ARInvoice{}SelectFrom<ARInvoice> .LeftJoin<Customer>.On<ARInvoice.customerID.IsEqual<Customer.bAccountID» .LeftJoin<MasterInvoice>.On<ARInvoice.masterRefNbr.IsEqual<MasterInvoice.refNbr»The project is published successfully and the MasterInvoice fields are there, but those fields showing no data.Any ideas?
Hi Team,I need to get the Vendor registered or configured Tax Id's (Tax class) to a foreach loop for a particular vendor record (BAccountID = X). Can someone please help me out to give me the BQL query for this?ThanksBhagya
How to create new controls on form dinamicaly? I have a custom screen in which columns are automatically generated in the grid when I select the desired GI in the "Inquiry title" selector. I take them from the GI screen and everything works fine. Now I want to take the parameters from this tab and the parameters on the GI screen and dynamically make these selectors from the code, which would be identical when you click view unquiry on the SM208000 page. How to do it from the code? Because the parameters can change depending on the selected GI. Take a look at the attached files
What are the ways to change the landingcontent when a user signs into the self-service portal?
Hi,A client is wanting to add an Operation field to the Process Shipments screen and have it change the results in the grid when the value changes, like the other fields in this screen.Below is the code I have added to the Graph Extension, but it is not working, so I guess I am going about it the wrong way.What would you suggest I do to ensure this new custom field is included in the filtering function?Let me know if you need any other information.Kind regards,Andrew Operation field highlighted above This is the graph extension for trying to include the Operation field in the filter functions.public class SOInvoiceShipment_Extension : PXGraphExtension<PX.Objects.SO.SOInvoiceShipment> { #region Event Handlers public delegate void ApplyReceiptFiltersDelegate(PXSelectBase<POReceipt> rtCmd, SOShipmentFilter filter); [PXOverride] public void ApplyReceiptFilters(PXSelectBase<POReceipt> rtCmd, SOShipmentFilter filter, ApplyReceiptFiltersDelegate baseMethod) {
Added a new column in Customer’s payment method “Is Autopay” column checkbox type. But it seems its not saving when I try to checked one the save when I reload it’s not checked.Before reloadAfter reload
I would like to set up a role that has access to be able to create workflows without having full Admin or Support permissions. I had thought the “Customizer” role would be sufficient, but when the user creates a project in Customization Projects, they are able to save it without issue. However, when they then click on the project they just created, they are unable to proceed. The following error message pops up: “acumatica-train:30003 saysYou have insufficient rights to access the object (ProjectBrowserMaint). Only by exporting the “Access Rights by Role” report am I able to find anything on Project Browser. It is the “Customization Project Browser” screen and only two Acumatica preset roles have delete status to it. They are the “Acumatica Support“ role and the “Administrator” role. I have verified this situation in the U100 SweetLife training data.I have searched using the Acumatica Navigation field for both Project Browser and Customization Project Browser and it yields zero records
My company is looking into acumatica for our new erp. What limitations do customization have vs building outside of acumatica?
Hi,I am creating a new processing screen that will be used to send invoice reminders to customers, but I am not sure how to set up the send email button to do this correctly.Below is an example of how I was trying to set it up. This code doesn’t publish because of some errors, so I know it’s completely wrong, but I am not sure how I can correct it.public PXAction<DunningLettersDAC> sendEmail; [PXUIField(DisplayName = "Send Email", MapEnableRights = PXCacheRights.Select, MapViewRights = PXCacheRights.Select)] protected IEnumerable SendEmail(PXAdapter adapter) { // Loop through all selected rows to process foreach (DunningLettersDAC currentRecord in Base.ProcessingScreen.Cache.Updated) { var emailSettings = new SendMailSettings { Subject = "Your Email Subject", Body = "Your Email Body", AppendFiles = true }; sendEmail.PressButton(adapter, emailSettings); }
here’s what i’m trying to achieve. I want, when a new record in Sales orders is created, if the SalesPersonID is not filled, if it ends up null, It should, by default, be the same as the Current user’s ID. how can I achieve this? can someone provide the code or an example? and where would I put it?
Checks and payments entry record creating Programmatically using .csv FilePayment Type Pmt Number CashAcct Pmt Date VendID ApplyToVendorRef ApplyToAmt TotalAmtCHECK 10184000001 ORE-OP 11/16/2021 PIOT INV2809 2185.02 2185.02 the above fields i have in csv file.. using Vendor reference number am fetching data from Bills Screen and then am trying to create checks and payments record against to that bill- am able to create header part when coming to insert in APAdjust table am facing an issue above error throwingError: An error occurred during processing of the field Reference Nbr. value 032616 Error: Reference Nbr. '032616' cannot be found in the system.am also sending the code which i have written for APAdjust .. Please suggest me with the Solution APPayment payment = new APPayment(); payment.DocType = APDocType.Check; payment = PXCache<APPayment>.CreateCopy(grp.Document.Insert(payment)
Dear ALL,The Event screen (CR306030) was missing an Owner, so I added it by performing Create Controls with the OwnerID field (Display name: Created By). I have also done:CommitChanges = true Enabled = true But the result of Customization is that the Owner field is still not enabled so it cannot be selected. Please guide me how to handle it ! Best Regards,NNT
Is it possible to make Acumatica load all data into a graph? In the code below I create a SOOrderEntry graph, find an existing sales order and set the current document to the sales order.This sets the current document but it doesn’t load the sales order lines - as it would if I was using the UI. The value of sOOrderEntry.Transactions.Current is null. In the final 2 lines I set the Transactions.Current value myself by selecting the first record returned from Select, but is there a way to make Acumatica load data into the SOLine view (and other views) automatically? (like the UI does)public PXAction<INKitRegister> UpdateSalesOrder;[PXUIField(DisplayName = "Update Sales Order")]protected virtual IEnumerable updateSalesOrder(PXAdapter adapter){ SOOrderEntry sOOrderEntry = PXGraph.CreateInstance<SOOrderEntry>(); SOOrder sOOrder = sOOrderEntry.Select<SOOrder>().FirstOrDefault(x => x.OrderNbr == "SO000276"); sOOrderEntry.Document.Current = sOOrder; SOLine sOLine = sOOrde
Hello Community,i’m working on a customization project and i want a grid to show some results of joining 2 tables, I wanted to ask how to join ARinvoice to MasterInvoice, because when i do it the form shows “ARInvoice duplicated many times in FROM clause”
I am very beginner to the Acumatica ERP.I have to do a customization which is in Sales Price Worksheet screen summary area invisible effectiveDate,expirationDate and Promotional fields and add them into same screen but into the details area(Grid). and then when user insert the input on the grid and saving of the Sales Price Worksheet and press remove hold then the release button and the Sales Prices screen prices should updated properly.The inputs of those added fields to the grid of sales price worksheet screen should be pass to the sales prices screen similarly.In the sales price worksheet screen, the grid retrieve data from ARPriceWorksheetDetail Dac but Sales price screen grid retrieve data from ARSalesPrice Dac. The issue is those two Dac s are not connected in direct references. I couldn’t get same value of effectiveDate field in sale price worksheet screen to Sales Prices screen. Basically I need to know how to connect ARWorksheetDetail Dac and ARSalesPrice Dac
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
On screen "Pick, Pack, and Ship", (SO302020) I am trying to make some changes, but it is an odd screen so any ideas would be welcome. I have managed to make some changes and I am spending a lot of time in the debugger trying to understand what I can do but I haven't got that far yet. I have been working with methods and events like:SOShipLineSplit_RowSelectingSOShipLineSplit_RowSelectedSOShipLineSplit_LineNbr_FieldSelecting These don't fire when I would expect. They don't fire when I click on the grid. Perhaps this is because the grid is is not editable. I don't see how to change this. Basically what I ideally want is to detect when a row is selected or clicked on and then run code populate the Scan field with the Inventory Code. I could also do this from the header on a button or something, but when I play with events on the header and get a link to the table I can't see a selected row in there so I am stumped.// Acuminator disable once PX1045 PXGraphCreateInstanceInEventHandlers [Jus
Hi All,I need to avoid the data saving once validation fails. I wrote a method in RowPersisting event. Validation message comes but data is going to save .So I need to return from the saving until validation sucess.Here is my code.protected void _(Events.RowPersisting<HMRCAPIConfigDetail> e) { HMRCAPIConfigDetail row = e.Row; if(row != null) { if(String.IsNullOrEmpty(row.Description)) { string msg = "Description Cannot be Empty"; WebDialogResult result = HMRCAPIConfigDetails.Ask(ActionsMessages.Warning, msg, MessageButtons.OK, MessageIcon.Warning, true); return; } } }Thanks
I have a graph extension of the Project screen (ProjectEntry graph). Included in this extension is a new view, and there is a new custom detail tab on the screen with a grid on it reading data from the new view. In the grid, there is a column with a LinkCommand that calls an action method in the graph extension which opens a screen related to the column value. This all works fine.I also have an extension of this graph extension that overrides the view mentioned (adds joins to it) by simply redeclaring the view with the same name. So far so good. However, the link command mentioned above is still called as expected, but it fails to behave as expected. Inside the action method, it expects the view to have a current record (the record in which the link was clicked), but the view doesn’t have one (it’s null). The exact same code running from the first extension class, but now with an overridden view somehow causes the view to not know its record pointer; so it doesn’t know the value
Hey all,I have and issue and I am trying to see if anyone else has seen this issue or may know what may be causing this. We have custom fields on the Locations table and a customization that populates these fields when a new Customer/Vendor Location is added. In 2020 R1, this customization worked on all added location. In 2021 R1, this customization works great except for the first initial “Main” Location that gets created automatically when you create a new Customer/Vendor. Does anyone have any ideas why the automatically created location skips any custom code but all subsequent ones don’t.Thanks,
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.