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

New Post: Need Help with SP Filtered Dropdown

$
0
0
Hi Guys,

I'm trying to get the filtered dropdown to work so far I tried to get it working with this code and settings but was not able to filtered the dropdown "Test2"

Other Details:
 SP Version used = jquery.SPServices-2013.01.js
 Jquery used = jquery-1.7.2.min.js
 Server = SharePoint 2007
 List Name = Test List 3
 Test List 3 GUID = 4A7729AF-C486-477B-8D94-EE279FA5513C
 Columns:
       Courses,  static name = Title
       test, static name = test, Type = Yes/No
List Name = Test List 4 (spfiltered dropdown implemented in newcustomform.aspx)
Columns:
      Title, static name = Title
      Test2, Static name = Test2
Code:
(pasted under <asp:Content ContentPlaceHolderId="PlaceHolderMain" runat="server">) <script language="javascript" type="text/javascript">
$(document).ready(function() {
     $().SPServices.SPFilterDropdown({
                 relationshipList: "{4A7729AF-C486-477B-8D94-EE279FA5513C}",
                     relationshipListColumn: "Title",
                 columnName: "Test2",
                 CAMLQuery: "<Eq><FieldRef Name='test' /><Value Type='Boolean'>1</Value></Eq>",
                 completefunc: null,
                 debug: false
                 });
     });     
 </script>
I've tried changing the Value inside Caml Query to Yes as well as replaced Eq with NEq however the field still displays all the contents of the column.

Am I doing something wrong here? I also tried pasting the codes inside a content editor web part but is unable to make it work.

Thanks in advance,
Francis

Viewing all articles
Browse latest Browse all 6517

Trending Articles



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