Quintiq file version 2.0
#parent: #root
Method FilterData () id:Method_FormSupplyChainOverview_FilterData
{
  #keys: '[136682.0.1905196425]'
  Body:
  [*
    //Set visibility of nodes
    nodes := selectset( DataHolderSupplyChainView.Data(), Node, n, n.GetNodeVisibility( DataHolderFocusedUnit.Data(), 
                                                                                        DataHolderFocusedStockingPoint.Data(),
                                                                                        DataHolderSupplyChainView.Data()) );
    DataHolderNode.Data(&nodes);
    
    edges := selectset( DataHolderSupplyChainView.Data(), StockingPointUnitEdge, edge,edge.GetNodeVisibility( DataHolderFocusedUnit.Data(),
                                                                                                              DataHolderFocusedStockingPoint.Data(),
                                                                                                              DataHolderSupplyChainView.Data() ));
    DataHolderStockingPointUnitEdge.Data( &edges );
    
    lanelegdges:= selectset(  DataHolderSupplyChainView.Data(), LaneLegEdge, edge, edge.GetNodeVisibility( DataHolderFocusedUnit.Data(),
                                                                                                           DataHolderFocusedStockingPoint.Data(),
                                                                                                           DataHolderSupplyChainView.Data() ) );
    DataHolderLaneLegEdge.Data( &lanelegdges );
  *]
}
