1
vote
1answer
71 views

Retrieving list items using Javascript and Caml query

Hi guys I'm new to SharePoint dev and working on a project to retrieve list items. I have followed the instructions from http://msdn.microsoft.com/en-us/library/office/ee539350(v=office.14).aspx and ...
2
votes
0answers
26 views

Get distinct values via mechanism used when clicking “Show Filter Choices” on a Sharepoint list using Javascript

As many other people on this site seem to need, I'd like to get an array (or equivalent) of the distinct values in a field for a list. The canonical way of doing this is to retrieve the entire field ...
0
votes
1answer
23 views

Sharepoint list to XML including the headings?

We store data regarding Scrum sprint retrospectives in a SharePoint list. I have to create a chart for visualizing this information (which is not part of this topic/problem), so I need to somehow ...
1
vote
1answer
27 views

Displaying Calculated Column hyperlinks as text in filter drop downs

I have a list which has employee IDs as a field. I then have a calculated column which takes this field and uses it to link to our company-wide employee directory. This means I can hide the employee ...
0
votes
1answer
37 views

Autopopulate sharepoint list field

Can anyone help me with auto populate of list field based on dropdown field. Like i have list A with field Location(dropdown field). It has 10 values like India, Australia, UK, US etc. If anyone ...
2
votes
3answers
50 views

SPServices is the Document Checked Out SP2010

I was wondering if anyone knew how to tell if an item has been checked in or out from SPServices? I am able to get all of the nodes but I do not see one which captures the checkout. Is there a way ...
2
votes
1answer
109 views

SharePoint 2013 sp.js Getting the column names of custom list

*Edit* I have figured out how come the data returned for the columns was showing the wrong labels. The issue occurs when the list columns are created using the quick edit mode, as it allows you to ...
1
vote
2answers
31 views

Custom List without CreatedBy / ModifiedBy through WebUI/SPD/Javascript

Is it possible to create a truely anonymous list without the created by and modified by columns defaulted, like if someone wanted a suggestion box? Specifically is it possible to do this in SP2010 out ...
0
votes
1answer
33 views

ECMAscript - grab field value from specific id number

I'm trying to grab the value from field1 with a specific id number, do a mathematical computation and update the same id number with the new value and update field1. I'm unsure on how to grab the ...
1
vote
1answer
104 views

SP2010 Javascript Object Model: programmactially add calculated column to list

I am building lists and adding fields via the following. I am wondering if I can add a calculated field and how you set the formula in this (or another method): function onCreateRootCause() { var ...
0
votes
1answer
50 views

SP2010 JSOM: when creating field using javascript, how to define date only instead of date & time

I create a list using: function createProjectList() { var clientContext = new SP.ClientContext.get_current(); var oWebsite = clientContext.get_web(); var listCreationInfo = new ...
3
votes
2answers
230 views

How do I programatically change the default value of, or remove from default view, title column using javascript?

Using the JSOM in SharePoint 2010, if I am creating lists programmatically using something like: this.myField= oList.get_fields().addFieldAsXml('<Field DisplayName=\'Key\' Type=\'Text\' />', ...
0
votes
2answers
955 views

How to get document URL of a Document Library item given Item ID and URL - using javascript?

I have access to a document library item URL. E.g. /Documents/Forms/DispForm.aspx?ID=585 Based on this information, I would like to get the URL of the document associated with this item. E.g. ...
0
votes
0answers
108 views

Trying to get all selected items from a list

Im trying to get all items selected in a list but unable to do so with the code below: getItem = new TextBox(); getItem.Text = "get item"; getItem.Attributes.Add("onkeyup", ...
0
votes
0answers
38 views

Sharepoint List entry

I have a requirement where I need to enter a SharePoint list with hyperlinks but I want those links to open in new tab. I entered the following script: ...
0
votes
0answers
211 views

How to add and delete items in SP list using multi select box?

My question is that I am using a multi select list box to insert selected data to sharepoint list and I am using ecmascript object model. <select id="dd" multiple="multiple"></select> ...
1
vote
0answers
66 views

Update CEWP without refreshing page

I have a webpart which contains 3 charts. The charts are built using google's chart API and SPJS Chart The problem I face is that I'm trying to get the charts to seamlessly update as the list gets ...
0
votes
1answer
63 views

Custom newfrom (upload a picture and fill in the picture url)

I have to customize an announcement list new and edit form. In the form is there is a Picture Colum. But I don’t want the user to go first to a picture library, upload the picture, copy the picture ...
0
votes
2answers
269 views

Using JavaScript to redirect a page

I am using JavaScript to redirect users who aren't owners to a different page. I am using $(document).ready(function() { //check owner status if(!isOwner) { ...
0
votes
1answer
382 views

Freeze Header Row

is it possible to freeze the header row in list? We add some code so the user can scroll trough the content. The code doesn't work for the header freeze. We work with Internet Explorer 10. Have ...
0
votes
2answers
610 views

Javascript fails in chrome and firefox, works fine in IE

I have this JavaScript code for my SharePoint forms which does not work in other browsers but Internet Explorer. <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js" ...
0
votes
0answers
90 views

How to retrieve user Quicklinks from MySite with CSOM?

this is my first post on SharePoint StackExchange. Is there a way to retrieve current user Quicklinks and show it on the Startsite with CSOM? In this example, the link below "Edit Links" in the Left ...
1
vote
1answer
362 views

Javascript : How to handle version conflict errors when using javascript COM?

so I use quite a bit of the javascript client object model for CRUD operations to lists from custom pages (inputs) and I have found that I get version conflict errors on saves from time to time....its ...
0
votes
1answer
265 views

Javascript Object Model REST/AJAX: does callback/resulting function have access to the id of newly created item

so if I use rest like method to create a list item in javascript, can I get the id of the newly created item in the callback/result function? function createNewRecord(url, body, callback) { ...
1
vote
1answer
238 views

column not found when creating list item with Javascript

I am making a SharePoint app with javascript. I am trying to add a list item to a list I have defined in visual studio. I have done this just by adding a list in the solution explorer, and I made ...
0
votes
2answers
327 views

How do I delete potentially many items from more than one list using JavaScript?

I'm trying to use a script to remove multiple list items from multiple lists. I'm using Javascript because I don't have access to Visual Studio. The idea is there's a Parent List item in a ...
3
votes
1answer
2k views

SP2010 Javascript REST API: updating list item using MERGE and POST

I am trying to use REST API approach in javascript to update a sharepoint list item where I have an id. So I use GET and POST to create records, but per MSDN article it looks like the way to do this ...
0
votes
0answers
283 views

Hiding Column on a List View with Grouping

I have a list that I need to dynamically hide columns on based on user. Sort of a rudimentary Column Level security type deal. This is being done through Javascript and JQuery to simply not display ...
3
votes
2answers
856 views

SP 2010 - Client object model (javascript) - How to use get_listItemCollectionPosition for paging?

This is my code: When I call the function to get the items, it fails (doesn't go to the fail function, it goes into the success function but crashes when I try to get the position object), and I get ...
2
votes
1answer
2k views

Add New List Item with SPServices anonymously

I have an HTML5 + jQuery application with a built in contact form that I wanted to hook into Sharepoint, and Lists seemed an ideal way to do that. I used the jQuery library SPServices to get this up ...
0
votes
3answers
2k views

SharePoint-hosted app don't get my lists

I'm developing a SharePoint-hosted app for SharePoint 2013 (in Office365), but I've a problem accessing lists within a SharePoint-hosted app. My code is well printing the lists, but it only show me ...
4
votes
1answer
488 views

Error using javascript to retrieve a SharePoint list's items

I am trying to use this method to query items of a column of a list in my SP site via javascript (the reason I am doing this is to display that info on the page by modifying the html tags in the DOM), ...
2
votes
1answer
143 views

Filter Calendar view by Title in SharePoint 2010

i want to filter calendar view using title field. Is it possible to filter calendar view without make changes in modify view ?
1
vote
0answers
147 views

Unable to access the SP2013 App from IE but able to access from chrome

I've started working on SP2013 App development. When I'm deploying the app from VS2012, the App is successfully getting deployed. But after Trusting the app, it is showing "Internet cannot display the ...
0
votes
1answer
2k views

Filter a SharePoint-List as you type with Javascript/jQuery

so my scenario is: My users don't like the filter technology provided in SP2010 Lists and Listviews (using the row-titles' dropdown) and likes to have a "normal" textbox and search the splist (one ...
1
vote
0answers
97 views

Updating a value of any item in a list based on a selection of bool for one item - jQuery

So I hope this makes sense. I have a column within a list that I want to use as an active flag. There are 5 possible categories and for each category there can only be one active value. So I need some ...
1
vote
1answer
911 views

How to get files count from particular library?

I'm using Sharepoint 2007 and unfortunately don't have any ways to server site scripting, no C# or PowerShell. Is there any way to get total number of files in a given Library using SPServices ? It ...
2
votes
1answer
4k views

How to retrieve all items from a list (with custom fields) by javascript object model

I need to get all my custom fields from my list by Javascript Object Model.. The code I wrote down is this: var items; $(document).ready(function () { ...
0
votes
0answers
182 views

XSLTListViewWP: filter results based on javascript variable/other control on page?

I have some custom html/jquery form stuff on a page, and I would like to update a LVWP on another part of the page if a user adds something. So for example, the list view web part just shows items on ...
0
votes
3answers
511 views

Why don't update a choice column with javascript?

I have a list . I want update special item of it with javascript. I created a js file and add this code to it : var context = new SP.ClientContext.get_current(); var web = context.get_web(); var ...
1
vote
2answers
1k views

List view loses focus when additional webpart added to page

I have a list page to which I need to add an additional webpart (in this case, a more powerful filter). However, the ribbon doesn't appear because the listview does not have focus. This is easily ...
0
votes
1answer
695 views

SPServices: How would I add Ascending=False to CAML in GetListItems

How would I use SPServices GetListItems and still be able to add Ascending=False to the CAMLViewFields? I haven't used this for long and I am just wondering if this is possible? Thanks as always!
0
votes
2answers
854 views

Batch update with javascript client object model?

Anybody know how to do batch list updates with the javascript client object model in Sharepoint 2010? I'm putting the list into an array right now and then a kendo grid is reading it. I can update ...
0
votes
4answers
2k views

Object doesn't support property or method 'get_item'

When i try with this code i got error Object doesn't support property or method 'get_item' . Please help me to resolve function showTitles(urlColumnName) { var selectedItemIds = ...
1
vote
4answers
2k views

How to verify in Javascript Object Model if a List Exists

How can I verify if the list I'm trying to retrieve in Javascript really exists? My code is: function Search() { var context = SP.ClientContext.get_current(); this.site = context.get_site(); ...
6
votes
3answers
4k views

How to get the ID of the list item just inserted using ecmascript

I am stuck at a place where I have to update a list which has a Lookup column. For example I am using this code to update my normal list var clientContext = SP.ClientContext.get_current(); ...
1
vote
0answers
228 views

Validate list item with javascript API

I want to develop a custom datasheet view to edit a list. I add item through the javascript API. The problem is that the service doesn't control fields value. For example : - I add an item with a ...
0
votes
2answers
3k views

How to get List Name from JS Object Model - List Name from URL problem

I'm trying to connect Ribbon to Pages.. This works, javascript get what I need and pass as parameter to my page.. I pass the URL and the SelectedItemsID.. I'm facing a problem: If I had a List ...
1
vote
0answers
105 views

will SP.ClientRuntimeContext.add_requestSucceeded stack events?

I'm looking for a new way to throw some tracking into list-based user actions (i.e. through ECB) and I stumbled accross SP.ClientRuntimeContext.add_requestSucceeded (see ...
0
votes
2answers
410 views

client object model and jquery not loading — sort of

I'm getting some data from a list via the client object model. After I get the list data, and the page loads, I want to use a little jquery to add a hover effect. Easy enough, right? Well ...