Scheduled jobs is a good funktion for many types of tasks, but I would like to be able to add a Tab in the Admin GUI.
That is most of the tasks have extra settings that i needed to be set by an administrator and also be changed from time to time.
As I see it I have 3 options today:
Have the settings in web.config or in a separate settingsfile that requires manual editing with for example notepad. This is risky because those files are sensitive to correct formating and if the setting is in web.config the IIS is restarted when saved.
Make a separate Tab in Admin|Settings and let the Administrator edit them from there. Bad because the settings GUI is not connected to the job GUI with history and run settings.
Make the Scheduled job into a Admin|Tools type of PlugIn. Then I have to make a lot of code around handling the history and run settings.
So my suggestion is to expand the ScheduledPlugInAttribute with the posibility to add a Tab and point out a *.ascx file to use under that Tab.
/Håkan
That really sounds like a good idea!
But I have another question and that is how to clear the history of the log file for the Schedule Plug In! Where can I find that?
Gustaf.
I don't think there is any way to do that with the EPiServer API. But it is easy to create a query or a stored procedure to clear the history.
Find the ScheduledItem in tblScheduledItem, and delete all rows in tblScheduledItemLog with that ScheduledItemId.
Regards
HAXEN