select box does not load data from data object in Service Catalog
search cancel

select box does not load data from data object in Service Catalog

book

Article ID: 374181

calendar_today

Updated On:

Products

CA Service Catalog

Issue/Introduction

A select box is being populated through a data object. The data object is triggered based on the value of the text field in the Catalog form named txtf_1

Environment

Service Catalog 17.4

Cause

The Report/Plug-in Variables is using an incorrect format to call the form field. ie:  

$({'<Report Variable>':ca_fdGetTextFieldValue('ca_fd.formId', 'txtf_1')})

Resolution

When referencing the same form, the Report/Plug-in Variables of the select box must call the form without single quotes.

Example:

 $({'<Report Variable>':ca_fdGetTextFieldValue(ca_fd.formId, 'txtf_1')})

Note that the difference in the code between the Cause and Resolution sections is that the code uses single quotes to call ca_fd.formId.