Forum Discussion
JackLacava
2 years agoHonored Contributor
Nice one, Nick!
For the curious, the core of the code looks like this:
Dim dmSchedItem As List(Of DataMgmtScheduleItemEx) = _
DataMgmtScheduleWcf.GetScheduledJobs(dbConnFW, dbConnApp, False)
For Each schedJob As DataMgmtScheduleItemEx In dmSchedItem
'adjust the start time based on what the user defines
schedJob.DataMgmtScheduleItem.StartTime = _
schedJob.DataMgmtScheduleItem.StartTime.AddHours(Convert.ToDouble(hourAdjustment))
' Function SaveScheduledJob(dbConnFW As DbConnInfo,dbConnApp As DbConnInfo,isNew As TriStateBool)
DataMgmtScheduleWcf.SaveScheduledJob( _
dbConnFW, dbConnApp, schedJob.DataMgmtScheduleItem, TriStateBool.FalseValue)
Next
That surfaces an interesting API to DM jobs that can have interesting applications. Cheers!
Related Content
- 12 months ago
- 9 months ago
- 11 months ago
- 2 months ago
- 7 months ago