Quantcast
Viewing all articles
Browse latest Browse all 6517

New Post: Issue filtering with CascadeDropdowns

Did some more work; got variables setup; working; doing what I need.

Just won't run CAMLquery: dquery
<script language="javascript" type="text/javascript">
var deptnm
var query
$(document).ready(function() {
$().SPServices.SPCascadeDropdowns({
relationshipList: "pillars",
relationshipListParentColumn: "Department",
relationshipListChildColumn: "Title",
parentColumn: "Department",
childColumn: "Pillar",
completefunc: function() {
deptnm = $("select[title='Department'] option:selected").text()
dquery = "<Eq><FieldRef Name='Departments'/><Value Type='Text'>" + deptnm + "</Value></Eq>"
},
debug: true
});
$().SPServices.SPCascadeDropdowns({
relationshipList: "measures",
relationshipListParentColumn: "Pillar",
relationshipListChildColumn: "Title",
CAMLQuery: dquery,
childColumn: "Measure"
});
});
</script>

Viewing all articles
Browse latest Browse all 6517

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>