FAQ Database Discussion Community


Autofill input text on Sharepoint 2007 using Jquery

javascript,jquery,html,sharepoint,sharepoint-2007
im sure this is a simple question but can't understand why this isn't working. I simply want to set the current time automatically to an input field. I am using Jquery at the moment to accomplish the task. I know jquery works because if I do alert (time); it shows...

Calling PHP variable as function value

javascript,php,jquery,variables,sharepoint
I inherited a piece of code on our sharepoint site and understand it basically, but I am lost in the PHP. The code is an accordion: https://jqueryui.com/accordion/ And it takes a value of 1 or 0 to determine which is shown by default. I want this value to change each...

Why does my Sharepoint WebPart deploy (nominally), but is still not available for adding to a page/form?

sharepoint,sharepoint-2010,web-parts,webpartpage
I've created and "deployed" my latest Web Part (Visual Studio grins from ear-to-ear, and tells me, "Deploy succeeded"). But when I go to our Sharepoint site, and my "sandbox" page, and Edit it, I do not see the WebPart. As the Elements file shows, it should be available from the...

Access SharePoint expanded properties

powershell,sharepoint,sharepoint-2010,odata,powershell-v3.0
I'm accessing a SharePoint lists has an associated stakeholder entity--I'm having difficultly accessing the stakeholder's properties. The 'primary' content's properties are located on xpath /feed/entry/content/properties/*. The stakeholder's properties are located on xpath /feed/entry/link/inline/entry/content/properties/*. Assuming that I include the stakeholder's name in the odata query: http://server/list/_vti_bin/listdata.svc/TheList?$select=Id,Title,Stakeholder/Name&$expand=Stakeholder How do I reference the...

SharePoint list new item through SoapEnvelope

javascript,jquery,ajax,sharepoint,soap
I am trying to make a new item inside a SharePoint list using JavaScript, jQuery and Ajax, this is my function: function CreateItem(Title) { var soapEnv = "<soapenv:Envelope xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" " + "xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" " + "xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\">" + "<soapenv:Body>" + "<UpdateListItems xmlns=\"http://schemas.microsoft.com/sharepoint/soap/\">" + "<listName>listName</listName>" + "<updates>" + "<Batch...

SharePoint 2013 Can't load user profiles “HttpContext is in an assembly that is not referenced”

c#,asp.net,.net,sharepoint,sharepoint-2013
I'm trying to create a piece of code that will populate a list object with all of the users within the SharePoint user profile service. I have added references for Microsoft.SharePoint, Microsoft.Office.Server.UserProfiles and have the following block of code: using Microsoft.SharePoint; using Microsoft.Office.Server.UserProfiles; using System.Web; namespace code.runner.intranet.Dal { public class...

sharepoint rest service 401 not found

java,url,sharepoint,connection
Getting unauthorize execption while connecting to share point rest web service: URL myURL = new URL("http://test:2014/PWA/_api/ProjectData/Projects"); URLConnection uc = myURL.openConnection(); HttpURLConnection myURLConnection = (HttpURLConnection)myURL.openConnection(); String userCredentials = "admin:pasword"; String basicAuth = "Basic " + javax.xml.bind.DatatypeConverter.printBase64Binary("password".getBytes()); uc.setRequestProperty ("Authorization", basicAuth); InputStream in = uc.getInputStream(); Getting following errors while...

SharePoint - Reference file in item properties

c#,sharepoint
(Disclaimer: This is the first time I deal with SharePoint) I am trying to add a file in SharePoint and reference it in a property of a list item. The property type is 'Sparqube Lookup Classic' (I had no idea what that was but a quick search led me to...

how to find which object is causing “Attempted to use an object that has ceased to exist”

sharepoint,sharepoint-2013
I am not able to find which object is causing this exception. is there a way to find out which object is causing this exception. I tried to debug the code but this exception occurs after the page load event [COMException (0x80030102): Attempted to use an object that has ceased...

Set audience on specific node in SharePoint quick launch with powershell

powershell,sharepoint
I'm using a script for setting an audience group for a navigation node in SharePoint. When I set the group It's no problem, or it sets the group but the settings is never pushed through. But If I edit the node in the GUI and just press OK (on both...

Header set on $resource not returning proper odata response

json,angularjs,sharepoint
I am trying to return odata as "nometadata" as listed here: JSON Light for SharePoint I have set my headers in my factory as follows: appServices.factory('appItems', ['$resource', function ($resource) { return $resource("/_api/web/lists/getbytitle('Todo Task List')/Items", {}, { 'query': { method: "GET", isArray: false }, 'update': { method: 'PATCH' }, 'headers': {...

SharePoint JavaScript API for Workflow throws an error

javascript,sharepoint,workflow
I am trying to access information about running workflows in a SharePoint list but I am running into problems with the workflow services JSOM library. I am using the workflow services just like every example I can find, see code below: var context = SP.ClientContext.get_current(); var web = context.get_web(); var...

Configuring TFS Extensions for SharePoint on remote server article has some error?

sharepoint,tfs,configure
This paragraph looks like error: If you want to run SharePoint Products on a server other than Team Foundation Server, you must install Team Foundation Server on the SharePoint server and then configure the TFS Extensions for SharePoint. This installs all of TFS on the SharePoint server, including the TFS...

How to Merge a from 2 sharepoint lists and display it in a ASP.NET GridView ?

c#,asp.net,sharepoint,gridview
I have got 2 Sharepoint lists. I need to pick some random columns from both the lists and display it in an ASP.NET GRIDVIEW. I've done this code using Linq. but i'm getting an error stating that argument null exception. may i know the reason for such error . using...

why I don't get list subfolders despite using RecursiveAll option

web-services,vba,sharepoint,soap,caml
This is my function why I don't get the subfolders although I'm using recursive ALL option. I don't even obtain 1-level subfolders I only get the main files and folders, I'm sure I've something wrong in soap request but I can't figure it out. I've used the same request as...

IIS hosted ASP.NET and SharePoint server libraries - authentication / security issue

asp.net,iis,sharepoint,asp.net-web-api,owin
I am currently working on a project where we are focused to develop as much as possible against the SharePoint CSOM library. Unfortunately CSOM offers no possibility to access Cross-Site-Publishing functionalities. So we decided to deploy a ASP.NET Web API web service on the target SharePoint system, which is hosted...

How to use inline conditional (if then else) in XSLT?

xslt,sharepoint,sharepoint-2010,xslt-1.0,dataviewwebpart
Is it possible to do inline conditionals (if then else) in XSLT? Something like: <div id="{if blah then blah else that}"></div> Or a real use-case/example: <div id="{if (@ID != '') then [email protected]' else 'default'}"></div> ...

TFS change SharePoint links

sharepoint,tfs
Our company has a SharePoint server where we have to store all of our documents, our TFS 2013 has links to this SharePoint server. We have been told that the company is getting a new SharePoint server which will have a different url This means that all links within our...

How to configure my SharePoint server for Business Intelligence [closed]

sharepoint,business-intelligence
What I need exactly to configure my SharePoint 2013 so I can use the business intelligence tools very well.

Setting On Change on id from parameter does not work

jquery,forms,sharepoint,element,onchange
I am using SharePoint 2013, but this is more of a jQuery question/issue. In SharePoint, the form elements are given ID's based off of the name and a key of some sort. I am able to get the ID for the form element that I am trying to add a...

Using angular submit button causes redirect instead of calling function in SharePoint

angularjs,sharepoint,sharepoint-2013
I have a form within my angular app (within SharePoint) that uses routing via hashbang, but when I click on a button in my form, it redirects to the root (like it can't resolve the URL so it uses the otherwise setting in my config), instead of executing the function....

what is wrong with this js link code? the array should show its data but it gives undefined. I want to display data in two columns

javascript,sharepoint,jslink
(function () { var itemCtx = {}; itemCtx.Templates = {}; itemCtx.Templates.Header = "<div><b>Announcements</b></div><table>"; itemCtx.Templates.Item = ItemOverrideFun; itemCtx.Templates.Footer = "</table>"; SPClientTemplates.TemplateManager.RegisterTemplateOverrides(itemCtx); })(); function ItemOverrideFun(ctx) { var _announcementTitle = ctx.CurrentItem.Title; var _announcementID = ctx.CurrentItem.ID; return "<tr><td><p><b>" + _announcementTitle +...

Angularjs service call from $rootscope causes unending iterative loop

javascript,angularjs,sharepoint,angular-resource
I'm fairly new to the ng-world so please go easy on my noobness :) I've really tried to keep to the "angular" way of thinking in organizing my code and understanding it's dependency injection IoC methodologies. One of my goals is dealing with REST services in SharePoint. The SharePoint integration...

Display element's attribute using PowerShell's Format-Table

powershell,sharepoint,sharepoint-2010,powershell-v3.0
Assuming Atom feed's XML: <?xml version="1.0" encoding="utf-8" standalone="yes"?> <feed ... > <title type="text">Attachments</title> <id>http://server/list/_vti_bin/listdata.svc/list(1234)/Attachments/</id> <updated>2015-05-12T13:00:05Z</updated> <link rel="self" title="Attachments" href="Attachments" /> <entry> <id>...</id> <title type="text">spreadsheet.xlsx</title> <updated>2015-05-12T13:00:05Z</updated> <author>...

Update multiple fields in SharePoint programmatically

c#,sharepoint
I'm trying to update some properties on multiple fields (with the same name) in SharePoint. I've tried this: var site = this.Site.RootWeb; var fields = site.Fields; foreach (SPField field in fields) { if (field.Group.Contains("My Custom Columns")) { if (field.Title.Contains("Custom field")) { if (field.DefaultValue != null) { field.DefaultValue = null; field.Update(true);...

Issues when trying to add new list items using the reference Microsoft.Sharepoint.Client

c#,winforms,sharepoint,sharepoint-2013
I'm trying to add new items into a Sharepoint List, using a winforms C# app, but I'm getting an error as if the app didn't find the list fields. My code: using SPC = Microsoft.SharePoint.Client; (...) string siteUrl = "https://sharepoint.company.com/sites/ProjectX"; SPC.ClientContext clientContext = new SPC.ClientContext(siteUrl); string userName = "someone.surname"; SecureString...

Create a second form that references the same List (SharePoint 2013)

forms,sharepoint,sharepoint-2013
I want to create a second form that references to a created list, which already has some data in it. So the situation is that there's a list with jobs (offers and demands). With one form that exists users can insert a offer, but now I need a second one...

Create Outlook meeting on SharePoint page

sharepoint,sharepoint-2010,outlook,interop,meeting-request
Is it posible to create outlook meeting on Sharepoint page behalf on current sharepoint user? I try to create meeting by button click with next code Application oApp = new Microsoft.Office.Interop.Outlook.Application(); AppointmentItem appointment = (AppointmentItem)oApp.CreateItem(OlItemType.olAppointmentItem); appointment.Start = DateTime.Now.AddHours(1); appointment.End = DateTime.Now.AddHours(2); appointment.Subject = "Some subject"; appointment.Body = "Some body"; appointment.Recipients.Add("[email protected]");...

Making jslink target specific list

sharepoint,sharepoint-2013,jslink
Background I got a page where I’m showing two list views from two separate lists which both have Custom List as their ListTemplate. They got their separate jslink file cause I don’t want them to look alike. Problem The js link file targets both listviews since they use the same...

Sharepoint REST Field Property does not exist

rest,sharepoint,postman
I am using Postman for Chrome to test some simply stuff with Sharepoints REST Api. Well - I get an error right in the beginning while trying to retrieve certain Fields from a List - here are some pictures: SharePoint List: Calling for CPU Calling for RAM - which fails:...

Sharepoint Client Object Model Updating Property of a only one folder

c#,sharepoint,sharepoint-clientobject
I am working on a sharepoint clientobjectmodel code. There is a folder called "John Details" inside "User Details Folder". I am trying to update 2 properties for the "John Details" folder. How do I do that? Public Void UpdateColumnsForOnlyOneFolder(maildId1,mailId2){ ClientContext ctx = new ClientContext("http://mytestsite/"); List list = ctx.Web.Lists.GetByTitle("User Details"); Microsoft.SharePoint.Client.ListItemCollection...

Sharepoint 2013, File Upload Custom Page Lay Out

sharepoint,layout
I'm customizing a Custom Page Lay out for SP 2013 Online, but i need to upload file to Documents Folder, but i'm getting crazy, do you know any Tutorial or example? I've tryed this. https://msdn.microsoft.com/en-us/library/office/dn769086.aspx#RunTheExamples but returns error... Thanks you very much....

Execute SharePoint Function On Page Load in AngularJS Application ($scope issue???)

javascript,angularjs,sharepoint,sharepoint-2013,sharepoint-api
I am using SharePoint's JavaScript Object Model in an AngularJS app and need one of its functions to execute on page load so an array is populated and used by an ng-repeat. Currently, it logs to the console the array push on page load, but does not appear to commit...

SPContext.Current.Web.CurrentUser; return wrong user

sharepoint,sharepoint-2013
when execute this statement SPContext.Current.Web.CurrentUser it gives me user SharePoint\system and when I execute this statement if (profileManager.UserExists(username)) { } it says user not found. I logged in with SharePoint\spadmin. why it is returning wrong user name....

Add Button in SharePoint List Ribbon Button Using JSOM

javascript,sharepoint,ecmascript-5,csom
I have to add a button in Sharepoint List Ribbon button & in ECB Menu. here is the code to add ECB menu in Sharepoint List using JSOM. function AddCustomActions() { var listTitle = 'mylist Title'; var clientContext = new SP.ClientContext(); var oWebsite = clientContext.get_web(); var oList = oWebsite.get_lists().getByTitle(listTitle); var...

Escape single quotes in PowerShell

powershell,sharepoint,sharepoint-2010,powershell-v3.0
I'm trying to build a SharePoint 2010 listdata.svc query that resembles: http://server/FooList/_vti_bin/listdata.svc/FooList?$select=Title,Id,OwnerId,Status&$filter=(OwnerId eq 1234 and Status eq 'Ready') Single quotes don't work: $url = $url + '&$filter=(OwnerId eq 1234 and Status eq 'Ready')' Nor does escaping them with back-ticks: $url = $url + '&$filter=(OwnerId eq 1234 and Status eq `'Ready`')'...

PowerShell map persistent sharepoint path

powershell,sharepoint,mapping
I'm trying to map the path to a SharePoint document library in a persistent way. It's strange that this works fine: $Sharepoint = '\\domain.net\stuff\Documents\Folders - Permission matrix' New-PSDrive -Name P -Root $Sharepoint -PSProvider FileSystem -Credential $Credentials But this doesn't work: New-PSDrive -Persist -Name P -Root $Sharepoint -PSProvider FileSystem -Credential $Credentials...

oData SharePoint Add List Item Containing Value Properties

c#,sharepoint,sharepoint-2010,odata,wcf-data-services
How do you save "Value" and "DataServiceCollection" objects that are part of another SharePoint list item? These are the only properties in my model that are not getting saved. The generated Food SharePoint model has these sort of properties: public class Food { DataServiceCollection<FoodIngredientValue> Ingredient; FoodStateValue State; string _StateValue }...

Upload file to SharePoint 2010 using PowerShell and the OData API

powershell,sharepoint,sharepoint-2010,odata,powershell-v3.0
I'm attempting to upload a file to SharePoint 2010: Function Add-Attachments() { [CmdletBinding()] Param( [Parameter(Mandatory=$True)] [int]$Id, [Parameter(Mandatory=$True)] [string[]]$Paths ) BEGIN {} PROCESS { $url = "http://server/resource/_vti_bin/listdata.svc/TheList($Id)/Attachments" Foreach ($Path in $Paths) { Write-Verbose "Attaching $Path ..." $headers = @{ 'Slug' = "TheList|$Id|$(Split-Path $path -Leaf)" } $Payload = @{filename=(Split-Path $path -Leaf);filecontent=([IO.File]::ReadAllBytes($path))} Invoke-WebRequest...

How to get sharepoint folder by name using CamlQuery

c#,sharepoint,sharepoint-2010,dynamics-crm-2011,caml
So I need to rename a sharepoint folder in a plugin from crm. The name of the folder is a fullname from a contact but in case of a typo in the name there needs to be a plugin to change the folder name in sharepoint aswell. I found a...

Im trying to populate a Sharepoint list with the most upcoming dates from certain colums of data from another Sharepoint list?

sql,ms-access,sharepoint,ms-access-2007
I have a list named Employee Dates, this list contains the columns: Employee | CPR Completed | CPR Required | ETC These columns keep going on for all of the training courses required for our employees with alternating columns for completed and required dates. I am using a workflow to...

How do I disable a Sharepoint Web Part without being on the exact page?

javascript,sharepoint
Alright, so in my SharePoint (2013) site, I made a simple JavaScript Web Part to refresh the page every five minutes. I went to adjust the time, backspaced out where I'd entered the time to wait before a refresh, and without thinking exited the edit page. This left me in...

“Global” groups without AD

sharepoint,sharepoint-2013
I want to create a "global" group, which I can use to grant access to different site collections. I.e.: I can give readers rights to collections 1 and 3 and no rights to collection 2. Is it somehow possible? I tried to create the group in CA, but I can't...

Creating term fails in SP 2013

c#,sharepoint,sharepoint-2013,csom
I am trying to create a term in a SP 2013 term set. I am able to read the terms from the term set with the given credentials. Settings: The ServiceAccountLogonName user is one of the Term Store Admins Code: var siteUrl = ConfigHelper.GetValue("SharepointSiteUrl"); var clientContext = new ClientContext(siteUrl); clientContext.Credentials...

Web Part “Recent Checkins” in sharepoint not showing changes

git,sharepoint,tfs,checkin,changeset
I have connected a project to my TFS. When creating a team project I have also created a SharePoint site. Everything is working well except for the "Recent Checkins" web part which are not being displayed. I am given the following error: TF10127: The path does not include a source...

Sharepoint 2010 Blog - Order rest query by Category

json,rest,sharepoint,sharepoint-2010
I've created a blog on Sharepoint 2010 and want to query the list via REST for reporting. I want to order the list by the default field Category (internal name PostCategory). Unfortunately, this is a multiselect field, therefore a simple "?$orderby=Category" doesn't work. I've also tried to expand the Category,...

Hide and Show Divs without using Jquery

javascript,sharepoint
I would like to ask if it is possible to modify my code to achieve the same goal it currently does WITHOUT using jquery. I am embedding this code into sharepoint, and our company makes it complicated to levarage jquery in it. Here is the code... <html> <head> <style> a,img...

Error deploying InfoPath form on Sharepoint 2013: The XSN cannot be used on the server

sharepoint,sharepoint-2013,infopath
I'm trying to deploy a InfoPath form to Sharepoint via Visual Studio, but I'm getting this error: Error occurred in deployment step ‘Add Solution': The XSN cannot be used on the server. I’m publishing the form to a network location. Any ideas?...

SharePoint oData API Only Returns 1000 Records

sharepoint,odata,sharepoint-2013,wcf-data-services
I am trying to query a SharePoint 2013 list using the Rest API for all items in the list. The problem is it only returns 1000 records max and I need to get all of the records. I am using the oData v4 API and auto generated service references for...

Qlikview document reload fails due to authorization restrictions on SharePoint 2010

sharepoint,sharepoint-2010,qlikview
The situation I have created a Qlikview document based on SharePoint 2010 list data. The document is working just fine and I am able to reload data from my desktop, and ready to deploy to our Qlikview server. The problem However, when I run a script ("C:\Program Files (x86)\QlikView\Qv.exe" /r...

SharePoint 2013: Hello World remote app using REST configuration

rest,sharepoint,sharepoint-2013,access-token
I'm trying to create a website that gets a list items from my SharePoint 2013 site. I found this 'Hello World' app that uses REST on MSDN, but i'm having some trouble configurating it. In the configuration section says: To configure the Hello world remote app using REST sample, update...

Access data from SharePoint-hosted app

sharepoint,sharepoint-2013
I am trying to get a grip of apps for SharePoint. What I have not yet clearly understood is whether it would basically be possible to access SharePoint-objects, e.g. a public outlook calendar, from a SharePoint-hosted app via the JSOM? Would I need a provider hosted app and access via...

Maintain Sharepoint Server Url with subfolders in document list

excel,vba,excel-vba,sharepoint,listobject
I want to iterate through Sharepoint document library items (files and folder and subfolders) then print every folder content in Excel sheet I've the following code in my Macro Sub WriteFileProp(mySourcePath As String) Dim objMyList As ListObject Dim objWksheet As Worksheet Dim strSPServer As String Dim SERVER As String Const...

How to enableMajor?

list,sharepoint,csom
How could I enable Major versioning on "Pages" list? My code is not working and I don't get any errors. Any suggestions?.... _spBodyOnLoadFunctionNames.push(onPageLoad()); function onPageLoad() { ExecuteOrDelayUntilScriptLoaded(enableMajor, 'SP.js') } function enableMajor() { var ctx = new SP.ClientContext.get_current(); var list = ctx.get_web().get_lists().getByTitle('Pages'); ctx.load(list); ctx.executeQueryAsync( function () { list.enableMajor = true; },...

Any idea about inserting html to SharePoint?

sharepoint
I'm trying to insert piece of my html code(which is actually working in my local html file) in SharePoint. But it is not accepting all my tags which are there in the code, for eg: 'style' tag. Any help is greatly appreciated. :)

Configure SharePoint 2010 UPS with PowerShell

powershell,sharepoint,sharepoint-2010,ups
SOLUTION FOUND: For anyone else that happens to come across this problem, have a look-see at this: http://www.harbar.net/archive/2010/10/30/avoiding-the-default-schema-issue-when-creating-the-user-profile.aspx TL;DR When you create UPS through CA, it creates a dbo user and schema on the SQL server using the farm account, however when doing it through powershell it creates it with...

Unable to upload file to Sharepoint @ Office 365 via REST

javascript,ajax,rest,sharepoint,office365
I'm having trouble creating/uploading files via Microsoft's REST API (or at least that's what they call it) for Sharepoint running on Office 365. It looks like I'm able to authenticate all right, but I'm getting 403 Forbidden when I try to create a file. The same user can upload a...

Sharepoint RDL report referring a new cube in the SSAS DB fails to execute the query to a shared data source

sharepoint,reporting-services,datasource,cube,rdl
A shared data source, already present in our SharePoint server, - works fine for other old reports, which refer old Cube in the same Analysis Services DB. I don't get, why this new SSRS report using new Cube in the same initial catalog on the same server does not work...

How to check if page is published

javascript,sharepoint
to check if page is published using server side code i should use this snippet: PublishingPageCollection pages = PublishingWeb.GetPublishingWeb(web).GetPublishingPages(); foreach (PublishingPage page in pages) { if(!page.ListItem.File.Level == SPFileLevel.Published) return; // logic } How could i do the same but using Javascript in SharePoint?...

Calling C# code from JavaScript in SharePoint

javascript,c#,sharepoint
Ok here's what I'm trying to do. I have this custom action (button on my SharePoint-ribbon). This should call a Javascript, which in turn should call a C#-code. I have the following: <CustomAction Id="Ribbon.Documents.DocsetZip" Title="Download Document Set as ZIP" RegistrationType="ContentType" RegistrationId="0x0120D520" Location="CommandUI.Ribbon" > <CommandUIExtension> <CommandUIDefinitions> <CommandUIDefinition Location="Ribbon.Documents.Share.Controls._children"> <Button Id="Ribbon.Document.Share.DownasZip"...

CAML query filtering is not working

c#,.net,sharepoint,sharepoint-2010,caml
I've googled that it can be in case when query is not well-formed. But I'm verifying it for several hours and didn't find any mistake. Problem is common: query doesn't filters and returns all data. I have no idea what is wrong, because I checked this query in Stramit CAML...

Get longest List title name in array javascript Sharepoint

javascript,arrays,sharepoint
I'm getting all the titles from my Sharepoint site collection by this code. What I want is to find out which one of the list titles have the longest name, in a string: while (listEnumerator.moveNext()) { var currentItem = listEnumerator.get_current(); listString += "<br>" + currentItem.get_title(); } ...

How to prevent fill in values when saving over CSOM to a choice field

c#,sharepoint,csom
I am writing some ETL code to move data between an external system and SharePoint Online. I am using the nuget package Microsoft.SharePointOnline.CSOM to communicate with SP in C#. I am using the following code to update my field values. spListItem[fieldName] = "Test Value"; spListItem.Update(); spClientContext.ExecuteQuery(); I noticed with Choice...

SharePoint 2013 App Deploy Error: “A different version of this App is already installed with the same version number”

visual-studio,visual-studio-2012,sharepoint,sharepoint-2013
I have developed a very simple Provider-Hosted App which I was deploying to our SharePoint Online Developer Site. Testing was going fine, and I had deployed it several times to the site, before I suddenly received this error in Visual Studio 2012 after I hit F5: Error occurred in deployment...

Update SharePoint list entry using ListData.svc and PowerShell

powershell,sharepoint,sharepoint-2010,odata,powershell-v3.0
Is there a way to update a SharePoint 2010 list entry using PowerShell without using the SharePoint client? If so, how? To get the desired fields, I would: $url = 'http://myserver/resource/_vti_bin/ListData.svc/TheList(1234)?$select=Id,Title,StartingDate,Hours' $webRequest = Invoke-WebRequest -Uri $url -Method Get -UseDefaultCredentials [xml]$xml = $webRequest.Content $properties = $xml.feed.entry.content.properties $properties | Format-Table -Property Id,Title,StartingDate,EndingDate,Hours...

Msocaf Report error in memory management /spdispose check

c#,sharepoint
I have a piece of code on which when I am running MSoCaf, its giving a error under memory management/spdisposechaeck. But there is no particular description of error and its saying "Call to Microsoft.SharePoint.Administration.SPSiteCollection.get_Item and no variable to catch return value" as resolution. Can anyone please tell me what would...

Placing VSDocman external files on Sharepoint

visual-studio,sharepoint,visual-studio-2013,sharepoint-2010
I am wanting to generate all of our application documentation using VSDocman and put them on Sharepoint. The act of uploading the finished documentation to Sharepoint isn't an issue and can be done fairly easily. The issue I have however is that VSDocman will not let me embed images in...

Sharepoint 2013: CRUD operations on Site Columns

sharepoint,sharepoint-2013,crud,site-column
So far, I'm able to perform CRUD operations on Lists, I was wondering if it is possible to do it on Site Columns, I've try to find it on the web but I literally found nothing, I dediced to drop a question here just to understand if it is possible...

Read/Write Microsoft Access (.accdb) synced to Sharepoint with Ruby

ruby,ms-access,sharepoint
I have had success with reading and writing to my Microsoft Access .accdb database using Ruby, and a local Access database. Unfortunately I need to be able to do this to a database that has been uploaded to and is synced via Sharepoint. Is it possible to do this? how...

Retrieve File From Sharepoint Library Using C#

c#,sharepoint
I would like to retrieve a file from a library folder in a Sharepoint teamsite. I know exactly where the file will be but I don't know the full name of it. The full URL to the folder is: http://ts/001/API/Asset%20Optimisation%20Interface/Forms/AllItems.aspx?RootFolder=%2F001%2FAPI%2FAsset%20Optimisation%20Interface%2FAsset%20Technical%20Data&FolderCTID=0x0120002C707B834A70044986A39A4BCBFE9C6D&View={889C2A16-626B-4FFC-97F7-142AA27522F3} Within this folder, there are several subfolders and only one...

sharepoint 2010 get value of choice field through api call

rest,sharepoint,sharepoint-2010
I have a sharepoint list ImageList, i have a column which stores its type The column name is ImageType the choices are "profile pic","thumbnail" etc i want to fetch these choice values for this field i tried accessing it using http://myintranet:2010/sites/ImagesGallery/_vti_bin/listdata.svc/ImageList?$expand=ImageType but it is not containing the choice values in...

'Microsoft.SharePoint.SPListItem' does not contain a definition for

c#,sharepoint
'Microsoft.SharePoint.SPListItem' does not contain a definition for 'Image' and no extension method 'Image' accepting a first argument of type 'Microsoft.SharePoint.SPListItem' could be found string[] fields = new string[] { "Title", "Image", "Description", "Content" }; SPListItemCollection collection = SPContext.Current.Site.RootWeb.Lists["FOO"].GetItems(fields); Response.Write(collection[0].Image); but Response.Write(collection[0].Title); works just fine....

Angularize SharePoint Client Side Taxonomy Picker

angularjs,sharepoint,sharepoint-2013,sharepoint-apps
The Patterns and Practices team has released a client side taxonomy picker for use when integrating with SharePoint. It works well, but uses jQuery and my SharePoint App is built in Angular... which seems to be a growing trend. I would like to leverage the client side taxonomy picker in...

How to bind a SharePoint list attachment to a Kendo Grid column dynamically

c#,json,sharepoint,kendo-ui,grid
I have a SharePoint list where I grab the required rows depending on a dynamically created query, and passing them to the front end using a Json serialized object. I am then using that Json object as the dataSource for Kendo Grid. Now, some of the rows that I'm pulling...

SharePoint newListItem Soap with img attachment

javascript,ajax,cordova,sharepoint,soap
I have a function in my Apache Cordova application to create a new list item inside a sharepoint list, and I was wondering if it was possible to add an image to this new item, this would come as an 'attachment' in the sharepoint list. My function to add a...

jQuery validate plugin inside a jquery UI dialog for SharePoint page application

jquery,asp.net,sharepoint,jquery-validate,jquery-ui-dialog
I create custom SharePoint page and I need validate form in dialog window. For this i use jqueryvalidation.org. But it doesn't work for me, I'm confused. Have page with ContentPlaceHolderID="PlaceHolderAdditionalPageHead": <%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %> <%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %> <%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"...

Web part custom properties Issues

sharepoint,sharepoint-2013
I have one webpart with custom properties and i want to use the same webpart more than one time on the same page ( or others ) just setting different values to the properties. But when I insert the webpart a second time on page, the new settings override the...

Access Denied when using ExecuteQuery() for a Sharepoint site

sharepoint
clientContext.ExecuteQuery(); All I'm trying to do is to get (not edit) the list of users I'm a specific group from a Sharepoint site for an MVC app. I'm getting an Access Denied error when I run this line as an Admin. But this line runs just fine if I'm added...

Query not returning expected results(CAML)

c#,.net,xml,sharepoint,caml
I am trying to remove an attachment from a list of attachments using the CAML, however; when I do the query it always returns both of my files. I only need to get the file of the current one using the passed in value as the parameter. SP.List list =...

Retrieving sharepoint lists using SOAP

sharepoint,soap,sharepoint-list
I am trying to pull specific data points from a sharepoint list using VBA and SOAP. However, I am very new to both VBA and sharepoint, so there a few things that do not make sense to me. Currently, I'm trying to use this site as a reference: http://depressedpress.com/2014/04/05/accessing-sharepoint-lists-with-visual-basic-for-applications/ I...

How to redirect a URL in SharePoint Online?

sharepoint,sharepoint-online
I have a site setup in SharePoint online at: aaa.sharepoint.com/fr The trouble is that this is an internal acronym and new staff always go to the long version of this URL. Is there a way I can redirect aaa.sharepoint.com/fundraising to aaa.sharepoint.com/fr without having to create another SharePoint site and a...

How can I get Internet explorer to display this image correctly

html,css,sharepoint
I am trying to get internet explorer to display an image in a table cell correctly. The image will display perfectly fine in chrome, but internet explorer keeps inserting white space above the image. Is there anything else that I can add which will prevent internet explorer from incorrectly displaying...

Append text to text hyperlink using javascript

javascript,html,sharepoint
I am working in sharepoint and using a 'content editor' to embed HTML hyperlinks on the page. <a href="/New%20Applications.aspx">New Applications</a> Now I would like to somehow get the total number of items from that list and display the number in brackets in the hyperlink, ie New Applications(5) I am familiar...

Sharepoint Angular REST add item yields 400 (Bad Request)

jquery,angularjs,rest,sharepoint
I have been banging my head against the wall for a couple of days now. I'm trying to add an item to a list in Sharepoint with Angular js. Retrieving items is smoot but adding items doesn't work for me. Code: spApp.controller('spListCtrl', function($scope, $http, $q) { $http.post("https://tools.site.com/_api/lists/getbytitle('PersonalFilter')/items", { 'Title': 'TEST'...

Count times a value is repeated in data fetched using REST call

javascript,jquery,rest,sharepoint
I'm fetching data from SharePoint using REST, and everything works just fine, except that I would like to count the times the same item appears. This is the jQuery: var url = "https:xxxxxxxx/_vti_bin/ListData.svc/RMSD_Tasks?$orderby=TypeOfIssueValue asc,StatusValue desc&$filter=StatusValue ne 'Completed'&groupby=TypeOfIssueValue/StatusValue"; var lastIssue = ''; $.getJSON(url, function (data) { $('#totalCounter').text(data.d.results.length); for (var i =...

Get all items of a sharepoint list

c#,sharepoint,folder,subfolder,client-object-model
i want to download all files of my sharepoint list. I download the files with this method: public void DownloadFilesOfSpecialtys( ) { using (var clientContext = new ClientContext(url)) { foreach (var item in ids) { int listItemId = int.Parse(item.ToString()); statics.files = int.Parse(ids.Count.ToString()); var list = clientContext.Web.Lists.GetByTitle(listtitle); var listItem = list.GetItemById(listItemId);...

Convert “float;#22.0000000000000” into just “22.0” in C#

c#,sharepoint,floating-point
I'm doing a ToString() on an object and the output I am getting is float;#22.0000000000000. I just need 22.0. How do I achieve this in C#? Additional info: The object is the value from a Number column in a SharePoint list. The value is being retried in my code with...

Sharepoint Web Parts roll up

sharepoint
I'm pretty new to Sharepoint, but my company wants me to set up a Sharepoint to manage discussions, documents and tasks. The company has two different departments, so I made one main site and two subsites, one for each department. On each subsite I have a discussion board. I'm trying...

Display JQuery dialog using a JS-file

jquery,sharepoint,dialog
I was able to insert my dialog. But I'm not able to display it. This is how I insert it: if ($("#dialogSendMail").length) { } else { $("#DeltaPlaceHolderUtilityContent").after("<div id='dialogSendMail' title='Enter mail body'> <label for='mailBody'>Type the text you want to display in the email:</label><p><input type='text' id='mailBody' name='mailBody'></p></div>"); } And this is how...

How to check if list contains needed rows using javascript in sharepoint2010?

javascript,list,sharepoint
I have calendar list called Events and custom list called Attendees. On default display form of Events there are "registration on event" button with javascript that creates record in Attendees list like: "EventID" and "AttendeeName"/ var siteUrl = '/hr/events'; var eventID = Utilities.SPForm.getParameterValue('ID'); var thisUserID = $().SPServices.SPGetCurrentUser(); function RegNewAttendee() {...

“add data driven subscription” missing in SSRS sharepoint mode

sharepoint,reporting-services,sharepoint-2013,ssrs-2012
I'm using sharepoint 2013 with SQL server 2012 Enterprise Edition SP2. I am using SSRS in sharepoint integrated mode. When I hover over report options I see the "Manage Subscriptions" option and when I click it I can see the "add subscription" option. However, the "add data driven subscription" is...

Powershell error Add-PSSnapin “Microsoft.SharePoint.PowerShell”

powershell,sharepoint,sharepoint-2010,powershell-v2.0
I am getting an error when I run below command from sharepoint 2010 managment shell using admin rights. Add-PSSnapin Microsoft.Sharepoint.Powershell Add-PSSnapin : Cannot add Windows PowerShell snap-in Microsoft.Sharepoint.Power shell because it is already added. Verify the name of the snap-in and try again ...

Update value of input after text

javascript,jquery,sharepoint
I want to add a default value to an input field on an existing form when the page is loaded. All of the inputs on the field have the same name and ID on this form. <table> <tr><td>Name:</td><td><input id="MultiLookupPicker" name="MultiLookupPicker"/></td></tr> <tr><td>Company:</td><td><input id="MultiLookupPicker" name="MultiLookupPicker"/></td></tr> <tr><td>Department: </td><td><input id="MultiLookupPicker"...

ERROR: Collection was modified; enumeration operation may not execute. Other solutions are not working for me

c#,sharepoint,foreach
I'm deleteing users in a Sharepoint site and i get this error. Here's my code: foreach (SPUser user in users) { string user_name = user.LoginName; string[]username = user_name.Split('\\'); user_name = username[1].ToString().ToLower(); bool exists= checkIfExists(user_name); if (exists != true) { users.Remove(user.LoginName); } } I've read similar issues but The solutions i...

Configuring a standard single server TFS 2013 with SharePoint 2013 and SSRS for reporting

sharepoint,reporting-services,tfs,ssas,reporting
Is following scenario possible? We have got TFS 2013 installed as a standard single server. This server has got the SQL db. We have got SharePoint 2013 installed on another machine. Now we want to integrate TFS 2013 with SharePoint 2013 along with SSRS and SSAS for reports, etc. Please...

Sharepoint 2013 Search results for Powerpoint files

sharepoint,sharepoint-2013
I have Sharepoint 2013 search site with many documents uploaded in Document Library, I created a custom page with Search results webpart,when i tried to find a powerpoint file named x in search results webpart, it shows result title as "Powerpoint Presentaion" but the actual title is "Some title",Please provide...

C# CSOM - Check if File Exists in Document Library

c#,sharepoint,office365,csom
I'm coding in C# using CSOM, my app uploads a template asp.net page to the "/Pages/" library, I need it to check if a file exists in that location with the same name prior to file upload (then maybe it can return a bool value). I did have a quick...

Is this kind of logic possible using CAML Queries?

sharepoint,caml,spservices
I am fairly experienced with CAML Queries, but this one has me stuck. I need some help in structuring the query's logic. What I need is to return every record that that contains two words across two columns. Example (return these): Column1: word1, Column2: word2. //Return this record Column1: word2,...

AngularJS Error on SharePoint Online Webpart Page

javascript,angularjs,sharepoint
I have a web part page where I have added a Script Editor web part. I then pasted the following code in... <link data-require="bootstrap-css@*" data-semver="3.0.0" rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" /> <h2>Questionnaire:</h2> <br /> <div ng-app="App"> <div ng-controller="spListCtrl"> <table width="100%" cellpadding="10" cellspacing="2" class="employee-table"> <tr ng-repeat="control in Controls"> <td>{{control.Title}}</td>...

SharePoint with entity framework

c#,sharepoint
I would like to use EF in SharePoint but I have got error. 1) I created model EF (Model1.edmx) 2) I added simple Linq 3) I edited web.config in C:\inetpub\wwwroot\wss\VirtualDirectories\16869 (connectionString) 4) I deploy my project 5) I get error Probably somewhere I need to add (Model1.edmx) but I don`t...