Comments panel, deleteNote

I am trying to have two comments panel
add, note is ok, every note goes to the data base. But delete notes in the second comment panel(notestec) its always deleating notes from the fist data base “notes”.
How can fix it?

You aren’t giving runPrepUpdate any SQL to run. Like the commented line.

I need more info. What do you mean?

The first parameter of the runPrepUpdate needs some form of SQL to execute. Is ‘notestec’ a named query name? If so you will have to switch functions to system.db.runNamedQuery. Otherwise you will have replace it with some form of valid SQL to execute.

1 Like