Quintiq file version 2.0
#parent: #root
Method Update () id:Method_SWF_DialogWorkflowParameter_Update
{
  #keys: '[157912.0.854199142]'
  Body:
  [*
    // Update workflow settings
    previousCheckState := SWF_WorkflowDataset.IsIntegrationEnabled();
    SWF_WorkflowDataset.SetIsIntegrationEnabled( CheckboxIntegration.Checked(),
                                                 CheckboxIntegration.Checked() <> previousCheckState, // require update
                                                 SWF_CommunicationDataset );        
    
    service := SWF_WorkflowDataset.Service();
    service.TR_UpdateGlobalParameter( not CheckboxCurrentDateAutomatic.Checked(),
                                      DateSelectorCurrentDate.Date(),
                                      SWF_WorkflowDataset.GlobalParameter().CurrentDateFromDaemon(),
                                      SWF_WorkflowDataset.IsWorkflowEnabled() );
  *]
}
