- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-15-2016 05:56 PM
I'm trying to figure out how to check if any of these systems are selected on this list collector.
When you zBoot an instance with demo data, there is an example order guide built, that uses an "Like" operator to check if a sys_id is selected on the List Collector, but even creating a copy of this order guide, I cannot use this "Like" operator.
Any ideas?
Solved! Go to Solution.
- Labels:
-
Instance Configuration
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-28-2016 02:49 AM
Workaround to add contains operator:
function onLoad() {
var checkExist = setInterval(function() {
if ($('oper') != undefined) {
var found = false;
var select = $('oper').down(0);
for (var i = 0; i < select.options.length; i++) {
if (select.options[i].value == 'LIKE') {
found = true;
}
}
if (found == false) {
console.log('contains added');
$('oper').down(0).insert({
top: '<option value="LIKE">contains</option>'
});
}
}
}, 1000);
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-16-2016 11:56 AM
If you are talking about the Rule Base operators then you are looking for the 'contains' condition. Your condition would be something like -
[variable] contains [sys_id of referenced table]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-16-2016 06:14 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-17-2016 06:14 PM
Hi Diego,
I believe that is a bug, or at least a "feature-incomplete" issue, when using a List Collector (slushbucket) variable and the Condition Builder. I've run into that before and did not find a satisfactory response. You can try to trick it by changing the variable type to something else (another variable type that allows for using "Contains"), setting up the condition, and then changing the variable type back. It may hold on to the value of the condition you've setup. (YMMV)
There are some inconsistencies with the way GlideLists are treated depending on where you are in the system (e.g., when using as a field vs. variable, when using in Wizards/Order Guides/Catalog vs. normal forms, etc.). This is one sore-point I've had with the platform, but overall you won't see me walking away.
Good luck,
-Brian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-28-2016 02:49 AM
Workaround to add contains operator:
function onLoad() {
var checkExist = setInterval(function() {
if ($('oper') != undefined) {
var found = false;
var select = $('oper').down(0);
for (var i = 0; i < select.options.length; i++) {
if (select.options[i].value == 'LIKE') {
found = true;
}
}
if (found == false) {
console.log('contains added');
$('oper').down(0).insert({
top: '<option value="LIKE">contains</option>'
});
}
}
}, 1000);
}