search cancel

UUID value handling in Catalog Reporting

book

Article ID: 255042

calendar_today

Updated On:

Products

CA Service Catalog

Issue/Introduction

How to implement a Catalog report that returns a UUID value, but needs the "0x" prefix on the return value

Environment

Release : 17.3

CA Service Catalog

Resolution

suggest using a javascript common utility method that can be run across the custom forms and adds the needed "0x" prefix.  Lack of the "0x" is working as designed by the application.

One needs to go to the Catalog filestore  Administration -> Configuration -> File Store Information.  Need to go to this location on the Catalog serve and modify custom_form_lib.js located in the file store.

Sample code that could be used:

function getUUID(hexValue){
return '0x'+hexValue;
}

Then modify the existing plug in that reads as:

$({'SelCat':ca_fdGetSelectedOptionValues(ca_fd.formId,'sel_5')[0]})

Modify to read as:

$({'SelCat':getUUID(ca_fdGetSelectedOptionValues(ca_fd.formId,'sel_5')[0])})