Skip to main content
Answer

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

  • May 6, 2024
  • 2 replies
  • 125 views

Joe Schmucker
Captain II
Forum|alt.badge.img+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.

Best answer by Joe Schmucker

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.

 

2 replies

aaghaei
Captain II
Forum|alt.badge.img+10
  • Captain II
  • May 6, 2024

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


Joe Schmucker
Captain II
Forum|alt.badge.img+3
  • Author
  • Captain II
  • Answer
  • May 6, 2024

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.