Quintiq file version 2.0
#parent: #root
Method New (
  internal[GUIComponent] parent,
  structured[LibOpt_Analysis] owners,
  LibOpt_ScopeElement scope_element,
  String tag,
  Boolean auto_update
) as structured[LibOpt_AnalysisFilterScopeElement] id:Method_DialogLibOpt_AnalysisFilterScopeElement_New
{
  #keys: '[139164.3.2007312809]'
  Body:
  [*
    data := owners.Element( 0 ).AnalysisFilter( relshadow, LibOpt_AnalysisFilterScopeElement );
    data.ScopeElement( relset, scope_element );
    data.Tag( tag );
    
    Dialog.Data( data );
    
    result := construct( LibOpt_AnalysisFilterScopeElements );
    if ( Dialog.DoModal( parent ) > 0 )
    {
      result := LibOpt_AnalysisFilterScopeElement::Create( owners,
                                                           scope_element,
                                                           data.AsInputScope(),
                                                           data.UseTag(),
                                                           data.Tag(),
                                                           auto_update );
    }
    
    return & result
  *]
  ReturnsOwning: true
}
