Quintiq file version 2.0 #parent: #root Method HideStockingPointFromClient ( Boolean isshide ) id:Method_FormSupplyChainOverview_HideStockingPointFromClient { #keys: '[136682.0.1953991244]' Body: [* //This method will manually hide the node from client when user click to hide without waiting the status to be updated in server, just need to filter current children of current focus data nodes := DataHolderNode.Data(); current := selectset( DataHolderFocusedUnit.Data(), StockingPoint_MP.StockingPointNode, c, true, c.SupplyChainView()= DataHolderSupplyChainView.Data() ); if ( isshide ) { nodes := nodes.Difference( current ); } else { nodes := nodes.Union( current ); if ( nodes.Size() =0 ) { nodes := current.Copy(); } } DataHolderNode.Data( &nodes ); nodes := DataHolderNode.Data(); edges := construct( StockingPointUnitEdges ); if ( not ( isshide ) ) { //StockingpointEdge inputedge := selectset( nodes, Elements.InputStockingPointUnitEdge, edge, true, true ); outputedge := selectset( nodes, Elements.OutputStockingPointUnitEdge,edge, true, true ); edges := inputedge.Union( outputedge ); } DataHolderStockingPointUnitEdge.Data( &edges ); Form.FilterLanelegs(); *] }