Should I dispose SPWeb.ParentWeb or not?
Hello there,I have read several articles that recommended not to dispose the SPWeb object received from calling SPWeb.ParentWeb. Most of these articles either reference the technet-article at...
View ArticleImport Statement Causing Compiler Error CS0246 - Type or Namespace Cannot be...
I have two projects in a solution. One is a Web Part and the other a C# Class. I have added the reference to the C# class into the Web Part project and am able to see it and reference it via the code...
View Articlehow to do vlookup among two sharepoint lists
Hi, We have a requirement where we need to compare two lists in sharePoint. Currently we do that after taking extracts and doing vlookup. Is it possible for us to automate that in SharePoint ( out of...
View Article'Microsoft JScript runtime error: Object expected'
Hi,I am trying to create a SharePoint hosted App and trying to access list items from a site collection, but getting below error:Message: Object expected Line: 43 Char: 5 Code: 0 URI:...
View ArticleIs it possible to clear the value on a SPFieldDateTime?
Hello everyone,This may be straightforward but I can't seem to clear the value of a SPFieldDate programmatically. The field is not required, the standard value is set to empty and other items in the...
View ArticleNeed help with running a script to create 100 different Sharepoint subsites
Hello. Please let me preface this with I'm very new to Powershell and Sharepoint scripting. So please forgive me for using incorrect terms. I was able to find online and piece together a script that...
View ArticleHow to add custom page element style to the ribbon in SharePoint 2013?
I have created new page element style for paragraph and headline in SharePoint ribbon and hide default one.The newly created style shows in style drop down list but not on ribbon (before drop down...
View ArticleCreate new page with spaces in title, converts spaces to %20 in file name
HiThis relates to Sharepoint 2013 OnPrem with the latest May CU installed.Is anyone else experiencing issues with creating new pages, when creating a page with spaces in the title? It now converts the...
View Articlecreate a newlist clone without items programatically
Hi There is a list named as movies which contains columns movie name, actor, year released.So I want to create a new list with different name but will contains all the fields same as movies list with...
View ArticleSharePoint JSLink Question
I have been trying to create a simple JSLink Script that renders a image depending on what is selected in the Favorites field. I am relatively new to JS Link and may be making a simple syntax error....
View ArticleCreate TermGroup on "root" level of Managed Metadata Service
Hi,how can i programmatically create a TermGroup on the "root" level of Managed Metadata Service without having a dependency to a sitecollection? I mean when i create a termgroup based on a...
View Articleunable to find list templates programatically
Hi All my List templates are available at:http://xyz:1234/_catalogs/lt/Forms/AllItems.aspxBut programmatically I tried to find the list templates using the code belowSPListTemplate template123 =...
View ArticleGet user value from list column in Javascript
Hi ,i need to get the value of a user column via JS, i try thisvar Part = oListItem.get_item('Attendees').get_lookupValue(); Any idea?
View ArticleError occurred in deployment step 'install app for sharepoint' the system...
I am trying to develop a Provider Hosted App in a High Trust On Premise SharePoint 2013 environment. I am logged into the VM as sp_farm account. I followed the steps provided in the following...
View ArticleSharepoint 2013: Static left navigation(tree navigation) across all subsites...
Hi,I am trying to implement a static navigation for all the subsites for a site collection. I have tried Site settings > Navigation > Navigation settings like Managed Navigation Structural and...
View ArticleSharepoint 2013 - Unable to access the recurring events with time filter...
I am working on C# programming to read Sharepoint and want to query the calendar event after a time point, such as Today. CamlQuery query = new CamlQuery(); query.ViewXml =" .......
View Article'Claims' and Most of the namespace does not exist in SharePoint 2013 with...
Microsoft.SharePoint.Administration.Claims The type or namespace name 'Claims' does not exist in the namespace 'Microsoft.SharePoint.Administration' (are you missing an assembly reference?)Can anyone...
View ArticleHow to display multiple site configurations in SharePoint 2013?
I made a site definition and I have multiple configurations. But when I try to create a subsite, and I look under the SharePoint Customizations tab for Template Selection. I only see `MyPublishingPage`...
View ArticleUsing SignalR in SharePoint 2013
Hi,I need to send notification to all users who currently open site when new item is added to list using SignalRPlease some one help with any sample solution that was implemented for SharePoint list...
View ArticleSharePoint 2013-User Profile Properties
hi,how to set the privacy in User Profile Properties using REST API.Please find below the image.I want to set the Everyone and only me permission pro-grammatically using REST API.Please suggest me the...
View Article