acumatica

Hiding a tab from the user interface dynamically

房东的猫 提交于 2019-12-18 05:55:49
问题 I have a page with a PXTab control and want to show or hide individual tabs on the page dynamically. How can I control visibility of tabs at runtime? 回答1: You can do it in one of the following two ways: By setting a VisibleExp property on PXTabItem in ASPX page By enabling/disabling AllowSelect property of the view that serves as a DataMember of the grid that is displayed on that tab Method 1 – VisibleExp In this method, you directly write the conditions under which the tab should be visible

How to display product availability in Opportunity Products Grid footer?

霸气de小男生 提交于 2019-12-17 17:33:10
问题 In Sales Order documents grid footer. It displays the product's availability. How to do the same in Opportunity products grid ? More so, how do you enforce it to be displayed at the footer instead of a simple grid column ? Is there such attribute ? Thanks for the replies. 回答1: If we compare to sales order, the sales order line gets its value from LSSOLine during Availabilty_FieldSelecting . The wire-up on the page is on the tab via StatusField="Availability" . We can do something similar by

Create DAC that inherits from other DAC

北城以北 提交于 2019-12-13 19:17:57
问题 In Acumatica, there are instances where a DAC for a screen (e.g., Projects) is not directly bound to a table (PMProject), but inherits a DAC that IS bound to a table (Contract). Is there a good instructional reference source for doing this? 回答1: This theme is partially covered in T200 training course(Example 9.1). Basic principles: If you inherited some class DAC2 from the DAC1 bound to the SQL table then DAC2 will also be bound to the same SQL table. [Serializable] public partial class DAC1

How to enable CustomerOrderNbr field in Sales Order screen?

岁酱吖の 提交于 2019-12-13 18:17:46
问题 In Sales Order screen, I'm trying to enable the CustomerOrderNbr field if the status is completed protected void SOOrder_RowSelected(PXCache cache, PXRowSelectedEventArgs e) { SOOrder doc = e.Row as SOOrder; if (doc == null) { return; } if (doc.Completed == true ) { PXUIFieldAttribute.SetEnabled(cache, doc , true); PXUIFieldAttribute.SetEnabled<SOOrder.customerOrderNbr>(cache, doc, true); } } however, it remains disabled and not doing what it's supposed to do. So what am I doing wrong ? Am I

How to change the appearance of APInvoice types (Bill, Credit Adjustment, etc)?

萝らか妹 提交于 2019-12-13 18:09:27
问题 A client has troubles entering in Debit Adjustments and Credit Adjustments into Payables, because they are more familiar with the terms Debit Memos and Credit Memos. Because they have confuse the two, they often enter a Debit Adjustment when they mean to enter a Credit Adjustment. How can we change the appearance of the Debit and Credit Adjustments so they appear as Credit and Debit Memos? We have traced the source of where APInvoice gets the values of the DocType to the PX.Objects\AP

Modify Grid footer information (“On Hand X, Available Y, …”)

元气小坏坏 提交于 2019-12-13 10:22:18
问题 Is there any way with a customization to modify the information area at the footer of a grid particularly the Sales Order Entry > Document Details grid that displays On Hand & Availability information for the Current SOLine? 回答1: public virtual void SOLine_Availability_FieldSelecting(PXCache sender, PXFieldSelectingEventArgs e, PXFieldSelecting invokeBaseHandler) { invokeBaseHandler(sender, e); e.ReturnValue = "Hey There!"; } Availability seems to be a common descriptor/field for several line

How to Confirm the action clicked is the expected action when we add custom logic to existing actions

人盡茶涼 提交于 2019-12-13 07:46:16
问题 This is a continuation of this case I am trying to add custom logic to an existing action button in requisition screen. I can see the approve button before (or may be after) it gets approved i need to do some custom logic. After analyzing the current graph i came to the below solution public PXAction<RQRequisition> action; [PXUIField(DisplayName = "Actions")] [PXButton] protected virtual IEnumerable Action(PXAdapter adapter, [PXInt] [PXIntList(new int[] { 1, 2 }, new string[] { "Approve",

Schedule some task in Acumatica

混江龙づ霸主 提交于 2019-12-13 06:57:22
问题 I have following task: execute some event with some interval. In T200 manual I found that it can be done via Processing pages. For this I need to add graph with suffix process. But what puzzles me is how to make to appear buttons Process, Process All, Schedules? Another question which I have is how to execute some action by some schedule in Acumatica? What is recommended approach? 回答1: The key thing that distinguishes processing graphs from other kinds of pages in Acumatica is that they have

Acumatica: Sales Order custom calculation inconsistency

社会主义新天地 提交于 2019-12-13 05:47:25
问题 With some help and a lot of trial and error I was able to create a customization that allowed for the following: "Total Profit" field on the Sales Order summary area "GP %" field on the Sales Order summary area "Total Profit" field on the Sales Order details area (by line) "GP %" field on the Sales Order details area (by line) Total Profit = Ext. Price - Ext. Cost GP % = (Total Profit / Ext. Price) * 100 The calculation for these four fields works some of the time, but I have noticed when I

Acumatica Web Service Endpoint API

喜夏-厌秋 提交于 2019-12-13 05:42:04
问题 I am trying to use Postman to get data from the Acumatica Contact endpoint. I am doing this because I want to create a put and want to see the formatting of what is needed for the Contact Endpoint. I have logged in successfully using the PUT method and I am using the GET method on this URL: http://localhost/entity/Default/17.200.001/Contact However I am receiving this error when I push send: { "message": "An error has occurred.", "exceptionMessage": "Optimization cannot be performed.The