I've got a really simple use case for SPCascadeDropdowns. I'm basically creating a hardware request form that will filter the available servers for request based on Memory, CPU, and Disk space; then allow for multiple server selection based on the choices. Lookups are in place for all 4 columns which reside on the same server master list. Here is the code:
$(document).ready(function() {
$().SPServices.SPCascadeDropdowns({
relationshipList:"OREImport",
relationshipListParentColumn:"CPU",
relationshipListChildColumn:"Physical_x0020_Name",
CAMLQuery:"<Eq><FieldRef Name='Status'/><Value Type='Text'>Available</Value></Eq>",
parentColumn:"CPU",
childColumn:"Server",
debug:true
});
});
Of course, rather than having to scroll through 25 entries of 2GB, 4GB, etc, I want to return only distinct values. Has anyone been able to do this? Any help would be greatly appreciated.
$(document).ready(function() {
$().SPServices.SPCascadeDropdowns({
relationshipList:"OREImport",
relationshipListParentColumn:"CPU",
relationshipListChildColumn:"Physical_x0020_Name",
CAMLQuery:"<Eq><FieldRef Name='Status'/><Value Type='Text'>Available</Value></Eq>",
parentColumn:"CPU",
childColumn:"Server",
debug:true
});
});
Of course, rather than having to scroll through 25 entries of 2GB, 4GB, etc, I want to return only distinct values. Has anyone been able to do this? Any help would be greatly appreciated.