Quintiq file version 2.0
|
#parent: #root
|
Method ValidateInput (
|
output String feedback_o,
|
String excelpath
|
) as Boolean id:Method_DialogImportObjectGroupInProfile_ValidateInput
|
{
|
#keys: '[132894.0.64222075]'
|
Body:
|
[*
|
// verify whether the current input is valid
|
// currently only checking excel path
|
|
result := Application.ClientFileExists( excelpath )
|
or not exists( this.Data(), ImportObjectGroupInUserProfile, e,
|
e.IsIncludeInImportExport() and
|
e.Source() = MPSyncUtility::ID_Source_Excel() );
|
|
if ( not result )
|
{
|
feedback_o := Translations::MPSync_ImportProfile_ValidateInput_IsInvalidExcelPath();
|
}
|
else if ( not exists( this.Data(), ImportObjectGroupInUserProfile, e,
|
e.IsIncludeInImportExport() ) )
|
{
|
feedback_o := Translations::MP_Designer_ImportPathAndCheckBoxes();
|
}
|
|
|
return feedback_o = '';
|
*]
|
}
|