Questions tagged [spservices]
SPServices is a jQuery library which abstracts SharePoint's Web Services and makes them easier to use.
185
questions
2
votes
2
answers
332
views
spservices.js is returning this error:- Uncaught (in > promise) TypeError: Cannot read properties of undefined (reading > 'LookupList')
Inside our SPFx SharePoint online web part we have the following code inside a javascript file:-
spservices.prototype.getLookupFieldOptions = function (siteUrl, listId, fieldInternalName) {
...
0
votes
0
answers
18
views
Adding an attachment control to a Custom Form in SharePoint 2016
I've created a custom form, but the attachment button on the Ribbon is disabled. So I added an attachment button to the custom form and I'm getting the error of "Uncaught TypeError: Cannot read ...
1
vote
1
answer
54
views
How to Make Script Flexible when New Item is Loaded in SharePoint Folder
I am seeking help with my JavaScript script to make it expandable when a new item (video) is added to my SharePoint folder. I created a counter that counts each time the video button is selected and ...
0
votes
1
answer
354
views
How to update list items in SharePoint Library Sub Folders Using SPServices And JavaScript
In SharePoint and using SPServices, I am trying to update the content of the files uploaded in the sub folders
This is the image and also the file metatdata i want to update.
The library structure ...
1
vote
1
answer
137
views
Interaction of executeOrDelayUntilScriptLoaded and <Script> html
The script that I am attaching to my SP2013 NewForm is as follows
<script src="https://.../lib/JQuery/jquery-1.10.2.min.js"></script>
<script src="https://.../...
0
votes
1
answer
55
views
Is there a way retrieve data from SharePoint list using JS & keep the list permission private for anonymous users?
I am retrieving data from a SharePoint list using JavaScript as below.
$().SPServices({
operation: 'GetListItems',
async: false,
listName: listName,
CAMLViewFields: '<ViewFields>&...
0
votes
1
answer
375
views
cascade dropdown to have 3 level relationship with 3 columns in code not only 2(multiple childs or parents for the same relationshiplist)
For example, say I have 3 lists
List 1: District (dist_code,Title)
List 2: City (dist_code,District(lookup to Title column of District list), Title, city_code)
List 3: Quarter (dist_code, city_code,...
0
votes
1
answer
399
views
How to parse XML to a column(field) of SharePoint List on a new/edit form via CEWP
Problem description:
I want to parse the XML to fill up some columns(single line text) on the new/edit form automatically after clicking the load button.
Background:
The XML is from an external ...
0
votes
1
answer
41
views
Properly Nesting Compound AND / OR Statements Using CAML
I am leveraging SPservices within a SharePoint 2013 environment to create filtered views unique to the current user. Effectively, when a user visits a page, they get a custom feed of documents that ...
0
votes
1
answer
344
views
How to add new Field to sharepoint list with SpServices
Hi i'm trying to create a sharepoint list with SPServices and I've got the create part working.
next i need to add new columns either during the creation or after. However I cant get the add new ...
0
votes
1
answer
228
views
SPServices GetListItems function within another GetListItems function
I am working on a project that involves two separate lists within the same SharePoint site. I have used the GetListItems function in SPServices to retrieve the list items from list A and plug the ...
0
votes
1
answer
265
views
Do I require permissions to run SPServices on Sharepoint?
I require assistance with Sharepoint. I've tried multiple ways to retrieve data from a list and have had little to no success, after much reading and searching I'm still no further ahead.
I am using ...
0
votes
1
answer
87
views
Recovering current user on Sharepoint 2010, angular version 6
I'm trying to recover the current user on a Sharepoint App inside Sharepoint server, It works in an old app I've tested here builded on AngularJS.
The code on AngularJS app is like this code below
...
0
votes
1
answer
1k
views
Upload File to Sharepoint List using SPservices
I'm having an issue with trying to upload an attachment from a file picker. When I add the file to be uploaded i just get the error.
Unable to get property '0' of undefined or null reference
and it ...
0
votes
1
answer
2k
views
Read Sharepoint Document Library file with JS FileReader API
I see other versions of this question that don't provide a Javascript solution. Can someone create one for this? I'm banging my head against the wall trying to get this to work.
So my overall scope ...
0
votes
1
answer
375
views
Issue trying to get Unite Gallery working in SharePoint 2016 on-prem using spservices
I keep getting the following error:
jquery-1.12.3.min.js:4 Uncaught TypeError: Cannot read property 'slice' of undefined
here is the code I'm using: (original src at: https://futuretechnologygroup....
0
votes
1
answer
378
views
Redirect to list view after updating list item using SPServices.js
I created a custom form to submit list item and attach multiple attachments.
And would need to redirect user to default list view after all the attachments are attached to a list item.
I tried adding ...
0
votes
3
answers
259
views
Spservices getlistitems managed metadata column
I have a regular custom list with all sorts of data but the one that's not working with the spservices getlistitems is the managed metadata field.
I am getting undefined when I tried to use ...
0
votes
0
answers
265
views
SPservices get listitemid
I'm following this example on how to get the links to list attachments. My console logs 'ReferenceError: id is not defined'. If I, however, hard code an arbitrary listitemid (i.e. 1), the code works ...
0
votes
1
answer
485
views
SPServices is null or not an object
I added this single method to sharepoint web Part.
And even though it works in a different project in different repository, it does not work in the current site, any idea what might go wrong?
Code ...
0
votes
1
answer
119
views
SharePoint 2010 - MetroTabs & SpServices . All Lists get rendered in first TAB
Goodmorning guys,
I'm working on a SP2010 project for a internship.
The company has multiple SSRS reports which they would like to make accesable trough UI buttons on the front page.
These ...
0
votes
1
answer
192
views
SPServices Unique choice field not giving list entry
This one may sound weird but any help would be greatly appreciated.
I'm using GetListItems of SPServices and one of the fields is a Choice field that has to be unique (which I believe is causing the ...
0
votes
1
answer
157
views
Get collection items from external site within sharepoint site
I need to get all items of a list in my Sharepoint site. So I used this snippet :
<script type="text/javascript" src="filelink/jquery-1.6.1.min.js"></script>
<script type="text/...
0
votes
1
answer
1k
views
How to import js file as module in typescript
I am working with SPFx framework in SharePoint, which will have typescript files. I am using SPServices.js and app.js (custom js file) in my application. In config.json file I am using like below:
"...
0
votes
1
answer
24
views
How to generate jQuery auto complete tags from jQuery .each result
I want to populate tags of jQuery autocomplete from result of .each in jQuery
how can I do it any help is appreciated.
My Code:
var availableTags ="";
$(xData.responseXML).SPFilterNode("z:row").each(...
0
votes
0
answers
41
views
Getting long decimals from arithmetic operator [duplicate]
I have a piece of code that is pulling data from a SharePoint list from I'm using SPServices and this code then pulls from the Spent column and adds up all the numbers and then puts it in an array ...
0
votes
1
answer
750
views
SharePoint UpdateListItems using SP Services not posting error
How can I write jQuery code using SP Services to post to a SharePoint list? Currently, I'm using a form to get the mailing group name and details. When I run my code, I get a server 500 error. I'm ...
1
vote
1
answer
2k
views
How can I use dropzone.js to upload files to a SharePoint file Library using SPServices?
I need to add drag and drop functionality to a SharePoint application for uploading files.
I'd like to use dropzone.js as it already has much of the functionality needed.
Everything must be handled ...
0
votes
1
answer
190
views
Using SPServices with GetTemplateForItem to get workflow GUID - Possible Permissions Issues
I seem to be having an issue with GetTemplateForItem to get a list item workflow GUID.
When I run it with my account, I am able to get the workflow GUID with no issues. When I run it with a regular ...
0
votes
1
answer
67
views
SPServices to build data table with URL
The problem is that I'm getting different results eachtime when I change the quotes. I have to use this method as downloading a KML file with other methods opens the KML in a new tab and displays the ...
0
votes
1
answer
588
views
JQuery Autocomplete Sharepoint 2013 and Infopath, Works Only Once
I am new to this community and I have been looking for an answer on this for the past 48hs searching and trying.
I created a form in Infopath Designer 2013. Also I am using SPD 2013 and what I am ...
0
votes
1
answer
384
views
SPServices Sum returned values
I'm using SPServices to query a SharePoint 2010 list, a can get only the values that I want but when I try to sum all of the it only show "as a string"
Here is the code that i use:
var TotalAmount = ...
0
votes
1
answer
246
views
Sharepoint using jquery SPServices: How to exclude "Editor" field from GetListItems Response
I'm trying to get a sharepoint list items while excluding some fields (for security purposes)
The request SOAP XML is as follows
<soap:Envelope
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'...
0
votes
0
answers
614
views
Function returns undefined instead of true/false when i try to save in SP Online
Im trying to set a True/False flag based on this function so i can set the PreSaveAction to return the correct result. Basically, this function checks the permission group to see if the current logged ...
1
vote
1
answer
812
views
Item is undefined when using SPServices to fetch items from Sharepoint list
I am trying to fetch all items from the SharePoint list if the column value contains "Some Value". The item count I am getting is correct, however my items object "liHtml" always is returning ...
0
votes
1
answer
796
views
SharePoint-How to Get All Subsites,Subsite Lists, List Content
I'm new to SP Services and programming in general,so your help and support will be very much appreciated!I have a task to find a way to get all subsites from a SharePoint page,then to get all lists/...
0
votes
1
answer
1k
views
How to get the Image URL from Picture Library and folders in SharePoint
I want to get the Image URL from picture library and from the folders inside the library in SharePoint. I have tried both internal names ows_FileRef and ows_EncodedAbsUrl.
For ows_FileRef it is ...
1
vote
1
answer
1k
views
using SPservices to check current user exists in list
I have created a script with jquery/spservices that checks if the current logged in user ID appears in a column called userid in a custom list. If successful it returns an alert to say current user ...
0
votes
1
answer
328
views
Variable not working with SPServices
I'm having an issue with my variable. I'm not sure if it is syntax related, but for some reason the first part of my if statement with my variable will not work.
I tested it without the SPServices ...
0
votes
1
answer
195
views
Pass jQuery text()-Variable to a function
I have the following issue:
I want to loop through all <td>-elements in the document and replace text with some data from Sharepoint (by using SP.Services).
updateData ();
function ...
0
votes
1
answer
88
views
redirecting window is not working properly in sharepoint
i am trying to develop a html, after submitting that page i want to redirect to another page using javascript window.location.href tag but it is not working properly, it is redirecting to the same ...
0
votes
1
answer
2k
views
Using SPServices to get Choice Column options
I would like to create a custom modal that has the same drop down items that are contained in the choice column when adding a new item. My page is a custom .html and does not load the default ...
1
vote
0
answers
194
views
How to correctly insert managed metadata term id using spservices updatelistitems
I have a sharepoint 2013 site that uses a managed metadata term set for navigation. Documents can be tagged with the managed metadata so they appear in whatever category or categories is appropriate ...
0
votes
2
answers
1k
views
SPServices loading but not working
$().SPServices({
operation: "GetGroupCollectionFromUser",
userLoginName: $().SPServices.SPGetCurrentUser(),
async: false,
debug: true,
completefunc: function (...
1
vote
1
answer
732
views
SPServices Multiple list same site
Using bellow code I can get only one list.
But I have two lists (same Index No in both list)How can I get two list within one site?
<script type="text/javascript" src="filelink/jquery-1.6.1....
1
vote
2
answers
2k
views
How to add values to multiple lookup field in SharePoint using UpdateListItems
I need to add multiple values (ID fields of another custom list) to a Multiple Lookup field using Sp-services.
What is the correct format of the data to be used ?
I have tried like ( 5,9,6 ) but only ...
0
votes
0
answers
39
views
Javascript - Using looped var with innerHTML
Attempting to generate a list of hyperlinked items using the SPServices library. How would I call or return the looped variable inside a a href? The way it currently is coded only renders the string "...
1
vote
1
answer
531
views
Unable to update ParentItemID while creating sharepoint discussion board reply using SP services
I am trying to create reply to a Sharepoint discussion board discussion using list.asmx service, reply is getting populated but its corresponding ParentItemID is not getting updated.
Below is the code ...
0
votes
1
answer
270
views
SPServices.SPGetCurrentUser Unrecognized Expression
Console:
Sizzle.error @ jquery-1.9.0.js:4411
tokenize @ jquery-1.9.0.js:5057
select @ jquery-1.9.0.js:5439
Sizzle ...
0
votes
0
answers
151
views
SP2013 and SPServices
I am looking for a way of putting CanvasJS charts generated with use of SPServices into the Webpart page.
What I did so far:
Created webpart page(SPDesigner>SitePages>Webpart Page)
Added table to ...