AnsweredAssumed Answered

service catalog get all service names in a request

Question asked by ss_shubha on Aug 30, 2016
Latest reply on Sep 23, 2016 by JohnCLogan

Hi All,

 

I have a request which as multiple services in the cart, I need to fetch all the service names Before submitting. I am using pop up to dispaly that. To fetch all the service name I tried using " _.service.name" service object contains an array of services , but it give the last service name not all. Can anyone suggest how to get all the service names in the request.

 

Code I used:

 

var a = _.service.name;
var all = new Array();
for(i=0;i<4;i++)
{
    all[i]=a;
    a++;
}

alert(all[0]);
alert(all[1]);
alert(all[2]);

}

Outcomes