Quintiq file version 2.0 
 | 
#parent: #root 
 | 
Method NewTrip ( 
 | 
  internal[GUIComponent] parent 
 | 
) as Trip id:Method_DialogCreateEditTrip_NewTrip 
 | 
{ 
 | 
  #keys: '[113694.0.1559949932]' 
 | 
  Body: 
 | 
  [* 
 | 
    // New trip without pispip 
 | 
     
 | 
    data := construct( shadow [Trip], ID := "" ); // Temporary set ID to empty, will be set in Create method 
 | 
     
 | 
    Dialog.Data( data ); 
 | 
    Dialog.SetDefaultValue(); 
 | 
     
 | 
    result := this.DoModal( parent ); 
 | 
    trip := null( Trip ); 
 | 
     
 | 
    if( result > 0 ) 
 | 
    { 
 | 
      trip := Trip::Create( data.LaneLeg(), 
 | 
                            data.Arrival() ); 
 | 
    } 
 | 
     
 | 
    return trip; 
 | 
  *] 
 | 
} 
 |