Auto deleting when it shouldn't?

I have a table ‘todo’ that stores todo items, along with their ‘type’. The type is either ‘ext’ or ‘int’.

What I want to do is when the user selects ‘ext’ or ‘int’ as the type of an event on the lightbox, it should add all todo items relevant to that type to the event.
I wasn’t sure how to do this using the existing API, so I’ve currently made my own script to attempt to do this. If you know how I can do this using the API, that would be great!

If not, any help on how to fix my current problem would be greatly appreciated!
I run a PHP function that gets sent the type and the event id. It then adds the todo items to the event through MySQL. Although the script is always being run, it doesn’t always seem to save the data to the database. And sometimes, it saves it and then gets deleted straight away. Could there be something that removes data in the database that wasn’t added by the system?

You can see it here: www.shul.co.uk/diary/admin/calendar.php

If you are using connector on server side - it will update only “events” table, and will not harm any other data ( all fields mentioned in connector configuration can be updated )

Normally you will want to use onAfterUpdate, onAfterInsert server side events of connector to attach some custom action to the saving routine.

Just realised that I can add to the comma separated string, and that it will save the correct details to the database based on that.
It all works now :slight_smile: