Console error "element_scope.setValue is not a function" if the report data object field matches with the select _id
search cancel

Console error "element_scope.setValue is not a function" if the report data object field matches with the select _id

book

Article ID: 187210

calendar_today

Updated On:

Products

CA Service Catalog

Issue/Introduction

The following error appears after selecting an option in select box.:


SelectDirective.js:402 id=ctrldiv1580919836122_form1_name TypeError: element_scope.setValue is not a function
    at gA.scope._fdSetFields (SelectDirective.js:396)
    at gA.scope.onChange (SelectDirective.js:370)
    at Object.fn (eval at compile (angular.js:1), <anonymous>:4:296)
    at select.js:778
    at angular.js:1
    at gB (angular.js:1)
    at angular.js:1

The select box item is selected as expected but the error still appears in the console.
The report data object has the field id and name in it's fields. If the select field has the _id with the value of any field of the report (ie: name), it will give an error when I select an option in the select box. 



Steps to reproduce:
Able to reproduce in r17.2 RU4, RU5 and RU6.
1. Log into Catalog http://lvntest002653:9090/usm/wpf?Node=icguinode.catalogitemdetails&Args=10701&ObjectID=10701&NspPath= spadmin/spadmin
2. Click F12 > Console tab 
3. Select an option in the select box list

Script code:
{
  jstest:function()
 {
     alert('testing2');
      ca_fdSelectOptionByIndex('form1','sel_1',1);
      alert('testing3');
 }
}

Environment

Release : 17.2

Component : CA SERVICE CATALOG

Cause

Defect

Resolution

The correction for this behavior will be available at r17.2 RU8.

Attachments