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:
as you can see in Designer works perfectly.
thanks a lot!!!
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?
1 Like
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.
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!
Exactly, I need the action to trigger when a click happens, not only when is pressed.
onClick
executes even if the component is disabled.
onActionPerformed
only executes if the component is enabled.
2 Likes