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 am using a try - catch and trapping an error. When I get the error, I want to write it to the trace log. I am able to write to the log. There is a property in the System.Exception called “InnerMessages” that is an array of the actual errors that caused the exception. Here is a print screen of the InnerMessages that shows the details I want to write to the log: I write to the log with PXTrace.WriteError(ex);This is the only thing that shows in the Trace screen. It just shows the basic message and the place in my code where the error occurred.My thought is that I could cycle through the InnerMessages array and write it to the trace log so if my customer has an error, I can actually know what it is.Does anyone know how I can access the InnerMessages property? I cannot find any way to do it.
Hello experts,I am trying to force End-User must enter value for fields: Weight (BaseItemWeight), Volume (BaseItemVolume) on screen Stock Item IN202500by using condition configuration as following:Set fields required: the default value is 0 because the field type is decimal, so I am able to save the record without entering value. Set condition value must greater than 0 But somehow I didn’t input value for these fields but still could save the recordDo you have any idea?
Hi,I need to create a database connection for my cloud acumatica ERP instance. Is it possible or how can I do it?
HiWorkflow :In QualityOrderMaint.cs, On Related QC order Tab, When on “Update Results and Sign Off” button, I am inserting the same records in SelectQC view. (TSRelatedQCOrderUpdate.cs - Acting as aUnbound DAC)On Hyperlink Click,Even after clicking other records its opening first row By default. TS301025 <px:PXSmartPanel runat="server" ID="PXSmartPanel_processqc" DesignView="Content" Height="360px" TabIndex="2000" Width="1000px" CreateOnDemand="True" CaptionVisible="True" Caption="Select QC to Process" AlreadyLocalized="False" Key="selectQC" AutoCallBack-Target="PXGrid10_qc" AutoCallBack-Command="Refresh"> <%-- <px:PXGrid ID="PXGrid10_qc" runat="server" DataSourceID="ds" SkinID="Details" AutoAdjustColumns="True" SyncPosition="true" AdjustPageSize="Auto" AllowPaging="True" AllowSearch="True" Width="900px" Height="200px">--%> <px:PXGrid runat="server" ID="PXGrid10_qc" SyncPosition="True" Height="200px" SkinID="DetailsInTab" T
Hello experts,There is a field Promised On (Expected Date) on Purchase Orders screen (PO301000) and it is set to Today by defaultI am trying to set default value of this field null and I have used the following approach:Set default value to null in event handler FieldDefaulting:using PX.Data;namespace PX.Objects.PO{ public class POOrderEntry_Extension : PXGraphExtension<POOrderEntry> { #region Event Handlers protected void POOrder_ExpectedDate_FieldDefaulting(PXCache cache, PXFieldDefaultingEventArgs e) { var row = (POOrder)e.Row; if (row != null) { e.NewValue = null; e.Cancel = true; // If I don't use e.Cancel = true, it still doesn't work } } #endregion }}override Initialize method:public class POOrderEntryExt : PXGraphExtension<POOrderEntry>{ public override void Initialize() { base.Initialize(); PXUIFieldAttribute.SetVisible<
Hi,I developed a new changes to my existing customization and migrated to my client uat instance. Yesterday I published the newly modified customized project and working fine with all new functions. I newly added one setup form and some validations into my custom project.Today our functional team created a new instance using snapshot and all my new changes disappeared. When I checked inside the customization project editor it shows my newly added screen need to published. Old screen is working. I Republished again and now working fine. I need to know can it be happen when getting a snapshot or otherwise?Please anyone help me
I am trying to set a custom field during the creation of an ARInvoice from the Sales Order module and the Service Management module. Invoices are created in very different ways in both of these, and I’ve been messing with overriding / extending the methods that perform this process, but it’s not going that well and I’m feeling like I have to be missing something easy.I thought of doing it in an event on the ARInvoiceEntry page, but I don’t think that really accomplishes the need. I think I could use inserted events on several entry screens, but that doesn’t seem like a shortcut either.Does anyone have an idea of a better way?
New to Acumatica custom development but long time experience with classic asp.net development and MVC based development.Developing my first custom page grid control, I notice that RowSelected events aren’t actually fired when the row is selected. Instead, one gets fired off for each row when the row is created (which feels like a ‘RowCreated’ event). I can at initialization time set whether a row or field can be edited by enabling or disabling a row, but I haven’t been able to figure out how to control whether a row can be deleted except by validating in a RowDeleting event and cancelling it/setting UI errors on failed validation. (I can enable or disable buttons for the entire grid, but not conditionally based on which row has focus.)I’d like to be able to do something like when a row is selected enable or disable the delete button or otherwise handle the selection of a row. I have ‘commit changes’ on the fields in the row, and it does seem to post back, but it’s not clear what ev
Hello, I don’t know it is my code issues or system framework issue. Somehow, I encountered a case that the system can ignore the error on the screen and proceed to save and release document. My environment is Build 21.208.0032. So I don’t know this issue still exists in current version.My need is to forbid SO invoice being saved/released if any line contains 0 qty.I am using the below code mainly protected void ARTran_RowSelected(PXCache cache, PXRowSelectedEventArgs e) { ARTran aRTran = (ARTran)e.Row; if (aRTran != null) { using (new PXConnectionScope()) { InventoryItem item = PXSelect<InventoryItem, Where<InventoryItem.inventoryID, Equal<Required<InventoryItem.inventoryID>>>> .Select(Base, aRTran.InventoryID); if (item != null) {
Hi,I have added a custom field to the ARTran table but I am getting an error when trying to access the extension of this table to update this custom field via code.I imagine I need to replace ‘ARTran’ with something else, but not sure what it would be.Here is the code I am currently using to access this extension:var row = (ARTran)e.Row;ARTran rowExt = row.GetExtension<ARTran>();And here is the error I get:\App_Code\Caches\ARInvoiceEntry.cs(55): error CS0311: The type 'PX.Objects.AR.ARTran' cannot be used as type parameter 'TExtension' in the generic type or method 'PXCacheEx.GetExtension<TExtension>(IBqlTable)'. There is no implicit reference conversion from 'PX.Objects.AR.ARTran' to 'PX.Data.PXCacheExtension'.What do you suggest I replace ARTran with to access the custom field via the extension? Kind regards,Andrew
Hello Community, I was wondering has anyone experienced using Switch in Selector Attribute something like the one below. I know the below doesn’t work and also I have seen some lengthy posts on how to create a dynamic selector but I was hoping Acumatica has something built-in so that I don’t go the long path.[PXSelector(typeof( Switch< Case<Where<MyDAC.module.IsEqual<BatchModule.moduleAP>>, Search<Vendor.bAccountID>>, Case<Where<HCLSMFileFilter.module.IsEqual<BatchModule.moduleAR>>, Search<Customer.bAccountID>>>))]
Hi Experts,One of our customers looking for creating customers from the mobile App.I would appreciate your response in this case. Thank you.
All users are Unable to access the Mobile App. “Server returned an error. The Type initializer for 'PX.Api.Mobile.Models.Attachments-MetaFactory' threw an exception. Has anyone seen this error or have any advice on how to resolve??
Hi, I have developed a custom screen, it’s working fine in my development instance. Then we published it in a UAT instance for testing and when we checked , it was working previously but now the screen is not visible in the workspace we added. Even the admin has the right to access this custom screen but the screen is not there. So we unpublished the customization project and removed it from the instance. Then we published again the same project package and this time the screen is not available in the project as well. we unpublished it and published again, still the screen id is empty as below.customization project in the uat instancedoes someone have an idea on this issue?Thank you in advance.
Hi,I have a customization project in my test instance and it’s working properly.We created a news instance using snapshot in the test instance and add customization projects also .But. My customization project screen is not visible in my new instance.Anyone,Plz help me
I Need help.I Got this error after i update acumatica from 2019 r1 to 2022 r2. does anyone got the same trouble ?
Hello Everyone,In the persist delegate, I would like the custom field inside the PXLong Run operation but value is not updating. Can anyone help me on this?If try to save again, it is re-calling the Persist method and going to the infinite loop.Here is the sample code for your reference. public delegate void PersistDelegate(); [PXOverride] public void Persist(PersistDelegate baseMethod) { baseMethod(); if (Base.Document.Current != null) { PXLongOperation.StartOperation(Base, delegate () { try { //my custom logic is here //Updating the custom field value below, value is holding in the caches but updating Base.Document.Cache.SetValue<SOOrderExt.usrCustomField>(Base.Document.Current, true); Base.Document.Cache.Update(Base.Document.Current);
Hello-I have created a custom table and have then created a view under ProjectEntry ext graph. However, when I try to run a script to update the values- it will not, for the life of me, update the values- I’m perplexed- I’ve never had issues with base detail tables on the ProjectEntry graph.. but now that I have a custom table it is really not liking it. See below for view that I created and then the action that I call to update the value in the cache based on a static value (just for testing). I have simplified the code down a lot for testing and de-bugging purposes, but for all intents and purposes, the same logic applies.View:public PXSelect<BlyIconPMBudget> BlyIconPMBudgetView;Action: public PXAction<PX.Objects.PM.PMProject> UpdateBalances; [PXButton(CommitChanges = true)] [PXUIField(DisplayName = "Update Balances")] protected void updateBalances() { foreach (BlyIconPMBudget b in BlyIconPMBudgetView.Select()) {
Hello Everyone,I would like to add posting class selector to these filter. The screen name is Historical Inventory balance(ScreenId=IN616000). Kindly assist for it is urgently required.All responses will be highly appreciated.Thank you all.
Hi,I created a new setup form for my custom screen in the same customization project. After publishing, it’s working fine in my local instance. Now I want to add this into the UAT instance and publish my customization project, But after importing and publishing the project package, setup form is not visible in the project editor, only the custom screen which is Proforma Invoice can be seen.what is the reason for this and can someone help me to resolve this?Thank you.
Hi Guys, I’m trying to add custom column - contract Price field from service contract and display in run service contract billing screen.I added the field in Screen editor customization. created the DAC, and graph but I’m not able to view the data in run service contract billing screen.Below is my custom field. DAC,#region UsrContractTotal [PXDBDecimal] [PXUIField(DisplayName = "Contract Price")] public virtual decimal? UsrContractTotal { get; set; } public abstract class usrContractTotal : BqlDecimal.Field<usrContractTotal> { } #endregionGraph,Public class ContractPeriodToPostEntryExt : PXGraphExtension<CreateInvoiceByContractPost> { #region Event Handlers public static bool IsActive() => true; protected virtual void ContractPeriodToPost_ServiceContractID_FieldSelecting(PXCache cache, PXFieldSelectingEventArgs e, PXFieldSelecting InvokeBaseHandler) { if (InvokeBaseHandler != null)
Hi,I created a setup form(AI101000) and delete it from my project.Again i created a setup form(AI102000) and add this file into my custom screen for the automating the custom screen field.In my dev instance all are working fine.but, when i getting the export and import into the my uat instance,I can’t see the setup form screen that I created(AI102000). When .I cheking the project.xml file It still have the my deleted page name(AI101000) in the site map menu.Can anyone please support for that.
Hi, I have developed a new screen, In this screen I need to load all the locations of related customer as drop down list in the location filed to allow select and add to the field.To accomplish this, I used PXSelector attribute like below in the DAC but it is not working as expected. #region LocationID [PXDBString(30, IsUnicode = true, InputMask = "")] [PXUIField(DisplayName = "Location",Enabled =false)] //[PXSelector(typeof(Search<Location.descr, Where<Location.bAccountID, Equal<Current<APProforma.customerID>>>>))] [PXSelector(typeof(Search2<Location.descr,InnerJoin<Customer,On<Location.locationCD, Equal<Customer.defLocationID>>>>))] public virtual string LocationID { get; set; } public abstract class locationID : PX.Data.BQL.BqlString.Field<locationID> { } #endregion Can someone help me on this?thank you.
Hello Community,In the Bill of Material screen, I have created a new tab i.e. TEST same as the OUTSIDE PROCESS. OUTSIDE PROCESS form is refreshing according to the selection of the record in the Operations grid but my TEST tab not refreshing.Tried belowCreated Tab same OUTSIDE PROCESS tab (Native Acumatica tab) Added AutoCallBack commands Refreshed the grid in the RowSelecting event as well but not working.Any suggestions, highly appreciated.
Hi, I am using Visual Studio 2019 for all my customization development. After upgrading to 22 r2 I am facing issues in creating a new custom page or opening the existing page in design mode. I am using the template provided by Acumatica 22 R1It throws the following error Pls, let me know how to fix it.Regards,R.Muralidharan
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.