Skip to main content
Answer

POReceiptEntry graph extension: how do I get the POShipContact and POAddress using a POOrder?

  • January 17, 2025
  • 1 reply
  • 30 views

Forum|alt.badge.img+2

I have a POOrder object which contains both the ShipContactID and ShipAddressID.  How do I obtain POShipContact and POShipAddress using either BQL or PXSelect?

Best answer by Django

So one way to figure that out is to look at the code of POOrderEntry graph. A quick search on “address” finds this view within the graph:

[PXViewName(Messages.POShipAddress)]
public PXSelect<POShipAddress, Where<POShipAddress.addressID, Equal<Current<POOrder.shipAddressID>>>> Shipping_Address;

You can see that the POOrder.shipAddressID links to a POShipAddress record.

You should work through the training documentation. It will help you to figure this stuff out and understand it.

1 reply

Forum|alt.badge.img+7
  • Captain II
  • Answer
  • January 17, 2025

So one way to figure that out is to look at the code of POOrderEntry graph. A quick search on “address” finds this view within the graph:

[PXViewName(Messages.POShipAddress)]
public PXSelect<POShipAddress, Where<POShipAddress.addressID, Equal<Current<POOrder.shipAddressID>>>> Shipping_Address;

You can see that the POOrder.shipAddressID links to a POShipAddress record.

You should work through the training documentation. It will help you to figure this stuff out and understand it.