Skip to main content
Solved

PO505000 Mass Processing - Data disappears in custom Status


Forum|alt.badge.img

Hello!

We are trying to work with the PO505000 Massprocessing but we stumbled upon a problem without a clear solution. If the Order with the Articles marked for Purchase (SOLine.PoCreate) is in the Status Open, the screen PO505000 displays everything right. As soon as we switch to a custom defined Status (In Production) that we implemented with workflow changes, some data seems to disappear from the screen.

Please take a look at the following Screenshot for Reference.
Line 1 is in Status Open
Line 2 is in our Custom Status
 

As you can see, line 2 is missing several details like the Customer or the Order Nbr.
Yet it is still possible to click on the order nbr and it will redirect to the correct Order.
Is this a bug? Or do we have to implement something specific?

Greetings

Best answer by Leonardo Justiniano

Hi @jwestermann17 

You need to change (override) the query view for POCreate.FixedDemand to include your new states

 

Also consider to reviewing POCreate.SelectFromFixedDemandView which adds some additional conditions to that query. If you need to override it please do your new query with the same name and also override this function if you need to add such condition in a more dynamic way

namespace PX.Objects.PO
{
  public class POCreate_Extension : PXGraphExtension<POCreate>
  {
    [PXFilterable]
    public PXFilteredProcessingJoin<POFixedDemand, POCreateFilter,
      . . .
      . . . > FixedDemand;

    #region Event Handlers

    public delegate PXResultset<POFixedDemand> SelectFromFixedDemandViewDelegate();
    [PXOverride]
    public PXResultset<POFixedDemand> SelectFromFixedDemandView(SelectFromFixedDemandViewDelegate baseMethod)
    {
      // add your additional conditions here to the View BQL command
      // PXView query = new PXView(this, false, FixedDemand.View.BqlSelect);
      // query.WhereAnd<Where<. . .>>();

      return baseMethod();
    }


    #endregion
  }
}

 

View original
Did this topic help you find an answer to your question?

2 replies

Leonardo Justiniano
Jr Varsity II
Forum|alt.badge.img+4

Hi @jwestermann17 

You need to change (override) the query view for POCreate.FixedDemand to include your new states

 

Also consider to reviewing POCreate.SelectFromFixedDemandView which adds some additional conditions to that query. If you need to override it please do your new query with the same name and also override this function if you need to add such condition in a more dynamic way

namespace PX.Objects.PO
{
  public class POCreate_Extension : PXGraphExtension<POCreate>
  {
    [PXFilterable]
    public PXFilteredProcessingJoin<POFixedDemand, POCreateFilter,
      . . .
      . . . > FixedDemand;

    #region Event Handlers

    public delegate PXResultset<POFixedDemand> SelectFromFixedDemandViewDelegate();
    [PXOverride]
    public PXResultset<POFixedDemand> SelectFromFixedDemandView(SelectFromFixedDemandViewDelegate baseMethod)
    {
      // add your additional conditions here to the View BQL command
      // PXView query = new PXView(this, false, FixedDemand.View.BqlSelect);
      // query.WhereAnd<Where<. . .>>();

      return baseMethod();
    }


    #endregion
  }
}

 


Forum|alt.badge.img
  • Author
  • Jr Varsity III
  • 117 replies
  • July 26, 2022

Thank you @Leonardo Justiniano! Works!


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings