| Quintiq file version 2.0 | 
| #parent: #root | 
| Method UpdateReplannableSnapshots | 
| { | 
|   Description: | 
|   [* | 
|     Some attributes of the `LibOpt_SnapshotReplannableCopyDataset` objects in this dataset might be outdated, because the status of some of the datasets might have changed while the user was working in another dataset. | 
|     These attributes are updated in `snapshot.Update(...)`. | 
|     The attributes are mainly used for the 'Status' image attribute column that is used in the 'Snapshots' and 'Replannable snapshots' forms. | 
|   *] | 
|   TextBody: | 
|   [* | 
|     // evr3 Apr-29-2020 (created) | 
|      | 
|     snapshots := selectset( this, Optimizer.Run.Snapshot.astype( LibOpt_SnapshotReplannableCopyDataset ), snapshot, true ); | 
|      | 
|     if( snapshots.Size() > 0 ) | 
|     { | 
|       // editor.ObjectInfos can be very expensive | 
|       editor := MDSEditor::Editor(); | 
|       objectinfos := editor.ObjectInfos(); | 
|       infocurrentdataset := editor.LoadedObjectInfo( this.MDSID() ); | 
|        | 
|       traverse( snapshots, Elements, snapshot ) | 
|       { | 
|         snapshot.Update( objectinfos, infocurrentdataset ); | 
|       } | 
|     } | 
|   *] | 
|   InterfaceProperties { Accessibility: 'Module' } | 
| } |