Quintiq file version 2.0
#parent: pnlStartTime_844/dsStartDate
Response OnChanged () id:Response_pnlStartTime_844_dsStartDate_OnChanged
{
  #keys: '[131092.1.1288673033]'
  CanBindMultiple: false
  DefinitionID: 'Responsedef_WebDateTimeFieldBase_OnChanged'
  QuillAction
  {
    Body:
    [*
      if( dsEndDate.Date().IsFinite() )
      {
        // Adjust the EndDate accordingly.
        delta := this.Date() - dhStartDate.Data();
        
        if( delta <> 0 )
        {
          dsEndDate.Date( dsEndDate.Date() + delta );
        }
      }
      
      // Update the 'memory' for later delta-calculation.
      dhStartDate.Data( this.Date() );
    *]
    GroupServerCalls: false
  }
}
