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

New Post: SPAutocomplete List Doesn't Exist Error

$
0
0
First of all ... Thank you for writing this great tool.

I am trying to implement the SPAutocomplete in my custom application page in SharePoint 2013

I am using the jquery.SPServices-2013.01.js
and JQuery 1.9.0 "Non" mini version

Here is the code:
<script type="text/javascript">

        $(document).ready(function () {

            var thisSite = $().SPServices.SPGetCurrentSite();
            $(".AutoComplete").val(thisSite);

            $().SPServices.SPAutocomplete({
                sourceList: 'TestAuto',
                sourceColumn: 'EmployeeID',
                columnName: 'EmployeeID',
                filterType: 'BeginsWith',
                ignoreCase: true,
                numChars: 3,
                slideDownSpeed: 'fast'
            });
            
        });

    </script>
Here is my textbox
<div><asp:TextBox title="EmployeeID" ID="txtEmployeeID" CssClass="AutoComplete" runat="server"></asp:TextBox></div>
I am getting a 500 error.

Here is the soap envelope I captured in Fidddler
<soap:Envelope xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/'><soap:Body><GetList xmlns='http://schemas.microsoft.com/sharepoint/soap/'><listName></listName></GetList></soap:Body></soap:Envelope>
If you notice the listName is empty. I am guessing that's why the 500

Have you seen this happen. Is there something I need to do.

Thank you,
Spencer

Viewing all articles
Browse latest Browse all 6517

Trending Articles



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