# Comments panel, deleteNote

**URL:** <https://forum.inductiveautomation.com/t/comments-panel-deletenote/38549>\
**Category:** Ignition\
**Tags:** ignition80\
**Created:** [September 10, 2020, 10:03am UTC](https://forum.inductiveautomation.com/t/comments-panel-deletenote/38549 "2020-09-10T10:03:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![OscarLucas](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/oscarlucas/32/6417_2.png) [@OscarLucas](https://forum.inductiveautomation.com/u/OscarLucas)\
**Post date:** [September 10, 2020, 10:03am UTC](https://forum.inductiveautomation.com/t/comments-panel-deletenote/38549/1 "2020-09-10T10:03:55Z")

</div>

I am trying to have two comments panel  
-notes  
-notestec  
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?

 ![Captura](https://us1.discourse-cdn.com/inductiveautomation/original/3X/f/6/f629545c7aba5c04f8a354779c82c665a96e37b9.jpeg)

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [September 10, 2020, 1:06pm UTC](https://forum.inductiveautomation.com/t/comments-panel-deletenote/38549/2 "2020-09-10T13:06:25Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![OscarLucas](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/oscarlucas/32/6417_2.png) [@OscarLucas](https://forum.inductiveautomation.com/u/OscarLucas)\
**Post date:** [July 15, 2022, 12:02pm UTC](https://forum.inductiveautomation.com/t/comments-panel-deletenote/38549/3 "2022-07-15T12:02:56Z")

</div>

I need more info. What do you mean?

---

<div class="post-metadata">

**Author:** ![grietveld](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/grietveld/32/6984_2.png) [@grietveld](https://forum.inductiveautomation.com/u/grietveld)\
**Post date:** [July 15, 2022, 12:20pm UTC](https://forum.inductiveautomation.com/t/comments-panel-deletenote/38549/4 "2022-07-15T12:20:16Z")

</div>

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.
