Skip to content

Commit 1421f71

Browse files
authored
Create uiaction.js
1 parent d232970 commit 1421f71

File tree

1 file changed

+14
-0
lines changed
  • Client-Side Components/UI Actions/Group dependency

1 file changed

+14
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/*
2+
This script should be placed in the UI action on the table sys_user_group form view.
3+
This UI action should be marked as client.
4+
Use popupDependency() function in the Onclick field.
5+
condition - gs.hasRole('admin')
6+
*/
7+
8+
function popupDependency() {
9+
var groupSysId = gel('sys_uniqueValue').value;
10+
var gdw = new GlideDialogWindow('display_group_dependency_list');
11+
gdw.setTitle('Group Dependency');
12+
gdw.setPreference('sysparm_group', groupSysId);
13+
gdw.render();
14+
}

0 commit comments

Comments
 (0)