acumatica

Adding button on newly created tab

爱⌒轻易说出口 提交于 2019-12-25 02:48:22
问题 I want to add a new button on toolbar of my newly created tab. While I am trying to add a button to my class which is bind to that tab, by default, it goes to the main toolbar at the top instead of on the tab toolbar. Any suggestion? 回答1: By default, all actions will show up in the main toolbar. To hide them, you need to add an entry in the CallbackCommands section of the page. For example, if you look at the customers page, you will find an "Add Contact" button in the Contacts tab. This

Specified Cast is not Valid in new Master Screen of Acumatica ERP System

跟風遠走 提交于 2019-12-25 02:35:11
问题 I already create new additional master screen (ListView) in Acumatica. The following code is the source code of the page : <%@ Page Language="C#" MasterPageFile="~/MasterPages/ListView.master" AutoEventWireup="true" ValidateRequest="false" CodeFile="CS213000.aspx.cs" Inherits="Page__213000" Title="Untitled Page" %> <%@ MasterType VirtualPath="~/MasterPages/ListView.master" %> <asp:Content ID="cont1" ContentPlaceHolderID="phDS" runat="Server"> <px:PXDataSource ID="ds" runat="server" Visible=

How to interpret datetime as User's local timezone in Acumatica

十年热恋 提交于 2019-12-25 02:10:32
问题 We have a button "Start" that populates the dateStarted field to DateTime.Now.. When retrieving datetime, it always shows the server's date/time instead of user's local timezone version. How do i make it work like lastModifiedDateTime/CreatedDateTime that whenever we view it it's formatted as user's local timezone. I tried UseTimeZone = true/false but nothing is working Here is my code that is not working #region DateStarted public abstract class dateStarted : PX.Data.IBqlField { } protected

Confirming Shipment when Create Shipment called in Acumatica 2017 R2

為{幸葍}努か 提交于 2019-12-25 01:30:49
问题 I used the solution from this question to confirm shipments when the user clicked Create Shipment in version 6.x. Auto confirm shipment when create shipment from Sales Order by Automation Step I have since upgraded to the latest version, but this logic seems to no longer work when clicking Create Shipment. Instead when the line while (PXLongOperation.GetStatus(Base.UID, out timespan, out ex) == PXLongRunStatus.InProcess) { } is called, when the segment PXLongOperation.GetStatus(Base.UID, out

How do I get a programmatically imported file to show in Files and image display?

戏子无情 提交于 2019-12-25 00:34:29
问题 I have a custom object with a NoteID that I import along with two images related to it. I manually build the objects associated with uploading an image in code using an UploadFileMaintence graph. I can see the objects linked together in the database properly, and when I navigate to the custom detail page, the files show them as uploaded: However, when I click on the Files(2) button, when the dialog box comes up, I see nothing within the dialog: Here are the four related tables (CustomTable,

Acumatica Extending PMProjectStatusEx

无人久伴 提交于 2019-12-25 00:19:27
问题 I am working on the Project Budget Screen of acumatica, the screen uses the table PMProjectStatusEx which is a Projection table of PMProjectStatus. So I extended the PMProjectStatus table and added a field in there, I also extended the PMProjectStatusEx to add the same field and added it to the screen. But unlike the standard fields that updates the physical table PMProjectStatus my added field does not update the physical table. What could be the reason for this? Below is my code Thanks

Attach file to data row

霸气de小男生 提交于 2019-12-25 00:15:49
问题 I am trying to attach a text file to a data row in my custom object. I must be missing something. I have the pointer to the current record (asn) and the Byte array (retLabels.Labels) but I can't figure out what the third parameter should be. Also, do I need to execute an update and save after attaching the file? if (retLabels.Code == "OK" || ediDemo) { asnGraph.ASN.Current = asn; PXNoteAttribute.AttachFile(asn, retLabels.Labels, ???? PX.SM.FileInfo ); } 回答1: Create the file in memory: PX.SM

Acumatica - FieldUpdated - Enable / Disable another control when a checkbox is ticked / un-ticked

…衆ロ難τιáo~ 提交于 2019-12-24 20:09:56
问题 I have two custom fields, one is a tickbox, and the other is a text box, I wanted to change enabled/disable the text field on the screen when the tickbox value is changed, I added an event handler on the FieldUpdated event for the boolean checkbox control, and got the following code: protected void CROpportunity_MyCheckbox_FieldUpdated(PXCache cache, PXFieldUpdatedEventArgs e) { var row = (CROpportunity)e.Row; } Can I, and how to access other controls from this context? I guess I need to

Populate Field in Grid with selection of another Field

六月ゝ 毕业季﹏ 提交于 2019-12-24 18:52:03
问题 This specifically pertains to the Service Management module of Acumatica. On the Service Orders screen (SD300100) and under the Labor Tab. We would like when a new row is created and a Model Number is selected then the Service ID would automatically be populated based on what model number that is selected. I have coded this: protected void FSSODetService_ServiceID_FieldSelecting(PXCache cache, PXFieldSelectingEventArgs e) { var service = (FSSODetService)e.Row; if (service == null) return; var

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