List Collector variable with mandatory UI Policy on a Catalog item shows "on loading" on submitted sc_req_item records, and a console error displays "Cannot read property of null".


Steps to Reproduce

  1. Go to the sc_req_item record, right-click in the header, and choose Configure Form Layout.

  2. Add the variable editor formatter on the form if it is not already present.

    For more information, see the product documentation topic Service Catalog variable editor.

  3. Create a new catalog item named "test collector".

    For more information, see the product documentation topic Create or edit a catalog item.

  4. Create a Yes/No variable: var1.

  5. Create a list collector variable: "list Collector test" and use any reference table for the list, for example, sys_user table.

  6. Create a catalog UI policy with the following values:

    • Conditions If yes/no var1 = NO
    • Check the checkbox on "Applies on a Catalog Item view" and "Applies on Requested Items"

    For more information, see the product documentation topic Create a UI policy for catalog items.

  7. Create a catalog UI policy action for the list collector variable named "list Collector test" with the following values:

    • Set mandatory to true
    • Set visible to true
  8. Go to the newly created item "test collector", and click Try It to create a record.

  9. Go to the created sc_req_item record.

    Note the "Loading" in the left list field and console error when you inspect the element rather than the list records from the reference table displaying. Also, note the console error.





This problem has been fixed in Kingston Patch 4, where the service catalog form has been redesigned to improve performance.

As a workaround on earlier releases, create a new system property named and set its value to false. This will switch the instance to use the previous version of the service catalog form.


Related Problem: PRB1252274

Seen In

There is no data to report.

Fixed In

Kingston Patch 4

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2019-06-27 07:14:01