Quintiq file version 2.0 
 | 
#parent: ListLibOpt_SnapshotReplannable 
 | 
Response OnClick ( 
 | 
  LibOpt_SnapshotReplannable selection 
 | 
) id:Response_ListLibOpt_SnapshotReplannable_MenuLoadDataset_OnClick 
 | 
{ 
 | 
  #keys: '[141860.2.521906311]' 
 | 
  Body: 
 | 
  [* 
 | 
    // Load the dataset that is attached to the replannable snapshot. 
 | 
    if( selection.istype( LibOpt_SnapshotReplannableCopyDataset ) ) 
 | 
    { 
 | 
      LibOpt_GlobalState.LoadDatasetSnapshotReplannable( selection.astype( LibOpt_SnapshotReplannableCopyDataset ) ); 
 | 
    } 
 | 
    else 
 | 
    { 
 | 
     selection.Plan(); 
 | 
    } 
 | 
  *] 
 | 
  CanBindMultiple: false 
 | 
  DefinitionID => /ListLibOpt_SnapshotReplannable/Responsedef_ListLibOpt_SnapshotReplannable_Menu_OnClick 
 | 
  Initiator: 'MenuLoadDataset' 
 | 
  Precondition: 
 | 
  [* 
 | 
    return not selection.istype( LibOpt_SnapshotReplannableCopyDataset ) 
 | 
           or LibOpt_GlobalState.LoadDatasetSnapshotReplannableAllowed( selection.astype( LibOpt_SnapshotReplannableCopyDataset ), false ); 
 | 
  *] 
 | 
} 
 |