Changing schedule through UI library

Sep 22, 2014 at 7:23 PM
Hi,

I am trying to change schedule of any task by using UI library but it is not working as expected. It changes the time available in settings sections of Edit trigger but it does not change "for a duration of: "in advanced settings section of edit trigger. Please help on this issue.

Thanks in advance.
Coordinator
Sep 23, 2014 at 1:53 PM
Let me know if this documentation doesn't answer your question: https://taskscheduler.codeplex.com/wikipage?title=TriggerSamples
Sep 23, 2014 at 5:38 PM
Hi,

Thanks for quick reply. I am opening dialog using "TaskEditDialog" from my code. When I open edit trigger from the opened dialog then it is not saving "for a duration of: " setting in advanced settings section of trigger. Please help to resolve the issue.

Thanks in advance.
Coordinator
Sep 23, 2014 at 9:19 PM
See the first example "Using the editor" code on this page: https://taskscheduler.codeplex.com/wikipage?title=Examples. Make sure you are either setting the RegisterTaskOnAccept property to true before launching the dialog or you are re-registering the task when the user hits OK.
Sep 23, 2014 at 11:51 PM
Hi,

It is working fine with all values in drop down "for a duration of: " except for "Indefinitely". When I am selecting "Indefinitely" then some how it is not able to maintain the value. Could you please suggest if I am missing some property?

Thanks in advance.
Coordinator
Sep 24, 2014 at 4:07 PM
I have done this on Windows 8.1, XP and 7 without a problem. In my code, I'm setting the RegisterTaskOnAccept property of the TaskEditDialog to true and have a DailyTrigger that can set and unset the Trigger.Repetition.Duration to any value, including TimeSpan.Zero (Indefinitely), over and over using the UI. Will you post the code you are using to create the initial task and call the TaskEditDialog? I think it may be something with how you are calling the library.