Solved

Need help creating a graph extension for the Pick, Pack and Ship screen


Userlevel 6
Badge +3

I am trying to do some work on the Pick, Pack and Ship screen (SO302020).

When I add the screen to my project and select the FieldUpdating Event to add code to, I get this:

sing System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using System.Threading;
using PX.SM;
using PX.Common;
using PX.BarcodeProcessing;
using PX.Data;
using PX.Data.BQL;
using PX.Data.BQL.Fluent;
using PX.Objects.Common;
using PX.Objects.Common.Extensions;
using PX.Objects.Extensions;
using PX.Objects.AR;
using PX.Objects.CS;
using PX.Objects.IN;
using PX.Objects.IN.WMS;
using WMSBase = WarehouseManagementSystem<PickPackShip, PickPackShip.Host>;
using PX.Objects;
using PX.Objects.SO.WMS;

namespace PX.Objects.SO.WMS
{
public class PickPackShip+Host_Extension : PXGraphExtension<PX.Objects.SO.WMS.PickPackShip+Host>
{
public static bool IsActive() => true;

#region Event Handlers
protected void ScanHeader_PackageLineNbrUI_FieldUpdating(PXCache cache, PXFieldUpdatingEventArgs e)
{
var row = (ScanHeader)e.Row;
}
#endregion
}
}

There are a slew of errors.  I’m not sure what to do with the “+Host”.  If I remove it, there is an error

My goal is that when the Package field gets updated, I want to set a value in the ShipVia field in the SOShipment table.  The customer has one ship via specifically for a given package and they want it selected automatically for the Shipment.

 

I’m not sure where to go to find out what this +Host thing is.

icon

Best answer by Joe Schmucker 6 May 2024, 19:37

View original

2 replies

Userlevel 7
Badge +9

I guess you have typo error in your extension name “PickPackShip+Host_Extension”

Userlevel 6
Badge +3

that was what was generated by the project editor.  I just found another question on the forum and the code on that post show the “+” changed to a “.”.   

I changed it to a period and it now looks good.

 

Reply


About Acumatica ERP system
Acumatica Cloud ERP provides the best business management solution for transforming your company to thrive in the new digital economy. Built on a future-proof platform with open architecture for rapid integrations, scalability, and ease of use, Acumatica delivers unparalleled value to small and midmarket organizations. Connected Business. Delivered.
© 2008 — 2024  Acumatica, Inc. All rights reserved