Quintiq file version 2.0
#parent: #root
Method GetSalesPlanReportParameters (
  internal[GUIComponent] parent,
  output NamedValueTree parameters,
  output String format
) as Number id:Method_DialogGenerateSalesPlanReport_GetSalesPlanReportParameters
{
  #keys: '[107654.0.469112659]'
  Body:
  [*
    // This should be done by an overloaded GetReportParameters,
    // but super.GetReportParameters() is an error. Why?
    
    result := this.GetReportParameters( parent, parameters, format );
    
    if ( result > 0 )
    {
      saleslevelhandle := parameters.GetHandle( "SalesLevel" );
      parameters.Root().AddChild( saleslevelhandle, SelectionSalesLevel.Data().Name() );
    }
    
    return result;
  *]
}
