# Perspective Equipment Schedule - Delete event doesn't fire

**URL:** <https://forum.inductiveautomation.com/t/perspective-equipment-schedule-delete-event-doesnt-fire/99979>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [December 18, 2024, 1:49pm UTC](https://forum.inductiveautomation.com/t/perspective-equipment-schedule-delete-event-doesnt-fire/99979 "2024-12-18T13:49:57Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aiasa21](https://avatars.discourse-cdn.com/v4/letter/a/aeb1de/32.png) [@Aiasa21](https://forum.inductiveautomation.com/u/Aiasa21)\
**Post date:** [December 18, 2024, 1:49pm UTC](https://forum.inductiveautomation.com/t/perspective-equipment-schedule-delete-event-doesnt-fire/99979/1 "2024-12-18T13:49:57Z")

</div>

Good afternoon,  
I'm setting an Equipment Schedule component. I start making some tests with the add, move and delete events and everything was working fine.

After moving on the job I try to delete again but with no success, now I'm at the point that the only code that I fire in the "onDeleteEvent" is this:

```python
system.perspective.print("HERE")

```

and it is not print in the browser, it looks like the event is not fired.  
The "deleteEnabled" option is selected.

I've tried to insert a new empty equipment schedule component and the delete events is fired, so the problem is in the one that I'm using; I could start from zero but I should do all the job again.

What could I try to do?

Thank you for the help

---

<div class="post-metadata">

**Author:** ![dkhayes117](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dkhayes117/32/68344_2.png) [@dkhayes117](https://forum.inductiveautomation.com/u/dkhayes117)\
**Post date:** [December 18, 2024, 1:59pm UTC](https://forum.inductiveautomation.com/t/perspective-equipment-schedule-delete-event-doesnt-fire/99979/2 "2024-12-18T13:59:21Z")

</div>

> [@Aiasa21](#):
>
> and even this is print in the browser, it looks like the event is not fired.

I do not understand what you are saying. If `HERE` is printing in the browser, then the event _ **is** _ being fired.

---

<div class="post-metadata">

**Author:** ![Aiasa21](https://avatars.discourse-cdn.com/v4/letter/a/aeb1de/32.png) [@Aiasa21](https://forum.inductiveautomation.com/u/Aiasa21)\
**Post date:** [December 18, 2024, 2:00pm UTC](https://forum.inductiveautomation.com/t/perspective-equipment-schedule-delete-event-doesnt-fire/99979/3 "2024-12-18T14:00:38Z")

</div>

I'm sorry I write in a bad way.

Actually it is not printing in the browser.

---

<div class="post-metadata">

**Author:** ![dkhayes117](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dkhayes117/32/68344_2.png) [@dkhayes117](https://forum.inductiveautomation.com/u/dkhayes117)\
**Post date:** [December 18, 2024, 2:16pm UTC](https://forum.inductiveautomation.com/t/perspective-equipment-schedule-delete-event-doesnt-fire/99979/4 "2024-12-18T14:16:28Z")

</div>

Make sure you have an item selected. If you push the delete button without a selection made, the event will not fire.

---

<div class="post-metadata">

**Author:** ![Aiasa21](https://avatars.discourse-cdn.com/v4/letter/a/aeb1de/32.png) [@Aiasa21](https://forum.inductiveautomation.com/u/Aiasa21)\
**Post date:** [December 18, 2024, 2:34pm UTC](https://forum.inductiveautomation.com/t/perspective-equipment-schedule-delete-event-doesnt-fire/99979/5 "2024-12-18T14:34:04Z")

</div>

I add the follow code in the `onClickEvent`

```python
	system.perspective.print(event.eventId)
	system.perspective.print(event.itemId)

```

and I have the data print in the browser

```python
event_3926
4

```

so I click the delete icon but nothing happen, and I confirm that in the `onDeleteEvent` I have only this code:

```python
	system.perspective.print("HERE")

```

---

<div class="post-metadata">

**Author:** ![dkhayes117](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dkhayes117/32/68344_2.png) [@dkhayes117](https://forum.inductiveautomation.com/u/dkhayes117)\
**Post date:** [December 18, 2024, 2:41pm UTC](https://forum.inductiveautomation.com/t/perspective-equipment-schedule-delete-event-doesnt-fire/99979/6 "2024-12-18T14:41:54Z")

</div>

Check your gateway logs for script errors.

---

<div class="post-metadata">

**Author:** ![Aiasa21](https://avatars.discourse-cdn.com/v4/letter/a/aeb1de/32.png) [@Aiasa21](https://forum.inductiveautomation.com/u/Aiasa21)\
**Post date:** [December 18, 2024, 2:56pm UTC](https://forum.inductiveautomation.com/t/perspective-equipment-schedule-delete-event-doesnt-fire/99979/7 "2024-12-18T14:56:46Z")

</div>

I have a look in the logs showing ALL the logs and there are no errors.

I really don't understand, a new component works without problem, here it looks like the delete event is disabled.

---

<div class="post-metadata">

**Author:** ![dkhayes117](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dkhayes117/32/68344_2.png) [@dkhayes117](https://forum.inductiveautomation.com/u/dkhayes117)\
**Post date:** [December 18, 2024, 2:58pm UTC](https://forum.inductiveautomation.com/t/perspective-equipment-schedule-delete-event-doesnt-fire/99979/8 "2024-12-18T14:58:37Z")

</div>

Try saving and reopening the view or the whole designer

---

<div class="post-metadata">

**Author:** ![Aiasa21](https://avatars.discourse-cdn.com/v4/letter/a/aeb1de/32.png) [@Aiasa21](https://forum.inductiveautomation.com/u/Aiasa21)\
**Post date:** [December 18, 2024, 3:18pm UTC](https://forum.inductiveautomation.com/t/perspective-equipment-schedule-delete-event-doesnt-fire/99979/10 "2024-12-18T15:18:04Z")

</div>

Nothing to do, I reboot even the gateway but in doesn't work, the behaviour is the same, the onDeleteEvent seems not fire.

---

<div class="post-metadata">

**Author:** ![dkhayes117](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dkhayes117/32/68344_2.png) [@dkhayes117](https://forum.inductiveautomation.com/u/dkhayes117)\
**Post date:** [December 18, 2024, 3:44pm UTC](https://forum.inductiveautomation.com/t/perspective-equipment-schedule-delete-event-doesnt-fire/99979/11 "2024-12-18T15:44:45Z")

</div>

I suggest you contact IA support then.

---

<div class="post-metadata">

**Author:** ![Aiasa21](https://avatars.discourse-cdn.com/v4/letter/a/aeb1de/32.png) [@Aiasa21](https://forum.inductiveautomation.com/u/Aiasa21)\
**Post date:** [December 18, 2024, 7:35pm UTC](https://forum.inductiveautomation.com/t/perspective-equipment-schedule-delete-event-doesnt-fire/99979/12 "2024-12-18T19:35:36Z")

</div>

> [@Aiasa21](#):
>
> oot even the gateway but in doesn't work, the behaviour is the same, the onDeleteEvent seems not fire.

I send an email to the support, I'll update the topic.

Thanks for the support

---

<div class="post-metadata">

**Author:** ![LarryM](https://avatars.discourse-cdn.com/v4/letter/l/0ea827/32.png) [@LarryM](https://forum.inductiveautomation.com/u/LarryM)\
**Post date:** [January 20, 2025, 11:44pm UTC](https://forum.inductiveautomation.com/t/perspective-equipment-schedule-delete-event-doesnt-fire/99979/13 "2025-01-20T23:44:32Z")

</div>

Hi, we have exactly the same problem;

Add/Move/Resize/Click events are all OK.

Delete event does NOT fire. Yes we select an event first, and then click delete, but still nothing.

Aiasa21 did you have any response from support?

---

<div class="post-metadata">

**Author:** ![Aiasa21](https://avatars.discourse-cdn.com/v4/letter/a/aeb1de/32.png) [@Aiasa21](https://forum.inductiveautomation.com/u/Aiasa21)\
**Post date:** [January 21, 2025, 6:28am UTC](https://forum.inductiveautomation.com/t/perspective-equipment-schedule-delete-event-doesnt-fire/99979/14 "2025-01-21T06:28:55Z")

</div>

Hi, actually I use my buttons to manage the events, so I skip this problem. However, when I try to replicate it for the support, I have not been able to.

In the emails with support, they told me that they are not aware of this issue.

---

<div class="post-metadata">

**Author:** ![Ben\_Kennes](https://avatars.discourse-cdn.com/v4/letter/b/a88e57/32.png) [@Ben\_Kennes](https://forum.inductiveautomation.com/u/Ben_Kennes)\
**Post date:** [April 1, 2025, 2:22pm UTC](https://forum.inductiveautomation.com/t/perspective-equipment-schedule-delete-event-doesnt-fire/99979/15 "2025-04-01T14:22:49Z")

</div>

Hi there,

I encountered the same problem aswell.

All events (Add, Move, Resize, Click) fire correctly except the Delete event.

Were you able to resolve this issue? Or how did you work around?

Kind regards,  
Ben

---

<div class="post-metadata">

**Author:** ![Aiasa21](https://avatars.discourse-cdn.com/v4/letter/a/aeb1de/32.png) [@Aiasa21](https://forum.inductiveautomation.com/u/Aiasa21)\
**Post date:** [April 1, 2025, 3:27pm UTC](https://forum.inductiveautomation.com/t/perspective-equipment-schedule-delete-event-doesnt-fire/99979/16 "2025-04-01T15:27:08Z")

</div>

Not able to resolve.. I create a button who manage the delete actions.

---

<div class="post-metadata">

**Author:** ![Ben\_Kennes](https://avatars.discourse-cdn.com/v4/letter/b/a88e57/32.png) [@Ben\_Kennes](https://forum.inductiveautomation.com/u/Ben_Kennes)\
**Post date:** [April 2, 2025, 7:55am UTC](https://forum.inductiveautomation.com/t/perspective-equipment-schedule-delete-event-doesnt-fire/99979/17 "2025-04-02T07:55:28Z")

</div>

Hi guys,

I reached out to support and was able to resolve my problem—big thanks to Cody!

Apparently, the data types of the IDs from your items must match the data type of the `itemId` from your `scheduledEvents`. In my case, this mismatch prevented the `onDeleteEvent` from triggering.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/e/b/ebc04bc6510c2862f988cc7669f373f1fc9707ae.png)

As you can see, the data type of my `id` is an integer, whereas the `itemId` is a string. Casting the `id` to a string solved the issue for me.

Hope this helps!

Kind regards,  
Ben

---

<div class="post-metadata">

**Author:** ![E.E.T](https://avatars.discourse-cdn.com/v4/letter/e/b19c9b/32.png) [@E.E.T](https://forum.inductiveautomation.com/u/E.E.T)\
**Post date:** [June 11, 2026, 7:12am UTC](https://forum.inductiveautomation.com/t/perspective-equipment-schedule-delete-event-doesnt-fire/99979/18 "2026-06-11T07:12:05Z")

</div>

This issue is still present. Why hasn't it been fixed since? Seems like a minor fix
