Quintiq file version 2.0 
 | 
#parent: #root 
 | 
Method GetHasValidLane ( 
 | 
  output Strings feedback_o, 
 | 
  output Strings sanitycheckfb 
 | 
) declarative remote as Boolean 
 | 
{ 
 | 
  Description: 'Check if product in lane is linked to a lane.' 
 | 
  TextBody: 
 | 
  [* 
 | 
    // desmondt Apr-24-2015 (created) 
 | 
     
 | 
    isvalid := not isnull( this.Lane() ); 
 | 
     
 | 
    if( not isnull( feedback_o ) and not isvalid ) 
 | 
    { 
 | 
      feedback_o.Add( SanityCheckMessage::GetFormattedMessage( this.GetInstanceText(), 
 | 
                                                               Translations::MP_ProductInLane_ViolateHasValidLane() ) ); 
 | 
      sanitycheckfb.Add( SanityCheckCategoryLevel::GetSanityCheckCategoryDataIssue() );                                                             
 | 
    } 
 | 
     
 | 
    return isvalid; 
 | 
  *] 
 | 
} 
 |