Quintiq file version 2.0
|
#parent: #root
|
MethodOverride DoSanityCheckData (
|
Strings feedback_o,
|
Strings sanitycheckfeedback_o
|
) declarative remote as Boolean
|
{
|
TextBody:
|
[*
|
// Checks if entity is valid
|
feedback := '';
|
sanitycheckfeedback := '';
|
|
isvalid := this.IsValidData();
|
|
if ( not this.IsValidData() )
|
{
|
feedback := Translations::MP_SubsetEntityInOptimizerPuzzle_InvalidEntity();
|
sanitycheckfeedback := SanityCheckCategoryLevel::GetSanityCheckCategoryDataIssue();
|
}
|
|
// Add feedback text
|
if( feedback <>'' )
|
{
|
subsetopt := MacroPlan::GetSubstituteName( this.EntityID() );
|
feedback:= SanityCheckMessage::GetFormattedMessage( Translations::MP_SubsetEntityInOptmizerPuzzle_Instance( subsetopt, this.OptimizerPuzzleName() ),
|
feedback );
|
}
|
|
// Add feedback text if input is invalid
|
if( not isnull( feedback_o ) and not isvalid )
|
{
|
feedback_o.Add( feedback );
|
sanitycheckfeedback_o.Add( sanitycheckfeedback );
|
}
|
|
return isvalid;
|
*]
|
}
|