| Quintiq file version 2.0 | 
| #parent: #root | 
| Method GetReportParameters ( | 
|   internal[GUIComponent] parent, | 
|   NamedValueTree parameters, | 
|   output String format | 
| ) as Number id:Method_DialogGenerateBaseReport_GetReportParameters | 
| { | 
|   #keys: '[107654.0.438157920]' | 
|   Body: | 
|   [* | 
|     result := this.DoModal( parent ); | 
|      | 
|     if( result > 0 ) | 
|     { | 
|       // pack report parameters into a NamedValueTree | 
|       start := GUIDateTimeSelectorStart.DateTime().Date(); | 
|       end := GUIDateTimeSelectorEnd.DateTime().Date(); | 
|      | 
|       starthandle := parameters.GetHandle( "StartDate" ); | 
|       parameters.Root().AddChild( starthandle, start ); | 
|       endhandle := parameters.GetHandle( "EndDate" ); | 
|       parameters.Root().AddChild( endhandle, end ); | 
|      | 
|       format := StringSelectionReportFormat.BoundValue(); | 
|      | 
|     } | 
|      | 
|     return result; | 
|   *] | 
| } |