Skip to content

Commit de09c5b

Browse files
Create ui_action_script.js
1 parent 991a0f9 commit de09c5b

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
/*
2+
UI Action details:
3+
4+
Active: True
5+
Name: Share reports
6+
Table: Dashboard [pa_dashboards]
7+
Order: 1000
8+
Action name: share_report
9+
Show update: True
10+
Client: True
11+
List v2 Compatible: True
12+
Form button: True
13+
Form style: Primary
14+
Onclick: shareReport();
15+
16+
*/
17+
18+
function shareReport() {
19+
var modal = new GlideModal("sj_share_reports"); // UI Page id
20+
modal.setTitle("Share Reports");
21+
modal.setPreference('sysparm_key', g_form.getUniqueValue());
22+
modal.render();
23+
}

0 commit comments

Comments
 (0)