Quantcast
Channel: jQuery Library for SharePoint Web Services
Viewing all articles
Browse latest Browse all 6517

New Post: Cascade filter on two columns ? (newbie)

$
0
0
Please pardon my ignorance, first time using Javascript and SPServices.

I am trying to filter "Description" to only show items that have the program and commodity from the previous two pull downs.

Currently "Description" is only filtering by the "commodity", and ignoring the "program"

I am sure it is something I am overlooking or not understanding.
<script src="../SiteAssets/jquery-1.11.0.min.js" type="text/javascript"></script>
<script src="../SiteAssets/jquery.SPServices-2014.01.js" type="text/javascript"></script>

<script type="text/javascript">


$(document).ready(function(){
    $().SPServices.SPCascadeDropdowns({
        relationshipList: "CorePrograms",
        relationshipListParentColumn: "Title",
        relationshipListChildColumn: "Program",
        parentColumn: "Title",
        childColumn: "Program",
    });  



$(document).ready(function(){
    $().SPServices.SPCascadeDropdowns({
        relationshipList: "Commodity",
        relationshipListParentColumn: "Title",
        relationshipListChildColumn: "Commodity",
        parentColumn: "Title",
        childColumn: "Commodity",
    });  




//Breaks out commodities 
$(document).ready(function(){
    $().SPServices.SPCascadeDropdowns({
        relationshipList: "ALLTools",
        relationshipListParentColumn: "Commodity",
        relationshipListChildColumn: "Tool_Description",
        parentColumn: "Commodity",
        childColumn: "Description",
    });  

 });
    });
});</script>
Any help would be greatly appreciated :)

As a side note, ALLTools has over 500 items in it and each item does have a program and a commodity as well as a Description, I am trying to reduce the lookup to be only the descriptions with a matching program and commodity from the other two pull downs.

Viewing all articles
Browse latest Browse all 6517

Trending Articles



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