Questions tagged [spservices]

SPServices is a jQuery library which abstracts SharePoint's Web Services and makes them easier to use.

Filter by
Sorted by
Tagged with
1
vote
2answers
7k views

How to display list on application (aspx) page by visual studio?

I have created list and application page in visual studio for sharepoint.Now I have to show that list on that application page. I have option of using SPServices. But is there anything I can do with C#...
1
vote
2answers
2k views

SPServices.SPComplexToSimpleDropdown Not Saving Value in IE

ok, first off this works in FF, Chrome and Safari, but does not work in IE. What I am doing is converting the complex dropdown to a simple dropdown using SPServices Auto-populating the projects ...
1
vote
1answer
237 views

How to Read SP list into javascript - SPServices.SPGetListItemsJson returns key value pairs which do not belong to dataset

Environment: SharePoint 2010 jquery-1.12.3.min jquery.SPServices-2014.02.min Trying to use SPSerivces method to read a SP list into javascript. When reviewing the final output I have the ...
1
vote
2answers
94 views

How to get ErrorCode value using jQuery from bellow SPServices xml response

How to get ErrorCode value using jQuery from bellow SPServices xml response: <Results xmlns="http://schemas.microsoft.com/sharepoint/soap/"> <Result ID="1,Update"> <ErrorCode>...
1
vote
2answers
530 views

Sharepoint newform populate field with selected lookup info

I have used SPServices cascading drop-down list successfully in a SharePoint list form. But what I would also like to achieve is when a item is selected form a dropdownlist (lookup item), an other ...
1
vote
1answer
383 views

An Issue with SPCascadeDropdowns

I created Three Lists : Countries {Title} Regions {Title,Country(Lookup link with Title of Countries List)} and States {State,Region Name(Lookup link with Title of Regions List), Country Name (...
1
vote
2answers
494 views

SPServices : Write data into a list with UpdateListItems

Context : I was trying to use UpdateListItems to write some html textbox data into a custom list. The list "Cabinet" contains 13 columns and has already a line of data, only the first column "name" is ...
1
vote
1answer
571 views

CAML Query is not filtering anything when using a Person or Group type column

I'm trying to get a list count based on the CAML query below, but it keeps returning zero. It should return the number of projects assigned to a designer (person or group type column) which their ...
1
vote
2answers
761 views

ows_Url Undefined - SPServices

I am using SPServices GetListItems method to retrieve items from a document library and show them on the screen. So far I am able to get the Title of the items and append them to a div on the page. ...
1
vote
1answer
1k views

Using SPServices operation 'GetListItems' how to construct a CAML Query joining two lists?

Using SP2013 - JavaScript - $().SPServices() - operation 'GetListItems' - how would I construct a CAML query that will join two lists where list 'A' has a reference to list 'B' specifically having a ...
1
vote
1answer
1k views

Get Display Name from Account Name

I have used SPServices to get a user profile by their name, and in the process, I wish to display their supervisor's name as well. I can pull this name from the user's object, but the supervisor is ...
1
vote
1answer
608 views

Help with RemoveUserFromGroup using SPServices

I am using SPServices to list out each permission group and then under each group, each user is listed out. Next to the user, there is a button that will be used to remove that user (and later, ...
1
vote
2answers
1k views

Add run with run with elevated privileges for spservices?

I am unable to add users to the group using custom button and SPServices,only site administrators can only able to add the users to the group.can any one help me how to add the run with elevated ...
1
vote
2answers
1k views

How to recreate a people picker (or anything else that can autocomplete names)?

I have a page on which I have a drop-down list with the names of all the groups that I created in SharePoint. When a user picks a group from that list, it will display extra information on the page ...
1
vote
2answers
757 views

How To Get Site Title From URL in other web app

I have a situation where I need to retrieve the site title for a site in another web application using client side scripting. Client site JQuery SOAP calls to the "Webs" web service returns the ...
1
vote
3answers
7k views

Accessing list data from another site collection or web application using REST services?

I have a list (Links template) of URLs that is on a site collection and I was wondering if it is possible to include this list as a jQuery megamenu on another site - ideally another web application on ...
1
vote
1answer
210 views

Attach a Click event to SPServices.SPAutocomplete

I am using SPAutocomplete for a type ahead input text box as shown below. This works great. $().SPServices.SPAutocomplete({ sourceList: "mySourceList", sourceColumn: "...
1
vote
2answers
389 views

Nested CAML Query - People picker, multiple persons

I'm using SPServices to query a SharePoint list containing 3 fields of the type PeoplePicker. They allow multiple people to be added, so i need to check if the current user is added to any of the ...
1
vote
2answers
5k views

Tutorials or Documentation on SPServices

Anyone provide the links for the code snippets for jquery spservices .i can't found the examples on spservices.Am eager to learn the basics in spsservices.
1
vote
2answers
2k views

SPServices GetListItems to parent site in SharePoint Online

I'm trying to use spservices getlistitems to read a list on the root site. This is to populate the navigation for a custom master page so the navigation list just exists on the root site : i.e. http://...
1
vote
1answer
207 views

Dismount and Mount of social DB, Sync DB and Profile DB on SP 2010

We need to mount production DB's of user profile service to Dev environment. We have already restored on SQL dev. Now our intention, how to dismount existing DB's of user profile service and then how ...
1
vote
2answers
9k views

Pull Data from SharePoint List using JS and converting it into HTML in the following format?

I was wondering how to use JS in order to pull Data from a SP2013 list convert it into HTML using the following structure below. For example: The List fields are as follows: Title Date Image Body ...
1
vote
1answer
214 views

SPServices to create list items of a specific content type (i.e. specify the content type)

I'm attempting to use SPServices to create items in a custom list that are of two different custom content types but I can't seem to get it right. If I don't need to specify the content type of the ...
1
vote
3answers
640 views

CAML Query with AND OR

I'm struggling to get a simple query working and would appreciate any assistance in pointing out my error/s. I need to return all "Chart Type" that equal "Jacket" for "2016" in both "Mar" and "Feb". ...
1
vote
1answer
817 views

How to retrieve all folders in a document library using java script or spservices

I have created one document library,in that library i created some folders. How can i retrieve all folders in a particular doc lib using java script.Any ideas?
1
vote
1answer
464 views

DoesUserHavePermissions not working

I have tried multiple different ways to get this code to work. I will post both methods of code. Neither ones work. The idea is to get all the "Sites a user can access", and create a hyperlink within ...
1
vote
1answer
198 views

Add or Remove List Item Permissions Without a Workflow

I have a list in SharePoint 2010 that has custom SharePoint forms built for different situations depending on an approval process where each item is approved by two different people. Once the item is ...
1
vote
1answer
1k views

How to get user account name by display name

In Sharepoint 2010 I am getting display name of the user with SPServices like 11;#John, Kondo. But I want account name like mydomain\aa2311. Is there any way to get the account name with the display ...
1
vote
2answers
2k views

Sharepoint Date compare using Jquery

can anyone let me know whats wrong with following code var day = new Date(); var Today = day.getFullYear() + '-' + (day.getMonth() + 1) + '-' + day.getDate() + ' 00:00:00'; $(xData.responseXML)....
1
vote
1answer
4k views

SPServices - GetGroupCollectionFromUser - Limit Scope to Current SP Site

I'm currently using SPServices GetGroupCollectionFromUser to return all the Groups an SP user belongs to and it is working awesome! Would like to know if there is a way to limit the scope of ...
1
vote
1answer
2k views

How to get all pages from the pages library, including those who are in a folder, using SPServices?

I have the following code, which gives me the title and FileRef of a page: SP.SOD.executeOrDelayUntilScriptLoaded( 'SP.UserProfiles.js', "~sitecollection/Style%20Library/Scripts/jquery.SPServices-...
1
vote
6answers
9k views

Filter list data using SPServices, CAML Query, and dropdown list

I'm trying to create a table using SPServices to fetch the data, and filter it using CAML Query and a drop down list. I would like to create three conditions: A. If no item from the list is selected, ...
1
vote
1answer
5k views

Retrieve current site name (not url) programmatically?

I want to create a code that only generates a link for certain users in a group, but this group name changes across the many subsites that my users have. The group name = [Site Title] + ' Creators' (e....
1
vote
1answer
2k views

2013: Trying to pass jQuery user object to AngularJS

I am creating a SharePoint Hosted App and the default Visual Studio project uses jQuery to access the SP.clientContext to get_currentUser and save it in a global variable. To trigger an AngularJS app,...
1
vote
2answers
9k views

I am using `$().SPServices.SPGetCurrentUser` to get the current user but it's not working for few users. Is that a browser issue?

I am using the following code... but its shows nothing for some users var thisUserAccount = $().SPServices.SPGetCurrentUser({ fieldName: "Name", debug: false });
1
vote
1answer
337 views

Omitting SharePoint Special Character

I am using a SPServices (jQuery Library for SharePoint webservice) to grab list items. I have managed to get the data as follows: <z:row ows_Date_x0020_From="2013-06-03 00:00:00" ...
1
vote
2answers
166 views

2;# 5;# Web services returns odd characters

When I use SPServices to query a list it brings back some of the columns with odd prefixes and encoded characters. How can I get rid of the Oddball characters? I recognize the @amp; as a HTML ...
1
vote
1answer
5k views

Cascading Dropdown for Lookup with more than N items

I've got cascading dropdowns implemented for sharepoint 2007. It worked fine until lists exceeded 100 items. My code looks like this: $(document).ready(function() { $().SPServices....
1
vote
2answers
6k views

SPServices GetListItems don't work most of time

I'm using SPService in a list for take some information from an other list. It works just sometimes... I need to refresh lot of time before it works .... Here is my code : <script type="text/...
1
vote
1answer
5k views

SharePoint 2010 Lookup Column - Autofill with the same Item

I am struggling with some issue. I need to automatically fill the value of a field (in Edit or New.aspx) based on other lookup column. Now I have list Lookup with Name and Surname columns In the ...
1
vote
2answers
2k views

Displaying other people picker column properties on a view using spquery.js and spservices.js in MOSS 2007

We have a custom list with a person column. Want to display that persons Department on the list view. Possible with jquery/spservices? I have a jquery script that returns the currently logged in ...
1
vote
2answers
7k views

Pull values from a lookup column using SPServices()

I would like to retrieve values from a lookup column (pull down) using SPServices() and load an array in javascript. This is available only in Newform.aspx. How can I do this?
1
vote
2answers
753 views

Suggestions for implementing relationships between two lists

Here is what I am trying to accomplish: I want a Sharepoint list(s) that can track received client calls and all follow-up attempts from our staff. What I initially envisioned this would look like ...
1
vote
4answers
874 views

Add to Lookup Column Values During Form Lifespan

Has anyone ever successfully added a new item to a list which is used as the source for a lookup column while using an EditForm (or NewForm, same mechanism) and been able to save the form successfully ...
1
vote
2answers
9k views

Lists.asmx UpdateListItems returns unexpected error 0x80070005

I'm using SPServices to insert items to a list. The code works fine except for, some users see the response below: <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:soap="http://...
1
vote
1answer
4k views

Adding items using SPServices issues

Need some assistance on a bit of JQuery for writing to a MOSS 2007 list. I have the following spot of code. If I run it with just the title field, it works fine, adding additional fields doesn't work. ...
1
vote
2answers
756 views

Content Editor Webpart and SharePoint 2007 object model?

I have to supply the query and should display the information on the SharePoint 2007 page based on the Enterprise Search Results. I wonder, if it can be achieved through Content Editor WebPart ? ...
1
vote
3answers
51 views

CAML queries suddenly quit working; SP Online; SPServices

I have CAML queries performed against SharePoint Online lists through SPServices that have worked beautifully for 5 years. Sometime in the last couple of weeks they started returning incorrect results....
1
vote
1answer
98 views

Get Modified date of current page in Site Pages using SPServices

Using embedded script on a page from "Site Pages", I want to display the Modified date at the bottom of the page (I also want to display a custom column called "Page Owner", but I have figured out how ...
1
vote
1answer
260 views

SPServices get User ID of a user using SPServices

How can I get Userid of a user based on his account name or email using SPServices I checked here https://stackoverflow.com/questions/5542208/sharepoint-2010-use-spservices-to-get-a-users-id but ...