- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2020 08:54 PM
Hi Guys,
Need some assistance here.....
I have a catalog request form that populates a list collector based on some fields selection. I need to hide this list collector if the listed values are exactly the same as the other list collector on the form.
How can I compare 2 list collectors?
Thank you in advance.
Regards,
Jocelyn
Solved! Go to Solution.
- Labels:
-
Service Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2020 10:28 PM
Hi,
You should not get that error.
For sample purpose : run this code in scripts background and check if this works
var arrayUtil = new ArrayUtil();
var a1 = new Array("a", "b", "c");
var a2 = new Array("c", "d", "e");
gs.print(arrayUtil.diff(a1, a2));
If this works , then put your sample code also in scripts background and check .
It shoudl work most likely. I would suggest putting some print statement for print list array1 and array2 in your code , it will help you to identify rootcause.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2020 10:28 PM
Hi,
You should not get that error.
For sample purpose : run this code in scripts background and check if this works
var arrayUtil = new ArrayUtil();
var a1 = new Array("a", "b", "c");
var a2 = new Array("c", "d", "e");
gs.print(arrayUtil.diff(a1, a2));
If this works , then put your sample code also in scripts background and check .
It shoudl work most likely. I would suggest putting some print statement for print list array1 and array2 in your code , it will help you to identify rootcause.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2020 03:59 AM
Hi Creativethinker!
Thanks so much for your help, arrayUtil works!
Appreciate your help!!!
Regards,
Jocelyn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2020 09:05 AM