File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed
Client-Side Components/Catalog Client Script/MRVS dependent ref qual 1st row Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change 1+ var AccountUtils = Class.create();
2+ AccountUtils.prototype = Object.extendsObject(AbstractAjaxProcessor, {
3+
4+ //Populate the department name from the account in the session data for the reference qualifier to use:
5+
6+ setSessionData: function() {
7+ var acct = this.getParameter('sysparm_account');
8+ var dept = '';
9+ var acctGR = new GlideRecord('customer_account'); //reference table for Account variable
10+ if (acctGR.get(acct)) {
11+ dept = '^dept_name=' + acctGR.dept_name; //department field name on account table
12+ }
13+
14+ var session = gs.getSession().putClientData('selected_dept', dept);
15+ return;
16+ },
17+
18+ type: 'AccountUtils'
19+ });
You can’t perform that action at this time.
0 commit comments