This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Change the visualization icons to read only (view) if viewer user access
#3
(25.11.2021, 09:12)admin Wrote: Add this code to Custom JavaScript. Keep in mind that this will only block the visualization elements not the actual writing. By default Link elements and Widgets won't work with this solution. As a work-around you can add clickable class to the elements that the user should be able to click.
Code:
$(function() {
  if (Globals.user == 'viewer') {
    $('.layer > div').addClass('item-read-only');
    $('.clickable').removeClass('item-read-only');
  }
});

thanks Admin,
Great, work perfect on visu. but could I add clickable class to Alarm link so viewer user can acknowledge alarms?
Also what did you mean by this statement:  "Keep in mind that this will only block the visualization elements not the actual writing."
Best Regards,
Reply


Messages In This Thread
RE: Change the visualization icons to read only (view) if viewer user access - by khalil - 25.11.2021, 09:27

Forum Jump: