Quintiq file version 2.0
#parent: #root
Method New (
  internal[GUIComponent] parent,
  structured[LibOpt_Analysis] owners,
  LibOpt_Component component,
  String attribute_path,
  String attribute_name,
  Real value,
  Boolean auto_update
) as structured[LibOpt_AnalysisFilterAttribute] id:Method_DialogLibOpt_AnalysisFilterAttribute_New
{
  #keys: '[139164.3.1997350211]'
  Body:
  [*
    data := construct( shadow[LibOpt_AnalysisFilterAttribute], Value := value );
    data.AttributePath( attribute_path );
    data.AttributeName( attribute_name );
    data.Component( relset, component );
    
    Dialog.Data( data );
    
    result := construct( LibOpt_AnalysisFilterAttributes );
    if ( Dialog.DoModal( parent ) > 0 )
    {
      result := LibOpt_AnalysisFilterAttribute::Create( owners,
                                                        data.Component(),
                                                        data.AttributePath(),
                                                        data.AttributeName(),
                                                        data.Sense(),
                                                        data.Value(),
                                                        auto_update );
    }
    
    return & result;
  *]
  ReturnsOwning: true
}
