Quintiq file version 2.0
#parent: ListScenario
Response OnClick (
  ScenarioNode selection
) id:Response_ListScenario_MenuScenarioUnavailable_OnClick
{
  #keys: '[11766.1.296374866]'
  Body:
  [*
    // Unload scenario
    if( selection.istype( ScenarioFolder ) )
    {
      selection.SetUnavailable( ValueHolderUserGroup.Value() );
    }
    else
    {
      selection.SetUnavailable( '' );
    }
  *]
  DefinitionID => /ListScenario/Responsedef_ListScenario_Menu_OnClick
  Initiator: 'MenuScenarioUnavailable'
  Precondition:
  [*
    return selection.CanSetUnavailable( MacroPlan, feedback )
    // LSY: Comment out other IS stuff.
          //  or selection.CanSetUnavailable( DemandPlan, feedback )
  *]
  UserRequiresReadWrite: true
}
