0
votes
0answers
13 views

N number of call for /_vti_bin/client.svc/ProcessQuery

I have on application page which will display data from list. For that I have write client object model code which is as follow: var PageList = _spPageContextInfo.siteAbsoluteUrl + '/xxxx'; ...
1
vote
1answer
21 views

How to write a WCF Service for SharePoint 2013 hosted App?

I've deployed a WCF Service in SharePoint. I am able to retrieve data from it using URL: http://nit-hv8-itr4:1111/_vti_bin/PresidentsService.svc/GetAllPresidents The problem occurs when I try to ...
0
votes
1answer
57 views

Option to upload and download file to SharePoint Document library

I want to give option to user on .aspx page to upload and download file to SharePoint Document library. I created an ASPX form page. There is an option to upload / download the document for storage. ...
0
votes
1answer
68 views

Uncaught TypeError: undefined is not a function

I access my web in javascript code in SharePoint 2013. I'm using Jquery and KnockOutJS for my other functions. So I have added following urls above my code. <script type="text/javascript" ...
2
votes
1answer
87 views

Add file with comment sharepoint client object model

I use following code to add file to SharePoint library using client object model. Web web = context.Web; FileCreationInformation newFile = new FileCreationInformation(); ...
1
vote
1answer
100 views

Copy files/folders between site collection and retaining metadata

I'm using SharePoint 2013 I need to copy files/folders/sub folders from one site collection to different site collection(basically archiving them). I need to do this remotely by using CSOM/JSOM. ...
1
vote
2answers
36 views

Get the field “Created”

I have a list "Consult", and I want get the field "Created" this is my code: function consultWorkOrder() { try { var customlist ; var clientContext = new ...
1
vote
1answer
214 views

how to use the gridview in SharePoint 2013 Hosted App

I want know how to use the grid view in a SharePoint-hosted App. Can any one provide information on this?
0
votes
2answers
195 views

Jquery to display date in MM/DD/YYY in sharepoint client object model [closed]

In My sharepoint list i have a Duedate if type DateTime.Using Client object model when we fetch the value from this Field, it is displayed in the below format(Mon Jun 23 GMT+0530 2014).How to convert ...
1
vote
2answers
96 views

Update Existing Site Content type Column through code

I have a calculated site column. This Site column is used acrossed sites in Content types. Now when I use power shell script to change the Calculated foremule is allowing me to change only in Site ...
1
vote
2answers
405 views

Moving documents from one server library to another server library programmatically

I am a beginner in Sharepoint and given a task to write timer jobs. Once triggered, I want to move documents from one Sharepoint server library to another server library programmatically. So far my ...
0
votes
0answers
97 views

Find termsetid by term name in Sharepoint 2010

i want to retrieve termsetid in console application using client object mode. because i want to create metadata site column using client object model but i need termsetid to create id. how to get this ...
0
votes
3answers
995 views

What is best practice to add list item in SharePoint 2013 javascript object model?

I need reference code to add an item to a list programmaticaly via javascript object model in SharePoint 2013.. Got many solutions online but not sure what js to include, whether ajax calls are need ...
2
votes
1answer
705 views

Can we access list from other site collection sites using javascript object model?

ECMAScript object model can only be used in SharePoint sites. So you can’t use this object model in an asp.net site to access SharePoint resources deployed in another url as this is cross-site ...
3
votes
1answer
108 views

How to check whether Content Database is read-only or not?

How to check whether Content Database is read-only or not using client context ? we can easily get using server object model but how to do this with Client Object Model
1
vote
0answers
143 views

Enterprise Keyword not updating in SharePoint 2010 using client object model

Tried the following, it didn't give any error, but that column wouldn't update, while the Title did. please help me to resolve this problem using (Microsoft.SharePoint.Client.ClientContext ...
0
votes
1answer
728 views

Client Object Model to Retrieve UserProfileAttribute

we can get directly user information by using Server object but how to get this by using Client object model ?
1
vote
1answer
2k views

Retrieve Iist Item column values with column names on Item click, JavaScript

I need to retrieve List item column values with column names on item click. In SP2010, I have a XSL which calls the JavaScript. I have sent the list item id through the XSL into the JavaScript ...
0
votes
1answer
62 views

Issue when getting library GUID through JavaScript

I'm using SharePoint 2010. I need to get some SharePoint data on a list item hyperlink click. Inside the JavaScript file there is a method getLibraryGuid() I get the targetLibrary value with no issues ...
3
votes
2answers
852 views

View custom field property value using JavaScript

I'm using SharePoint 2010. Need to retrieve the Custom field property values using a JavaScript. [Trying to do this during item click in the SharePoint list item view. I call the JavaScript on the ...
0
votes
1answer
318 views

Check-In & Checked Out files inside folder in Document library using Client Object Model

I am not able checkin/checkout the files in sub folders in the document library using client object model. Below is the code I am using. public void CheckOut()// CHECK OUT FUNCTION { try { ...
1
vote
1answer
651 views

Move documents from one folder to another in diferent library in different site collection from Client Object Model

I want find and move all documents from one folder to other in different site collection document library. Both the folders are at the sub folder level 3 from the actual list. Please let me know how ...
0
votes
1answer
335 views

Bind ListItemCollection as a DataSource of a DataGridView

I am using SharePoint Server 2013. I am trying to show a list data in a DataGridView in a windows forms application(client application). I obtained the ListItemCollection object related to the ...
1
vote
1answer
96 views

Adding list items using the Client Object Model

I'm currently working on a Windows application to be used to migrate data from a legacy system into a SharePoint list. To do this I am accessing the Client Object Model and using it to create new ...
1
vote
1answer
1k views

Update list column using client object model code in SharePoint 2013 goes in onFailure without giving errors

I am using javascript to write the client object model code in SharePoint 2013. I want to update a column of the form library but I am not able to do it. The code goes in the onFailure method without ...
0
votes
2answers
108 views

Client Side Object model code goes in onFailure function

I am using the client side object model to approve multiple items from the form library. I need to access the values of some of the columns of the form library. The following is my code: var ...
0
votes
0answers
171 views

SharePoint 2013 custom TimerJob gets no results from list but same code as a console program returns results

Can anyone provide any ideas on why the below query returns nothing when inside a custom timer job. But when run from a console program it returns results. Note, both console program and OWSTimer.exe ...
1
vote
0answers
131 views

While creating folder in sharepoint using C# takes much time

Yesterday I have programmed to create folder in SharePoint 2010 using C#. It's fine that code create folder but the problem is that while creating a folder it takes 5-10 seconds. And i think it's too ...
1
vote
1answer
3k views

How to get the return username using javascript? [duplicate]

I am trying to store the username return by the variable username using the code below, but it seems nothing is returned (Username:undefined pops up), may somebody advise how to make it works? var ...
2
votes
2answers
2k views

How to get all the web application of SharePoint.

How do I get url of all the web application created in SharePoint 2010 with client object model using C#.
1
vote
1answer
3k views

Convert Image src to base64 [closed]

I am working on Sharepoint 2010, I have create one custom button. when user select any row from list and click on custom button then I have fetch one multiple line column html in one variable name ...
2
votes
2answers
3k views

SharePoint client model and setting up lookup field

I have list A with "Title" column which is lookup column to List B. I need to update existing List B documents so that they will be linked to List A. However, SharePoint client context doesn't accept ...
0
votes
1answer
1k views

Jquery is not working on sharepoint date time control

Hi In my application page i have a sharepoint datetime control. I am using jquery on text changed event to calculate the number of days and displaying in a text box. Now i want to fire the same event ...
0
votes
4answers
340 views

How to get the list item column values based on the html drop down and display in the alert box using Javascript?

I have a html dropdown list(team name) which contains three values A,B,C I have a sharepoint 2010 List A which contains Team name and Email. List A Teamname Email A A@test.com B ...
1
vote
0answers
285 views

How to get the distinct values from sharepoint list using GetListItem and bind to dropdown?

I am Passing the XML for getting List item and binding to dropdown. Here i have shown the code.. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" ...
2
votes
1answer
3k views

Get List Items using ECMAscript CAML query

Hi can anyone show me how can I retieve list items based on 2 fields using ECMAscript CAML? I have a list where I have uid as number and city as text. I want to retrieve all items where uid = 100 and ...
0
votes
2answers
68 views

JQuery on SharePoint 2010

What are the business case scenario when JQuery controls are used in CSOM programming in SharePoint 2010? I mean what are business case scenario when JQuery frequently used in SharePoint 2010? Which ...
1
vote
2answers
1k views

How to apply CAML in SharePoint view

I'm using SharePoint client object model and trying to query specific view but not getting the correct method to do so. Here is my code, using SP = Microsoft.SharePoint.Client; using ...
3
votes
2answers
3k views

SharePoint 2013 lazy load for .click() issue

With IE 10 and Chrome 26 on Win7 x64 (Host1) no issues are appearing, except Firefox 20. With IE IE 8 on Win7 x64 (Host2) and IE 10 on Windows Server 2012 x64 (Host3), there is the following issue I ...
3
votes
2answers
669 views

Programmatically add item to sharepoint list from window application

How to add item to SharePoint list from window application using claim based authentication ? it gives 401 forbidden error. user is authenticated from ADFS server.
0
votes
1answer
37 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 ...
5
votes
2answers
1k 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
203 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 ?
3
votes
1answer
583 views

Anonymous access issue in SharePoint 2010

I set an anonymous access to home page in sharepoint 2010. but when i open page like 'http://servername/Sitepages/homepage.aspx' , i working but when i open http://servername/ , its not ...
2
votes
1answer
2k views

sp.js not loaded js file provisioned by a module

I am trying to use a .js file to highlihgt nodes in a top navigation menu based on url of the current web. The javascript file is provisioned by a Module in a Empty SharePoint 2013 project item. The ...
4
votes
2answers
184 views

Is it possible to Fire event when Content type added in Shared Documents in sharepoint 2010?

How to fire event when any content type added in shared document library ? How to handle this event ?
0
votes
1answer
197 views

problem with loading client object model

I am using JavaScript Client object model to get rootWeb and check permissions of current user. So I have used ExecuteOrDelayUntilScriptLoaded in my MasterPage to wait for sp.js. The problem is when I ...
0
votes
0answers
422 views

How to send Email using Client Object Model ECMA Script/Javascript?

I want to send Email using Client Object model JavaScript.. I found Somewhere that it is not possible using Javascript but as I am using NAPA Tool for development in SharePoint 2013 this is the only ...
4
votes
3answers
5k views

PowerShell and the client object model: “The collection has not been initialized”

I'm trying to grant a user permission to a SharePoint site using PowerShell and the client object model. The code I'm using is as follows: # Setup context $context=New-Object ...
1
vote
1answer
465 views

anchor tag in SharePoint master page

Hi can someone help me in putting up a anchor tag in SherePoint custom publishing master page. Actually I want to open a site page on click on this anchor tag, this site page will be in the top level ...