Quintiq file version 2.0 #parent: ToolbarMain/ValueHolderIsImportSucceed Response OnValueChanged () id:Response_ToolbarMain_ValueHolderIsImportSucceed_OnValueChanged { #keys: '[124808.0.1190030302]' Body: [* // Change the icon of the import button on the toolbar ButtonToolbarImportAll.SetProperty( 'Tooltip', '' ); tooltip := Translations::MP_Designer_ImportAll_Tooltip(); value := ValueHolderIsImportSucceed.Data(); if( value ) { ButtonToolbarImportAll.SetProperty( 'Image', 'IMPORT1' ); ButtonToolbarImportAll.SetProperty( 'Tooltip', tooltip ); } else if ( not isnull( MacroPlan ) ) { ButtonToolbarImportAll.SetProperty( 'Image', 'DATA_ERROR'); importmessages := '

' + MacroPlan.ImportMessage().ReplaceAll( ";","
"); failedimportmessage := tooltip + '
' + '
' + Translations::MP_Designer_ApplicationMacroPlanner_ValueHolderIsImportSucceed(); failedimportmessage := failedimportmessage + "
" + importmessages + '

'; ButtonToolbarImportAll.SetProperty( 'Tooltip', failedimportmessage ); } *] CanBindMultiple: false DefinitionID: 'Responsedef_ValueHolder_OnValueChanged' Precondition: [* return MacroPlan::HasMacroPlan( MacroPlan, feedback ); *] }