Quintiq file version 2.0
#parent: #root
Response OnClick (
  structured[Unit] selection
) id:Response_ListUnitTree_MenuShowHideNode_OnClick
{
  #keys: '[121072.0.302764611]'
  Body:
  [*
    // Show or hide units
    nodes := selectset ( selection, Elements.UnitNode, nn, nn.SupplyChainView() = DataHolderView.Data(), true );
    DataHolderView.Data().ShowOrHideNodes( nodes );
    
    // Toggle on value holder to indicate changes
    ApplicationLibMacroPlanner.SetSupplyChainOverviewWarning();
  *]
  CanBindMultiple: false
  DefinitionID => /Responsedef_ListUnitTree_Menu_OnClick
  Initiator: 'MenuShowHideNode'
}
