Quintiq file version 2.0 #parent: #root Method GetActivatedFormIteration () as LibOpt_FormIteration id:Method_LibOpt_GlobalState_GetActivatedFormIteration { #keys: '[151132.0.11775720]' Body: [* // Get an activated LibOpt_FormIteration instance. formiteration := select( Application.Frame(), SubComponents.astype( LibOpt_FormIteration ), form, true ); // Construct the form if it doesn't exist yet. if( isnull( formiteration ) ) { formiteration := construct( LibOpt_FormIteration ); Application.Frame().ShowForm( &formiteration ); } // Set focus on the form. formiteration.Activate(); // Clear the current selections in the list. listiteration := formiteration.ListIteration(); listiteration.SelectByKey( Key::ZeroKey() ); return formiteration; *] }