Quintiq file version 2.0 #parent: #root Method ShowSnapshots ( structured[LibOpt_Snapshot] snapshots ) id:Method_LibOpt_FormAnalysisScopeElement_ShowSnapshots { #keys: '[139164.4.578216543]' Body: [* iterations := selectset( snapshots, Elements.IterationPart.IterationPartNM.Iteration, iteration, true ); // Find in Iterations form traverse( Form, Parent.SubComponents.astype( LibOpt_FormIteration ), form ) { list := form.ListIteration(); list.SelectByKey( iterations.Element( 0 ).Key() ); traverse( iterations, Elements, iteration ) { list.ExtendSelectByKey( iteration.Key() ); } } // Find in Snapshot form traverse( Form, Parent.SubComponents.astype( LibOpt_FormSnapshot ), form ) { list := form.ListSnapshot(); list.SelectByKey( snapshots.Element( 0 ).Key() ); traverse( snapshots, Elements, snapshot ) { list.ExtendSelectByKey( snapshot.Key() ); } } *] }