This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Create/Delete Scheduler events
#1
Hey,

I am trying to figure out a way to create/delete schedulers/scheduler events from scripts.
I found that you can update values in pre-existing schedulers and events but is it possible to create them from scripts?

I am currently using this to update the values within already created events.

Code:
    db:update('scheduler_events', { --Update schedulers
      start_hour = startHr,
      start_min = startMin
       }, { name = schedEvent} )
Reply
#2
You can insert data like this. But you have to carefully fill all fields, there's no guarantee that it will work if some field value are incorrect.
Code:
db:insert('scheduler_events', {
  start_hour = startHr,
  start_min = startMin,
  -- remaining fields here
})
Reply


Forum Jump: