Quintiq file version 2.0
#parent: #root
Method New (
  internal[GUIComponent] parent,
  shadow[LibOpt_Analysis] owner,
  String attribute_name,
  Real value
) as shadow[LibOpt_AnalysisFilterAttribute] id:Method_DialogLibOpt_AnalysisFilterAttribute_New_347
{
  #keys: '[139164.3.1997350213]'
  Body:
  [*
    data := owner.AnalysisFilter( relnew, LibOpt_AnalysisFilterAttribute, Value := value );
    data.AttributeName( attribute_name );
    
    Dialog.Data( data );
    
    if ( Dialog.DoModal( parent ) < 0 )
    {
      data.Delete();
    }
    
    return data;
  *]
}
