Description
In the tablet UI, the reference list popup (appears after clicking the magnifying glass icon next to the reference field) can render empty if the view is dot-walking. The reference list popup works as expected in the desktop UI.
When the problem occurs in the tablet UI, the following error appears in the logs:
869E6C4E7BA71100EF9F3120A84D4D27 Evaluator: org.mozilla.javascript.EcmaError: Cannot convert null to an object.
Caused by error in <refname> at line 24
21: var ed = td.getElementDescriptor(col);
22:
23: col = {};
==> 24: col.name = ed.getColumnName();
25: col.label = ed.getLabel();
26:
27: columns.push(col);
869E6C4E7BA71100EF9F3120A84D4D27 *** End #923, path: /$tab_ref_list.do, user: admin, time: 0:00:00.025, render: 0:00:00.025, network: 0:00:00.000, chars: 777, SQL time: 9 (count: 10), business rule: 0 (count: 0)
When the problem occurs in the tablet UI, the following error appears in the logs:
869E6C4E7BA71100EF9F3120A84D4D27 Evaluator: org.mozilla.javascript.EcmaError: Cannot convert null to an object.
Caused by error in <refname> at line 24
21: var ed = td.getElementDescriptor(col);
22:
23: col = {};
==> 24: col.name = ed.getColumnName();
25: col.label = ed.getLabel();
26:
27: columns.push(col);
869E6C4E7BA71100EF9F3120A84D4D27 *** End #923, path: /$tab_ref_list.do, user: admin, time: 0:00:00.025, render: 0:00:00.025, network: 0:00:00.000, chars: 777, SQL time: 9 (count: 10), business rule: 0 (count: 0)
Steps to Reproduce
Use the Assignment Group field as a scenario:
- Log into a Dublin demo from the desktop to make necessary changes.
- Navigate to User Administration > Groups.
- Click New to open the Groups form.
- Personalize the form layout and create a new reference field:
- Name: Department
- Type: Reference
- Reference table: Departments (cmn_department)
- Go back to the Groups list by navigating to User Administration > Groups.
- Change the view to sys_ref_list.
For example by URL: https://INSTANCENAME.service-now.com/sys_user_group_list.do?sysparm_view=sys_ref_list - Modify the list layout and add the Department reference field, including a dot-walk to any field on the Departments table (for example, Departments.Department Head).
Perform the following steps on a tablet:
- Log in to the demo with a tablet (iPad/Android) or using iOS Simulator.
If you prefer using a desktop browser: https://INSTANCENAME.service-now.com/$tablet.do?sysparm_device=tablet - Navigate to Incident > Open.
- Select any incident.
- Click the reference picker for Assignment Group (the magnifying glass).
An empty popup appears instead of the list of groups.
Workaround
Modify the sys_ref_list view of the target table and remove the dot-walk fields.
Related Problem: PRB598045