arrayutil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-11-2016 04:04 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-11-2016 07:29 AM
Hi Nikhil,
Also in the above code seems like i picked wrong function.
var arrayUtil = new ArrayUtil();
var targetList = target.u_it_owners.split(',');
var sourceList = source.u_it_owners.split(',');
gs.log("Logs Nikhil targetList"+targetList+"sourceList"+sourceList);
resultList=arrayUtil.union(targetList,sourceList); // this should work.
target.u_it_owners=resultList.join(',');
Thanks
Srini
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-15-2016 03:51 AM
Hello Srini,
When I log my sourceList with array index like
gs.log(sourceList[1]);
it is showing me value as undefined.
please check whether
var sourceList = source.u_it_owners.split(',');
is creating an array or not.