admin
2025-01-22 7e31442f0e9b07764e9c6a9680d3d4aeba5fe1de
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Quintiq file version 2.0
#parent: pnlNotRecurring/datStartDate
Response OnChanged () id:Response_pnlNotRecurring_datStartDate_OnChanged
{
  #keys: '[146730.0.907574506]'
  Body:
  [*
    // Adjust the EndDate accordingly.
    if( vhStartDate.Data().IsFinite() )
    {
      delta := this.Date() - vhStartDate.Data();
      datEndDate.Date( datEndDate.Date() + delta );
    }
     
    // Update the 'memory' for later delta-calculation, and/or setting the time back when AllDay is turned off.
    vhStartDate.Data( this.Date() );
    
    // Adjust StartOfPeriod accordingly for convenience.
    // EndOfPeriod is then also automatically adjusted.
    if( btnNoRecurrence.Pressed() )
    {
      datStartOfPeriod.Date();
    }
  *]
  CanBindMultiple: false
  DefinitionID: 'Responsedef_GUIDateSelector_OnChanged'
}