acumatica

Acumatica: Ability to override DefaultEndpointImpl to add advanced custom logic to contract REST API

若如初见. 提交于 2019-12-11 16:59:43
问题 I'm wondering if it possible to override DefaultEndpointImpl.cs or add my own API logic in another file? I'm struggling with a few API calls which require the logic in this file to be overridden or added to. For example I am able to create a purchase receipt for a PO via the api successfully, however I'm not able to add a "Transfer Receipt" purchase receipt in the same way. I've included various non-standard fields to the API endpoints that reference the original transfer, transfer order and

Acumatica ERP redirect by condition after the page has been loaded

孤街醉人 提交于 2019-12-11 16:56:56
问题 Is there any way to redirect from one custom page to another in case of some conditions when the first page is opened? I have tried using PXRedirectByScreenIDException with RowSelected events but the exception is not being handled and redirect is not working. protected void PrimaryView_RowSelected(PXCache sender,PXRowSelectedEventArgs e) { if(some_expression) { throw new PXRedirectByScreenIDException("II999999", PXBaseRedirectException.WindowMode.Base, true); } } 回答1: Many Acumatica features

Load value from popup to InventoryID field

拥有回忆 提交于 2019-12-11 16:52:24
问题 am generating a pop on one new button click in stock Items screen, inside popup have two buttons, user select some data from fields in the popup and then click on ok, then inventoryId should be formed with some special characters and then it should display in InventoryID field. I can form the InventoryID but unable to display it in InventoryID field. [PXButton] [PXUIField(DisplayName = "Generate")] public virtual void GenerateInv() { InventoryItemExt ext = Base.Item.Cache.GetExtension

How to enable a custom field on AR301000 after the ARInvoice is released?

♀尐吖头ヾ 提交于 2019-12-11 16:45:27
问题 Some user fields were added to the ARInvoice entry screen (AR301000). The user fields exist in the Transactions grid. They are text fields only. There is no custom logic associated, and are bound to the DB table. A user wishes to modify a particular user text field after the invoice is released - what would be the best way to achievee this? 回答1: Thankfully, the Transactions grid on the ARInvoces entry screen is never disabled by automation steps. All UI presentation logic for the Transactions

Reordering header buttons

為{幸葍}努か 提交于 2019-12-11 16:44:33
问题 I have added a custom save button in Sales Order screen in place of my current one. How do I reorder the main toolbar so that new save button is in place of the old one? You can do this easily for grid buttons, but for header ones it is not so obvious. 回答1: The order of the buttons is based on the order of the PXActions in the graph. (1) In this example my save button is first, then cancel button second. public class MyGraph : PXGraph<MyGraph> { public PXSave<MyPrimaryDac> Save; public

How to paste custom field values from the AR Invoice and AP Bill details directly into GL Transactions?

三世轮回 提交于 2019-12-11 16:07:06
问题 I have created a custom DB-bound field, called Stock Number , in the ARTran, APTran, and GLTran DACs: public class ARTranExt : PXCacheExtension<PX.Objects.AR.ARTran> { public abstract class usrLineStockNbr : IBqlField { } [PXDBString(10)] [PXUIField(DisplayName = "Stock Number")] public virtual string UsrLineStockNbr { get; set; } } public class APTranExt : PXCacheExtension<PX.Objects.AP.APTran> { public abstract class usrLineStockNbr : IBqlField { } [PXDBString(10)] [PXUIField(DisplayName =

Acumatica report parameter for Branch

≡放荡痞女 提交于 2019-12-11 15:40:08
问题 How do I add a parameter for branch to a report? I tried to copy the values from an existing report and I keep getting an error "Object Reference not set to an instance of an object". I used = Report.GetFieldSchema('OrganizationBranchReportParameters.BranchID, OrganizationID') for the view and = Report.GetDefExt('OrganizationBranchReportParameters.BranchID') for default. Any suggestions? 回答1: Compare what you have with a standard report that has a Branch parameter like AP Edit Detailed

Dynamically Change Button Color

佐手、 提交于 2019-12-11 15:22:44
问题 I have added a PXAction to a custom Graph extension class. This places a "button" at the top of the screen. I want to dynamically change the color of the button in code. How can I do that? Is it possible? I am using version 19.100.0122 TIA! 回答1: Note that those types of changes are not allowed by Acumatica ISV Certification program. You can use JavaScript to change the CSS styles. Add a JavaScript element anywhere that the customization project editor will allow you: Fill in script properties

Add a Report Menu item via code rather than Automation Steps

倖福魔咒の 提交于 2019-12-11 15:21:59
问题 I am trying to add a report to the Reports menu of the SO Order Entry page via code rather than using Automation steps. The code I am using is as follows but is producing the errors: error CS0122: 'PX.Objects.SO.SOOrderEntry.Report(PX.Data.PXAdapter, string)' is inaccessible due to its protection level error CS0119: 'PX.Objects.SO.SOOrderEntry.Report(PX.Data.PXAdapter, string)' is a 'method', which is not valid in the given context public SOOrderEntry_Extension() { Base.Report.AddMenuAction

Acumatica unable to publish the Customization Package

戏子无情 提交于 2019-12-11 14:08:22
问题 I am trying to publish the customization package on Acumatica Version 17.204.0019. But I am getting the following error : Validating Binary Files Aspose.Words.dll Method signature was changed: System.Void   [0...,0...]::.ctor(System.Int32,System.Int32) declared in Aspose.Words.dll Aspose.Words.dll Failed to resolve method reference: System.Void   [0...,0...]::Set(System.Int32,System.Int32,  ) declared in Aspose.Words.dll Aspose.Words.dll Failed to resolve method reference:      [0...,0...]: