Tagged Questions
0
votes
2answers
16 views
How to get display name from created by field in sharepoint client object model?
In my sharepoint javascript code, I am retrieving items from a list in my SP 2010 environment. I used a camel query to download specific fields. One of the fields was created by (person who created ...
1
vote
0answers
11 views
How to create object of type SP.ListItemFormUpdateValue
How can i instantiate object of type SP.ListItemFormUpdateValue and initialize it to a List field so i can read the field values on client side?
If this is not posible, how can i read a value in a ...
0
votes
2answers
36 views
Item ID of current row
I am working on a script that needs to pull the SharePoint list item ID from the current row. I have a checkbox field in a multi-item form webpart that, when checked, needs to update the item without ...
1
vote
2answers
35 views
Prevent/override standard Modal Dialog close button(X) from closing
I want to validate custom modal dialog form and if its not ok, prevent form from closing.
For this purpose, I attached to X-close-dialog-button. Problem is to prevent it's default behavior.
function ...
0
votes
1answer
23 views
Getting user email from a List Item column using Javascript
I am creating a Hosted app using NAPA on Sharepoint 2013 (Office365). I need to retrive a user from a list column and get the user's email.
SP.List.getItems with a query returns a listEnumerator ...
1
vote
1answer
37 views
How to open file in adobe reader using command line without checkout from Javascript?
I am working on print functionality. I am printing the PDF files (uploaded in SharePoint Library) using Adobe Reader command line from javascript. I am using ActiveX object to call the cmd. refer ...
0
votes
1answer
26 views
Javascript IIFE and SharePoint Client Object Model
I'm having a problem with my javascript code that I am sure is to do with scope, but I can't figure out where I'm going wrong.
I'm trying to write a method that will allow me to retrieve items in a ...
0
votes
2answers
55 views
Control JavaScript with Ribbon Button
my aim is to add a Ribbon Button which is opening a printing dialog for a selected file in a document library. I already added the Button with SP Designer and linked it with a html file which is ...
0
votes
1answer
46 views
Programatically update profile field(s)
I have a requirement to update user profile fields. I'm able to query the fields, of course, using the CSOM API in Javascript.
But, as per here - ...
0
votes
3answers
36 views
Multiple Webparts with same JavaScript on one Site (another Problem)
I rebuild the site (site before). I have on the site two or more Webparts. These CEWP are including the same JavaScript and this the JavaScript is displaying a table via:
...
4
votes
2answers
112 views
how to set list alert using javascript in sharepoint 2010?
I need to set a list alert for current (logged in) user using javascript.
var currentcontext = new SP.ClientContext.get_current();
var currentweb = currentcontext.get_web();
...
1
vote
0answers
27 views
Retrieve property bag for sub sites using JSOM
I need to go through all sites belonging a site collection to validate a property bag of them. following is my code. the problem is the second call to get the property uses only one of the sites. I ...
0
votes
2answers
66 views
Multiple Webparts with the same Javascript
I have a site with multiple Webparts. Some Webparts are linking on the same .html file.
The HTML file reads data from a list and displays it in a table by using javascript. My problem is that there ...
0
votes
1answer
48 views
Conditional Formatting very slow
i am using SharePoint 2010. I built a webpart which is displaying elements from another list on the same page.
This works fine and fast but when i put in the conditional formatting the loading process ...
0
votes
1answer
145 views
SharePoint Client-Object-Model - Return List Item Counts by Created Month
Looking to get monthly totals of items from a list using the SharePoint COM/SP Services. My intention is to pass this data to a D3 chart.
0
votes
0answers
34 views
How to Enable intellisense for ecmascript cliennt object model in sharepoint 2010
I want to enable intellisense for ecmascript object model in sharepoint 2010.
Iam able to get some properties but not getting all the objects and properties.
like for below code iam only able to get ...
2
votes
1answer
420 views
Javascript get SharePoint List items, enumerate, and locate and pin each item on Bing Map
The map is rendering and debugging in IEf12 does not show any error with loading the list. I am using a CEWP referencing this file - SharePoint Online (Office 365). What's wrong with this code?
...
1
vote
2answers
100 views
SiteMap using ECMA script Client object model
Iam trying to create a sitemap for sharepoint sites to get a hierarchial structure of all the subsites within a site. but Iam only able to get sites of that site
eg: -Lets say i have created below ...
1
vote
1answer
290 views
How to modify user profile properties using javascript in SharePoint 2013 (Online)?
I need to modify user profile properties using javascript (REST or CSOM). How can I do that?
I don't see any methods in MSDN documentation about modifying profile properties without server code.
...
0
votes
1answer
28 views
SpcalenderView Javascript on Mouse hower
I have one issue with spcalendarview. I just wanted to show spcalender item to the contain editor web part from the link here
but i wanted to my custom page into the contain editor web part
so how to ...
0
votes
1answer
87 views
Getting Filtered results by Date column from a list with BCS and SharePoint 2010 JavaScript Client Object Model
I'm trying to get the filtered results by a column type DateTime from a list filled with BCS using JavaScript.
I've tried everything to get those results with query like:
"<Where>" +
...
3
votes
1answer
119 views
ScriptResx.ashx Not Working
I'm trying to use ScriptResx.ashx in an Application Page I'm building (just to test out the functionality) and every time I try to grab a resource from what should be a JavaScript object, SharePoint ...
2
votes
1answer
86 views
Javascript CSOM SP.List get_onQuickLaunch
I am trying to get the onQuickLaunch flag from a SP.List using javascript. I am able to get other list attributes, however when I try to execute
list.get_onQuickLaunch();
I get an error
Uncaught ...
0
votes
1answer
192 views
inserting multiple user /group to a list item of type spfieldUserValue
I have used following code to add users and groups to a list item of type SpFieldUserValue. it works if there is one single user or group in my client side people picker but if there is more than one ...
3
votes
1answer
278 views
Best way to access SharePoint (online) from a Windows 8 RT/Metro application?
I am developing a Windows 8 tile app/Metro (Windows RT) application.
I have experienced some problems linking with the C# client object model
assemblies due to limitations in RT.
I was hoping I ...
1
vote
1answer
76 views
I am confused about the Javascript Client Object Model and when it can be used
Is it only intended for use "inside" SharePoint?
Using the .Net/C# client object model I can execute applications on my
local machine and access a remote SharePoint server.
I can only find examples ...
0
votes
0answers
136 views
current user is always is administrator on a SharePoint App
I have tried following solution to check the current user's permissions on the current host web in a SharePoint hosted app, however the user is always administrator.
function sharePointReady() {
...
4
votes
1answer
202 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
210 views
Display all documents from multiple document libraries using client object model
Can anyone help me with the code to display documents from multiple document libraries using javascript client object model. I have done displaying from single document library.
0
votes
1answer
65 views
Fill the fields in new form for an item
I've came across a requirement where I need to fill some of the fields in newform.
So basically we start from view item, where we can see an existing item in a list, then we click something like move ...
3
votes
2answers
509 views
ExecuteOrDelayUntilScriptLoaded not executing after page publish
In SharePoint 2013 I have a page that is using the Script Editor web part.
In the script editor web part I have the following:
ExecuteOrDelayUntilScriptLoaded(startIt, "sp.js");
function startIt() {
...
0
votes
0answers
391 views
CAML Query for sub folder documents javascript
I'm trying to query for documents in a specified sub folder of a document library. Using U2U CAML builder, I can generate the query and return successfully within it.
However, when I run the query ...
2
votes
2answers
176 views
Query SP2013 Managed metadata term store
I was wondering if it is possible to query the Term Store via the REST API or Javascript Client Object Model in SP2013.
I can't quite seem to work out the naming scheme for the REST API to discover ...
1
vote
1answer
459 views
JavaScript Client object model get content type
I have created a JavaScript file and deployed across my site collection. The code is supposed to get the content type ID from any upload form, figure out what this content type is and based on this ...
1
vote
0answers
65 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
1answer
98 views
Accessing page metadata properties via clientside API
Morning all,
Can anyone advise if it's possible to access a document / web part page properties via the client/JSCript API for use elsewhere on the page.
To put this in context, I've inherited a ...
1
vote
1answer
334 views
How get item in CommandUIHandler EnabledScript use javascript
can anyone help me with the problem:
I have a list external items from my system and i add a custom button on a ribbon. My item has a state and depending on the state my button should be available or ...
2
votes
1answer
180 views
ECMA/js CSOM retrieving items from multiple lists with async processing? how?
I am struggling with javascript and learning callbacks, and applying this to SharePoint 2010 specific js/jquery methods of getting and savings values from lists. So I am recently getting into the ...
1
vote
0answers
92 views
Getting column information from a sharepoint 2010 list
I'm trying to figure out how i can get information about a column in a Sharepoint List, like what type of column it is (single line, number, date etc...) and whatever additional column info that ...
0
votes
3answers
357 views
jquery client object model to return json: what about caml vs. js filtering?
trying to learn client object model (ecma/js/jquery) approach to returning json data and working with that. below I will supply a quick example, but my question is basic context of how would I go ...
0
votes
1answer
207 views
SP.Web.EnsureUser(user) does not seem to work. (JavaScript Client OM)
Supposedly, SP.Web.ensureUser(user) works according to this MSDN link but I cannot seem to get it to work in my JS code.
While debugging, I can see that SP.Web exists and the user variable is ...
6
votes
4answers
592 views
ExecuteOrDelayUntilScriptLoaded too slow in Firefox and Chrome
I want to use CSOM but waiting around 2 or 3 seconds after page load before I can even do my first query is crazy! See below. Using jQuery dom ready shows a reasonable ready time, but SP.ClientContext ...
1
vote
1answer
386 views
Unable to get correct element on a sharepoint page using document.getelementbyid('<%textboxID.ClientID%>')
I have a sharepoint website which has multiple instances of the same visual webpart. On button click I am trying to get a textbox present in the usercontrol of the webpart using ...
4
votes
3answers
285 views
Commit modal dialog and then display notification
I have a modal dialog that I commit by calling window.frameElement.commitPopup(), and this is great because it refreshes the parent window.
However I would also like to display a notification on the ...
2
votes
2answers
501 views
How to retrieve Sharepoint list data in master page
I have Created Custom Master Page.
and i want to access SharePoint List Data in this Master Page using JavaScript.
I write the following script to access data but it gives error that ...
2
votes
1answer
199 views
How can I get specific SharePoint site GUID using javascript/jquery
For example:
I have a site under this url: http://intranet.contoso.com/news
When I open it i would like to read it's GUID for future use in my custom AssetPortalBrowser.aspx url picker.
Thanks!
0
votes
0answers
174 views
Error while Updating Sharepoint 2013 List from Apps [closed]
How to update SharePoint Site list from SharePoint 2013 Apps ?? When we access list from app which is already create on site, Its giving error like access denied ?
0
votes
2answers
395 views
Add multiple people using Javascript Client Object Model to a Field of Type SPFieldUserValue
I want to update a UserField client side.
I found the following code at this topic How to Use ECMA CSOM to Set a Field of Type SPFieldUserValue
Tried the following code:
var users = new Array();
...
4
votes
3answers
1k views
How to access list in SharePoint Hosted App?
I want to create an Sharepoint hosted app but how to access list in these App ??
1
vote
1answer
292 views
Getting the Item ID from the ECB (Edit Control Block) using JavaScript
I know I can use {ItemId} to pass it to the URL like so:
<UrlAction Url="~site/_layouts/ConvertItem/ConvertItem.aspx?ListId={ListId}&ItemId={ItemId}&ItemUrl={ItemUrl}"/>
...



