Quintiq file version 2.0
#parent: #root
Method NewGroup (
  internal[GUIComponent] parent
) as Group id:Method_DialogCreateEditGroup_NewGroup
{
  #keys: '[100628.0.166033941]'
  Body:
  [*
    // New group
    
    data := MacroPlan.Group( relshadow, Name := "" );// Set to empty, will be based on user defined value
    Dialog.Data( data );
    
    result := Dialog.DoModal( parent );
    newobj := null( Group );
    
    if( result > 0 )
    {
      newobj := Group::Create( MacroPlan,
                               EditorName.Text(),
                               data.IconForStockingPoints(),
                               data.IconForUnits(),
                               false );
    }
    
    return newobj;
  *]
}
