# Client event not working

**URL:** <https://forum.inductiveautomation.com/t/client-event-not-working/59773>\
**Category:** Ignition\
**Created:** [May 19, 2022, 8:28am UTC](https://forum.inductiveautomation.com/t/client-event-not-working/59773 "2022-05-19T08:28:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mootez\_bh](https://avatars.discourse-cdn.com/v4/letter/m/8e8cbc/32.png) [@mootez\_bh](https://forum.inductiveautomation.com/u/mootez_bh)\
**Post date:** [May 19, 2022, 8:28am UTC](https://forum.inductiveautomation.com/t/client-event-not-working/59773/1 "2022-05-19T08:28:32Z")

</div>

in trying to run the script below on a tag change event:

trigger = system.tag.readBlocking(["[CC\_OEE]TrumpfTags/2267/TruLaser (L52)\_A1230E0148/Machine/Flag"])[0].value  
date = system.tag.readBlocking(["[CC\_OEE]TrumpfTags/2267/TruLaser (L52)\_A1230E0148/Machine/endtime"])[0].value  
if trigger == bool(1) :   
id = system.db.runNamedQuery(“Enterprise/site specifique/pull”,{“date”:date})  
start=system.db.runNamedQuery(“Enterprise/site specifique/debut”,{“id”:id})  
end= system.db.runNamedQuery(“Enterprise/site specifique/fin”,{“id”:id})  
system.nav.openWindowInstance(“SiteSpecific/fault description”,{arret:id,debut:start,fin:end})  
system.nav.centerWindow(“SiteSpecific/fault description”)  
no window opens in the vison client session . any help or suggestion is welcomed

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [May 19, 2022, 11:38am UTC](https://forum.inductiveautomation.com/t/client-event-not-working/59773/2 "2022-05-19T11:38:21Z")

</div>

When asking questions like this where you are shoing code, you can format the block by highlighting it and, and pressing the ‘Preformatted Text’ button (looks like `</>`)

```python
trigger = system.tag.readBlocking(["[CC_OEE]TrumpfTags/2267/TruLaser (L52)_A1230E0148/Machine/Flag"])[0].value
date = system.tag.readBlocking(["[CC_OEE]TrumpfTags/2267/TruLaser (L52)_A1230E0148/Machine/endtime"])[0].value
if trigger == bool(1) :
id = system.db.runNamdQuery("Enterprise/site specifique/pull",{"date":date})
start=system.db.runNamdQuery("Enterprise/site specifique/debut",{"id":id})
end= system.db.runNamdQuery("Enterprise/site specifique/fin",{"id":id})
system.nav.openWindowInstance("SiteSpecific/fault description",{arret:id,debut:start,fin:end})
system.nav.centerWindow("SiteSpecific/fault description")

```

You can open the diagnostics either through the help menu or Ctrl+Shift+F7  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/a/9/a9b5e1aa835a1975908d341d5f420c470dccc0f1.png)

That said, you need quotes around arret, debut and fin parameter names on the openWindowInstance() line

---

<div class="post-metadata">

**Author:** ![mootez\_bh](https://avatars.discourse-cdn.com/v4/letter/m/8e8cbc/32.png) [@mootez\_bh](https://forum.inductiveautomation.com/u/mootez_bh)\
**Post date:** [May 19, 2022, 11:44am UTC](https://forum.inductiveautomation.com/t/client-event-not-working/59773/3 "2022-05-19T11:44:20Z")

</div>

thank you, i’ll try and hope it’ll work
