Skip to main content

I created an extension to SOCreateShipment, to override the Data View for ‘Orders’. I made this change:

  public class SOCreateShipment_Extension : PXGraphExtension<SOCreateShipment>
  {
    #region Data Views
    rPXFilterable]
    public PXFilteredProcessing<SOOrder, SOOrderFilter,
              Where<True, Equal<True>>,
              OrderBy<Asc<SOOrder.requestDate>>> Orders;
    #endregion

    #region isActive
    public static bool IsActive()
    {
       return true;
    }
    #endregion
  }

I wanted only to override the OrderBy for the view, but I was forced to also add a ‘Where’ clause to the PXFilteredProcessing class. Now when I run the program, the OrderBy clause works properly, but the filter for the selected rows is now selecting all rows. The View has a delegate method ‘orders’ that has a more filtered where clause. But, when I debug SOCreateShipment, the ‘orders’ delegate method is never reached. If I remove this extension, the ‘orders’ delegate method IS reached. So the question is, when you override a base Data View, that also has a delegate method, do you ALSO have to override the delegate method?

@rdennisj57 Try overriding the view delegate as well but calling the baseMethod only.


Hi Dioris, thanks SO much for the advice. I tried this change and it worked! I’m getting the desired results now!


Reply