Quintiq file version 2.0
#parent: MatrixEditorTransitionMatrix
Response OnUpdateValue (
  TransitionType_MP cell,
  Duration value
) id:Response_MatrixEditorTransitionMatrix_OnUpdateValue
{
  #keys: '[143600.0.1309781835]'
  CanBindMultiple: false
  DefinitionID: 'Responsedef_WebMatrixEditor_OnUpdateValue'
  GroupServerCalls: true
  QuillAction
  {
    Body:
    [*
      // Cell update
      feedback := "";
      sanityfb := "";
      isvalidinput := TransitionType_MP::ValidateInput( feedback,
                                                        sanityfb,
                                                        cell.Unit(),
                                                        cell.FromCampaignType(),
                                                        cell.ToCampaignType(),
                                                        0.0, 0.0,
                                                        value, // Pass cell value as min max as it will be checked below 
                                                        cell.DefaultMaxDuration(), // and show message box if violated min max
                                                        cell,
                                                        false, /*check unique*/
                                                        GlobalParameters_MP::GetCampaignTransitionsTypeDuration(),
                                                        false,
                                                        cell.HasInputMaxDuration() /*default max duration will be defined*/ );
      if( isvalidinput )
      { 
        cell.Update( cell.Unit(),
                     0.0, 0.0,
                     value,
                     cell.DefaultMaxDuration(),
                     cell.FromCampaignType(),
                     cell.ToCampaignType(),
                     GlobalParameters_MP::GetCampaignTransitionsTypeDuration(),
                     false,
                     cell.HasInputMaxDuration(), // Default max duration will be defined
                     false );
      }
      else
      {
        WebMessageBox::Warning( this, feedback, Translations::MessageBox_OK() );
      }
    *]
  }
}
