Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Creating a DotNetNuke schedulerCreating a DotNetNuke scheduler
Previous
 
Next
New Post
1/17/2009 9:01 AM
 

I was able to find articles on the web explaining how to use DNN scheduling & how to write classes for the same.

However, all those articles explained registering the scheduler class manually. No article explained the how to automatically register a scheduled task.

So, does DNN provide any separate scheduler kind of a thing? i.e. like we package modules, skins, is there any way of packaging a schedule class independently?

If no, then I believe, a scheduler needs to be installed with some module. Is there any module manifest file setting, that registers the scheduler class with DNN automatically during module installation process?

 
New Post
1/19/2009 12:08 AM
 

Hey r_honey,

I believe that people who create scheduled tasks with their modules just use a SQL script to insert that data into the appropriate tables in the database.

Take care,

Ian


Software Engineer
Co-Founder, dnnGallery
Stack Overflow: Ian Robinson
Twitter: @irobinson
Linked In: Ian Robinson
 
New Post
1/23/2009 12:05 AM
 

I dont think it is a good idea to insert data manually into DNN tables. Instead I would recommed implementing IUpgradable on Module Controller class, and use the appropriate DNN's controller to register a scheduler.

But coming back to my original question, your reply makes it sound like there is no separate stand-alone installer package for a scheduler (like modules, skins, containers etc.).

That also means that schedulers always have to piggy-back on a module to install them into DNN. And there is no automatic way to register them while module installation. Am I correct??

 
New Post
1/23/2009 12:37 AM
 

A scheduler module for all intents and purposes is still a module. You can create a module which only has a scheduler interface but no UI and create a script that registers the module's scheduler (SQL Script that is) which writes the appropriate one line of code in the Schedule table. I've done this several times and it's as automated as you get.

So to summarize, simply create the manifest for your module, include the SQLDataProvider file with it and the module's dll and in your script make sure you write the appropriate insert statement for the Schedule table. When your user "installs" the module, it will automatically install the scheduler for them as part of the module installation.
Sanjay


AcuitiDP - Oracle Data Provider for DotNetNuke
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Creating a DotNetNuke schedulerCreating a DotNetNuke scheduler


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out