After latest update to 17.2.5, I noticed that when you use some functions you get an error in the browser console.
To reproduce it's quite easy, you just need a select field and try to change this selection with the function.
The selection occurs, but an error is raised in the console.
The following error appears after using ca_fdSelectOptionByIndex or ca_fdSelectOption:
id=1580908829072_form1_sel_1 TypeError: Cannot convert undefined or null to object
at Function.keys (<anonymous>)
at gA.scope.pickSelectedIndex (SelectDirective.js:707)
at gA.scope.selectOptionByIndexAPI (SelectDirective.js:763)
at window.ca_fdSelectOptionByIndex (DualListAPIs.js:157)
at Object.jstest (eval at switchFdScope (formdesigner.js:528), <anonymous>:5:7)
at eval (eval at evalJsFunction (formdesigner.js:615), <anonymous>:1:10)
at Object.evalJsFunction (formdesigner.js:615)
at gA.scope.bindFieldEvent (RadioButtonDirective.js:150)
at fn (eval at compile (angular.js:1), <anonymous>:4:554)
at gK (angular.js:1)
The select box item is selected as expected but the error still appears in the console.
Steps to reproduce:
Able to reproduce in r17.2 RU4, RU5 and RU6.
1. Log into Catalog
2. Click F12 > Console tab
3. Click on radio button to trigger function which uses ca_fdSelectOptionByIndex
Script code:
{
jstest:function()
{
alert('testing2');
ca_fdSelectOptionByIndex('form1','sel_1',1);
alert('testing3');
}
}
Release : 17.2
Component : CA SERVICE CATALOG