HelloÂ
I wanna add a custom field in invoice line (APTran)Â
this custiom field will contain a number of shipmentÂ
and i want it to be linked to the shipment .
Â
Thanks :)Â Â
HelloÂ
I wanna add a custom field in invoice line (APTran)Â
this custiom field will contain a number of shipmentÂ
and i want it to be linked to the shipment .
Â
Thanks :)Â Â
Hi
To have a link field for the customization column in the APTran grid. Please refer the below sample action code.Â
Extension Graph
public PXAction<ReRunSOSSaaSFilter> ViewSalesOrder;
    PXUIField(DisplayName = "Sales Orders", MapEnableRights = PXCacheRights.Select, MapViewRights = PXCacheRights.Select, Enabled = true, Visible = false)]
    PXButton(OnClosingPopup = PXSpecialButtonType.Refresh)]
    public virtual IEnumerable viewSalesOrder(PXAdapter adapter)
    {
      if (RunAddressyView.Current != null)
      {
        SOOrderEntry graph = PXGraph.CreateInstance<SOOrderEntry>();
        SOOrder objSOOrder = PXSelect<SOOrder, Where<SOOrder.orderNbr, Equal<Required<SOOrder.orderNbr>>>>.Select(graph, RunAddressyView.Current.OrderNbr);
        graph.Document.Current = objSOOrder;
        PXRedirectHelper.TryRedirect(graph, PXRedirectHelper.WindowMode.NewWindow);
      }
      return adapter.Get();
    }Â
.aspx page
<px:PXGridColumn DataField="usrSOOrderNbr" LinkCommand="ViewSalesOrder" />
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.