807 views

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)

Steps to Reproduce

Use the Assignment Group field as a scenario:

  1. Log into a Dublin demo from the desktop to make necessary changes.
  2. Navigate to User Administration > Groups.
  3. Click New to open the Groups form.
  4. Personalize the form layout and create a new reference field:
    • Name: Department
    • Type: Reference
    • Reference table: Departments (cmn_department)
  5. Go back to the Groups list by navigating to User Administration > Groups.
  6. 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
  7. 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:

  1. 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
  2. Navigate to Incident > Open.
  3. Select any incident.
  4. 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

Seen In

Eureka Patch 2
Eureka Patch 7

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2015-08-30 16:37:10
Published:2015-08-30