Quintiq file version 2.0 
 | 
#parent: #root 
 | 
StaticMethod GetHasValidName ( 
 | 
  String name, 
 | 
  String instancetext, 
 | 
  output String feedback_o, 
 | 
  output String sanitycheckfeedback_o 
 | 
) declarative remote as Boolean 
 | 
{ 
 | 
  Description: 'returns true if name is valid' 
 | 
  TextBody: 
 | 
  [* 
 | 
    // ying ying Nov-5-2014 (created) 
 | 
     
 | 
    value := name <> '' 
 | 
     
 | 
    if( not value ) 
 | 
    { 
 | 
      feedback_o := SanityCheckMessage::GetFormattedMessage( instancetext, 
 | 
                                                             Translations::MP_Recipe_ViolateHasValidName( GlobalParameters_MP::GetLengthOfNames() ) ); 
 | 
      sanitycheckfeedback_o := SanityCheckCategoryLevel::GetSanityCheckCategoryDataWarning(); 
 | 
    } 
 | 
     
 | 
    return value; 
 | 
  *] 
 | 
} 
 |