acumatica-kb

Excel file generation - API/Methods exposed?

余生长醉 提交于 2019-12-30 06:33:43
问题 Acumatica obviously has the ability to create excel files from various locations in the system. Is the methods used to generate the excel file exposed publicly by chance and can be used outside of the standard grid, report, import services? I have the need to be able to generate an excel file from one of my actions and attach this as a file attachment. I'd prefer to use the built in excel methods for simplicity if possible before I go down the route of including EPPlus dll's or similar. Thank

How to include field from a linked entity into Full-Text Entity Index?

落花浮王杯 提交于 2019-12-24 18:13:04
问题 I've added Customer Location to the Full-Text Entity Index, but cannot figure out how to get Address Line 1 from the Location to be part of the Full-Text Index and be displayed in the result. 回答1: To includes fields of linked entities (those which are in one-to-one relationship with the top-level entity on a data entry screen), it's required to specify what top-level entity field should be used along with the PXSelectorAttribute to retrieve the linked entity. Right after the top-level entity

Deleting orphan records created by Snapshot restore

痴心易碎 提交于 2019-12-11 23:17:16
问题 I have many snapshot restorations in my instance. Due to which I can see there are orphan records (with Company ID in negative). It’s on many tables, not just this one. Is there a process or best practice to clean this out? Or do we go table by table to run delete scripts to records that are not valid companyid. Please suggest. 回答1: You can use the pp_DeleteCompany stored procedure to delete the orphan snapshots. Example: EXEC pp_DeleteCompany -1234567 (assuming the CompanyID is -1234567) 来源:

Device Hub communication with printer queue

好久不见. 提交于 2019-12-11 17:24:57
问题 I'm trying to print the Inventory Items as labels and we have this code to set a report I create that receives the InventoryCD and prints the label with a Barcode and the Inventory descr of said item... the code does send the report to the Device Hub by creating the print job to do so but the printer queue is not receiving the print job. also, it was working before but it stopped working when I cancel a previous print job of the printer queue received from the device hub Has anyone face a

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

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

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 =

How to assign a business account to user in acumatica?

可紊 提交于 2019-12-09 03:26:19
问题 I am trying to assign an Business account to an user and not able to figure out how to do it. 回答1: I believe you are trying to customize Catalog form (SP700000) on Acumatica Portal site and getting Your user profile is not associated with any Business Account message. Associated business account check is done in constructor of the InventoryLineMaint Graph linked to this page and if not found; exception is raised which is correct by design. And that’s the reason you are seeing this message. To

How do I upload a file to an Acumatica Screen through HTTP virtual path?

末鹿安然 提交于 2019-12-08 04:24:32
问题 How do I upload a file to an Acumatica Screen through HTTP virtual path? For example, I would like to upload mysite.com/files/abc.pdf to the Sales orders screen. 回答1: Below is a code snippet to achieve your goal.It is reading file from HTTP URL and attaching it to one of the existing Case. //Graph for file management PX.SM.UploadFileMaintenance filegraph = PXGraph.CreateInstance<PX.SM.UploadFileMaintenance>(); //Since you need file from HTTP URL - below is a sample WebRequest request =

How to automatically create Note record in Acumatica?

瘦欲@ 提交于 2019-12-08 03:49:02
问题 I've noticed that whenever an AR Invoice gets saved, a record gets created in the Note table with the new invoice's note ID. Can you tell me how that is being accomplished? I'd like to get one of my screens to do the same thing. I guess there must be some kind of attribute on the either the DAC or the graph but I can't find it. I have the PXNote attribute on the NoteID column in my DAC but it does not cause a Note record to be automatically created. Thanks for your help. 回答1: To have Note