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

New Comment on "$().SPServices.SPCascadeDropdowns"

$
0
0
I have creates 2 lists. ProcessArea: Title ProcessSubArea:Title,ProcessArea(Look up to ProcessArea List Title column) Then I have created a document library named ProcessMapping where I have created 2 look up columns to above two list's Title Column. ProcessMapping: ProcessArea(Look up to ProcessArea List Title column), ProcessSubArea(Look up to ProcessSubArea List Title column) I have then uploaded the two java script library files (jquery-1.10.2.min.js and jquery.SPServices-0.7.2.min.js) to one of the document libraries in the same site. Then I have added a content editor webpart to the default edit form of the document library and put below java script in it. <script language="javascript" type="text/javascript" src="<<relative path>>/jquery-1.10.2.min.js"></script> <script language="javascript" type="text/javascript" src="<<relative path>>/jquery.SPServices-0.7.2.min.js"></script> <script language="javascript" type="text/javascript"> $(document).ready(function() { $().SPServices.SPCascadeDropdowns({ relationshipList: "ProcessSubArea", relationshipListParentColumn: "ProcessArea", relationshipListChildColumn: "Title", CAMLQuery: "<Eq><FieldRef Name='Status'/><Value Type='Text'>Active</Value></Eq>", parentColumn: "ProcessArea", childColumn: "ProcessSubArea", debug: true }); }); </script> The objective I want to achieve here is, when I edit any document property, my ProcessSubArea values should be populated based upon my selection of ProcessArea. However I am getting below error now. "Error in function SPServices.SPCascadeDropdowns Parameter relationshipListParentColumn: ProcessArea or relationshipListChildColumn: Title Message Not found in relationshipList ProcessSubArea Click to continue"  The ProcessArea dropdown is being populated with data, but the ProcessSubArea does not have any data in it. Please advice how can I get rid of this error.

Viewing all articles
Browse latest Browse all 6517

Trending Articles



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