# writeBlocking works in designer, not in browser

**URL:** <https://forum.inductiveautomation.com/t/writeblocking-works-in-designer-not-in-browser/103793>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [March 17, 2025, 5:53pm UTC](https://forum.inductiveautomation.com/t/writeblocking-works-in-designer-not-in-browser/103793 "2025-03-17T17:53:34Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jose\_Hervas\_Chico](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jose_hervas_chico/32/69260_2.png) [@Jose\_Hervas\_Chico](https://forum.inductiveautomation.com/u/Jose_Hervas_Chico)\
**Post date:** [March 17, 2025, 5:53pm UTC](https://forum.inductiveautomation.com/t/writeblocking-works-in-designer-not-in-browser/103793/1 "2025-03-17T17:53:34Z")

</div>

Hello! I am trying to do a simple Tag update while pressing a button in a perspective view.

the thing is that I have it working in designer, but when I launch the project from the browser it doesnt write the Tag.

Maybe I am overloaded, but what am I missing?

the code in an "onClick" event is:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/6/7/67a96dcf435ff9394a57a2a72d5d73dd2d2ea374.png)

as you can see in Designer works perfectly.

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

thanks a lot!!!

---

<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:** [March 17, 2025, 5:58pm UTC](https://forum.inductiveautomation.com/t/writeblocking-works-in-designer-not-in-browser/103793/2 "2025-03-17T17:58:39Z")

</div>

Do you have a security zone set up for the tag provider? If so, have you configured corresponding security on the Perspective view(s)? So that the user will be prompted to log in with appropriate security?

---

<div class="post-metadata">

**Author:** ![Kevin\_Flener](https://avatars.discourse-cdn.com/v4/letter/k/74df32/32.png) [@Kevin\_Flener](https://forum.inductiveautomation.com/u/Kevin_Flener)\
**Post date:** [March 17, 2025, 6:06pm UTC](https://forum.inductiveautomation.com/t/writeblocking-works-in-designer-not-in-browser/103793/3 "2025-03-17T18:06:55Z")

</div>

Possibly a silly question (still learning!) Why use 'OnClick' instead of 'OnActionPerformed'?

It's my understanding that if the cursor moves between the press and release, the OnClick event can fail to register.

And OnActionPerformed for a button will trigger when the button is pressed.

---

<div class="post-metadata">

**Author:** ![Jose\_Hervas\_Chico](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jose_hervas_chico/32/69260_2.png) [@Jose\_Hervas\_Chico](https://forum.inductiveautomation.com/u/Jose_Hervas_Chico)\
**Post date:** [March 17, 2025, 6:15pm UTC](https://forum.inductiveautomation.com/t/writeblocking-works-in-designer-not-in-browser/103793/4 "2025-03-17T18:15:04Z")

</div>

oh....many thanks!! I had not activated the identity provider, so the webbrowser didnt know which role do I had for being able to write the correspondent Tag provider. Many many thanks!

---

<div class="post-metadata">

**Author:** ![Jose\_Hervas\_Chico](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jose_hervas_chico/32/69260_2.png) [@Jose\_Hervas\_Chico](https://forum.inductiveautomation.com/u/Jose_Hervas_Chico)\
**Post date:** [March 17, 2025, 6:16pm UTC](https://forum.inductiveautomation.com/t/writeblocking-works-in-designer-not-in-browser/103793/5 "2025-03-17T18:16:01Z")

</div>

Exactly, I need the action to trigger when a click happens, not only when is pressed.

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [March 17, 2025, 6:30pm UTC](https://forum.inductiveautomation.com/t/writeblocking-works-in-designer-not-in-browser/103793/6 "2025-03-17T18:30:27Z")

</div>

> [@Kevin\_Flener](#):
>
> Why use 'OnClick' instead of 'OnActionPerformed'?

`onClick` executes even if the component is disabled.  
`onActionPerformed` only executes if the component is enabled.

---

<div class="post-metadata">

**Author:** ![Kevin\_Flener](https://avatars.discourse-cdn.com/v4/letter/k/74df32/32.png) [@Kevin\_Flener](https://forum.inductiveautomation.com/u/Kevin_Flener)\
**Post date:** [March 17, 2025, 6:32pm UTC](https://forum.inductiveautomation.com/t/writeblocking-works-in-designer-not-in-browser/103793/7 "2025-03-17T18:32:28Z")

</div>

Noted. Thank you.
