Client event not working

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

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 </>)

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

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

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