Quintiq file version 2.0
#parent: PanelStart/CheckboxStart
Response OnUserChanged () id:Response_PanelStart_CheckboxStart_OnUserChanged
{
  #keys: '[139394.0.996977071]'
  CanBindMultiple: false
  DefinitionID: 'Responsedef_WebCheckbox_OnUserChanged'
  QuillAction
  {
    Body:
    [*
      // Update date time selector value when we toggle the checkbox
      checked   := this.Checked();
      dateValue := guard( Form.DataHolderDialogData().Data().StartDate(), MacroPlan.Start().Date() );
      
      dsStart.Enabled( checked, "" ); 
      
      if( checked )
      {
        start := ifexpr( dateValue.IsFinite()
                        ,dateValue
                        ,MacroPlan.StartOfPlanning().Date() );
        dsStart.Date( start );
      }
      else if( not checked )
      {
        dsStart.Date( Date::MinDate() );
      }
    *]
    GroupServerCalls: false
  }
}
