Hi all,
I am trying to override the ShipmentScheduleSelect data view declared in SOShipmentEntry. This data view has two optional parameters and five required parameters, so in my graph extension I define a data view delegate with 7 parameters of exactly the same types as the data view. As far as I understand, this is all that’s necessary. It shouldn’t be necessary to redefine the data view itself because I am not referring to the data view in the delegate.
But I can’t get my delegate invoked. Please see below code snippets of the original data view and my delegate. What am I doing wrong?
Thanks,
Ben.
public PXSelectJoin<SOShipmentPlan,
InnerJoin<SOLineSplit, On<SOLineSplit.planID, Equal<SOShipmentPlan.planID>>,
InnerJoin<SOLine, On<SOLine.orderType, Equal<SOLineSplit.orderType>, And<SOLine.orderNbr, Equal<SOLineSplit.orderNbr>, And<SOLine.lineNbr, Equal<SOLineSplit.lineNbr>>>>,
InnerJoin<InventoryItem, On<InventoryItem.inventoryID, Equal<SOShipmentPlan.inventoryID>>,
LeftJoin<INLotSerClass,
On<InventoryItem.FK.LotSerialClass>,
LeftJoin<INSite,
On<SOLine.FK.Site>>>>>>,
Where<SOShipmentPlan.siteID, Equal<Optional<SOOrderFilter.siteID>>,
And<SOShipmentPlan.planDate, LessEqual<Optional<SOOrderFilter.endDate>>,
And<SOShipmentPlan.orderType, Equal<Required<SOOrder.orderType>>,
And<SOShipmentPlan.orderNbr, Equal<Required<SOOrder.orderNbr>>,
And2<Where<SOLine.lineNbr, Equal<Required<SOLine.lineNbr>>, Or<Required<SOLine.lineNbr>, IsNull>>,
And<SOLine.operation, Equal<Required<SOLine.operation>>,
And<Not<Exists<Select<SOShipLine,
Where<SOShipLine.origOrderType, Equal<SOLineSplit.orderType>,
And<SOShipLine.origOrderNbr, Equal<SOLineSplit.orderNbr>,
And<SOShipLine.origLineNbr, Equal<SOLineSplit.lineNbr>,
And<SOShipLine.origSplitLineNbr, Equal<SOLineSplit.splitLineNbr>,
And<Where<SOShipLine.shipmentNbr, IsNull,
Or<SOShipLine.shipmentNbr, NotEqual<Current<SOShipment.shipmentNbr>>>>>>>>>>>>>>>>>>>,
OrderBy<Asc<SOLineSplit.orderType,
Asc<SOLineSplit.orderNbr,
Asc<SOLineSplit.lineNbr,
Asc<SOLineSplit.splitLineNbr>>>>>> ShipmentScheduleSelect;
public virtual IEnumerable ShipmentScheduleSelect(int? siteId, DateTime? endDate, string orderType, string orderNbr, int? orderLineNbr, int? orderLineNbr2, string operation)
{
return (new PXSelectJoin<SOShipmentPlan,
InnerJoin<SOLineSplit, On<SOLineSplit.planID, Equal<SOShipmentPlan.planID>>,
InnerJoin<SOLine, On<SOLine.orderType, Equal<SOLineSplit.orderType>, And<SOLine.orderNbr,
Equal<SOLineSplit.orderNbr>, And<SOLine.lineNbr, Equal<SOLineSplit.lineNbr>>>>,
InnerJoin<InventoryItem, On<InventoryItem.inventoryID, Equal<SOShipmentPlan.inventoryID>>,
LeftJoin<INLotSerClass,
On<InventoryItem.FK.LotSerialClass>,
LeftJoin<INSite,
On<SOLine.FK.Site>>>>>>,
Where<SOShipmentPlan.siteID, Equal<Optional<SOOrderFilter.siteID>>,
And<SOShipmentPlan.orderType, Equal<Required<SOOrder.orderType>>,
And<SOShipmentPlan.orderNbr, Equal<Required<SOOrder.orderNbr>>,
And2<Where<SOLine.lineNbr, Equal<Required<SOLine.lineNbr>>,
Or<Required<SOLine.lineNbr>, IsNull>>,
And<SOLine.operation, Equal<Required<SOLine.operation>>,
And<Not<Exists<Select<SOShipLine,
Where<SOShipLine.origOrderType, Equal<SOLineSplit.orderType>,
And<SOShipLine.origOrderNbr, Equal<SOLineSplit.orderNbr>,
And<SOShipLine.origLineNbr, Equal<SOLineSplit.lineNbr>,
And<SOShipLine.origSplitLineNbr, Equal<SOLineSplit.splitLineNbr>
,
And<Where<SOShipLine.shipmentNbr, IsNull,
Or<SOShipLine.shipmentNbr,
NotEqual<Current<
SOShipment.shipmentNbr>>>>>>>>>>>>>>>>>>,
OrderBy<Asc<SOLineSplit.orderType,
Asc<SOLineSplit.orderNbr,
Asc<SOLineSplit.lineNbr,
Asc<SOLineSplit.splitLineNbr>>>>>>(Base)).Select(siteId, orderType, orderNbr, orderLineNbr, orderLineNbr2, operation);
}