Quintiq file version 2.0
#parent: ListScenario
Response OnClick (
  structured[ScenarioNode] selection
) id:Response_ListScenario_MenuScenarioAvailable_OnClick
{
  #keys: '[11766.1.296297624]'
  Body:
  [*
    // Load scenario
    ScenarioNode::SetAvailable( selection, ValueHolderUserGroup.Value() );
  *]
  CanBindMultiple: false
  DefinitionID => /ListScenario/Responsedef_ListScenario_Menu_OnClick
  Initiator: 'MenuScenarioAvailable'
  Precondition:
  [*
    // derred, [dataset-store storage]
    return ScenarioNode::CanSetAvailable( feedback,
                                          ScenarioManager,
                                          selection,
                                          Domain.MDSStorageDefinitionManager().DatasetStoreEnabled() );
  *]
  UserRequiresReadWrite: true
}
