Prior to Calgary, when viewing the shopping cart with Two Step Checkout enabled, the item Preview would display the value of the field referenced in a Lookup Select Box. In Calgary, we are just displaying a reference to the record selected in the Lookup select table instead. If no display value is enabled on this table, this can lead to the sys_id displaying instead of the value selected. This can also cause issues if there are multiple Lookup Select Boxes in place referencing different fields on the same table since this can then not be worked around by setting the field as the display value.

(This is a regression from Berlin, and reproducible in Calgary and Eureka.)

Steps to Reproduce

  1. Log in to the demo instance.
  2. Go to System Properties > Service Catalog.
  3. Select the checkbox for Use the two step catalog checkout model and click Save.
  4. Go to Service Catalog > Maintain Items > Apple iPad 3.
  5. In the Variables Related list, select New.
  6. Enter the information below:
    • Type: Lookup Select Box
    • Name: Test
    • Lookup from table: Incident
    • Lookup value field: Short description
  7. Click Submit. This should take you back to the Apple iPad 3 item.
  8. Click the Try It action.
  9. Select any short description from the dropdown.
  10. Select Order now.
  11. Click Apple iPad 3 - Apple iPad 3 to show the variable details.
  12. Note that this displays the incident number associated with the short description you selected instead of the short description itself.


Modify script include CatalogLabelEvaluator (d4a7f2fec0a800084b45c74e00f5ae47):


if (lookupLabel == "")

   return l.getDisplayValue();


if (lookupLabel == "") {
   var label = l.getDisplayValue(lookupValue);
   if (label.isEmpty())
      label = l.getDisplayValue();
   return label;

 Customers should remove the update set record prior to upgrading to Eureka.


Related Problem: PRB592081

Seen In

Calgary Patch 2 Hot Fix 5
Calgary Patch 4
Fuji Patch 12 Hot Fix 1

Fixed In


Associated Community Threads

There is no data to report.

Article Information

Last Updated:2016-08-30 08:20:35