Quintiq file version 2.0
#parent: #root
Method New (
  internal[GUIComponent] parent
) as Routing id:Method_DialogCreateEditRouting_New
{
  #keys: '[113694.1.1907226143]'
  Body:
  [*
    // Create new routing
    
    data := MacroPlan.Routing( relshadow, ID := "" );// Temporary set ID to empty, will be defined by user in the interface
    
    Dialog.Data( data );
    result := this.DoModal( parent );
    
    if( result > 0 )
    {
      data.Commit();
    }
    
    return data.WrappedInstance();
  *]
}
