var sessions = GlideSessions.get().getLoggedInSessionList(); var it = sessions.iterator(); while(it.hasNext()) { var session = it.next(); if (session.getUser() == gs.getUserName()) { var httpSession = session.getHS(); httpSession.setAttribute(“locked_out”, “true”); } }
Custom Glyph in ServiceNow portal – Icon Link widget
Step1: You have to upload the image to image to the table db_image Step2: Clone the widget Icon Link Step3: Html code is as below <div> <!–// Top Icon –> <a ng-if=”::(options.link_template == ‘Glyph Icon’ || !options.link_template)” ng-href=”{{::data.href}}” class=”glyph_icon {{::options.class_name}}” target=”{{::data.target}}”> <div class=”m-b fa fa-{{::options.glyph}} fa-4x {{::options.class_name}} text-{{::options.color}}” align=”center” style=”margin-right: auto; margin-left: auto; display: block;”></div> <h4 style=”text-align: […]
What is the difference between setVisible() and setDisplay() on g_form?
setDisplay() – It will reclaim the space if the field is hidden on the form If the field is hidden, the space is used to display other items. that means below field like, if sub status of the incident is not displaying then assignment group will display on that blank space. setVisible() If the […]