| Quintiq file version 2.0 | 
| #parent: ListSnapshot | 
| Response OnClick ( | 
|   LibOpt_SnapshotReplannable selection | 
| ) id:Response_ListSnapshot_MenuLoadDataset_OnClick_693 | 
| { | 
|   #keys: '[141860.2.171668323]' | 
|   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 => /ListSnapshot/Responsedef_ListSnapshot_Menu_OnClick | 
|   Initiator: 'MenuLoadDataset' | 
|   Precondition: | 
|   [* | 
|     return not selection.istype( LibOpt_SnapshotReplannableCopyDataset ) | 
|            or LibOpt_GlobalState.LoadDatasetSnapshotReplannableAllowed( selection.astype( LibOpt_SnapshotReplannableCopyDataset ), false ); | 
|   *] | 
| } |