Quintiq file version 2.0
#parent: MatrixEditorTimeCapacities
Response OnCheckEditability (
  UnitPeriodTime cell,
  Real value
) id:Response_MatrixEditorTimeCapacities_OnCheckEditability
{
  #keys: '[136682.1.1060481056]'
  CanBindMultiple: false
  DefinitionID: 'Responsedef_WebMatrixEditor_OnCheckEditability'
  QuillAction
  {
    Body:
    [*
      //Can edit efficiency
      feedback := "";
      unitperiods := construct( UnitPeriods );
      unitperiods.Add( cell );
      
      canedit := UnitPeriod::CanEdit( unitperiods, feedback ) 
                    and cell.CanEditAttribute( feedback,  focusedattribute ); 
      editinfo.CanEdit( canedit );
      editinfo.UserHint( feedback );
      
      if ( canedit and focusedattribute = attribute( UnitPeriodTime, Efficiency).Name() ) 
      {  
         // cannot be smaller than 0.0
         editinfo.MinValue( 0.0 );
      }
    *]
    GroupServerCalls: false
  }
}
