In SharePoint properties are name/value pair assigned to Site Collections, Sites, Webs, Lists, Libraries, Pages and Web Parts. Properties can be changed programatically or by using PowerShell.

learn more… | top users | synonyms

7
votes
2answers
1k views

How do I set a list to not be valid for search through the object model?

In WSS 3.0, there's an option under "Advanced Settings" for a List as follows: Search Specify whether this list should be visible in search results. Users who do not have permission to see ...
7
votes
1answer
731 views

SPService, multiple farm jobs, persisted property updates (SPPersistedObject locking?)

I have an SPService class. MySPService : SPService, IBackupRestore, IDiagnosticManager { [Persisted] private string propertyUpdatedByJobsOnAllServers; . . . } I also have a Job that runs ...
6
votes
2answers
2k views

Do I need to reset SPWeb.AllowUnsafeUpdates after use?

Do I need to reset the SPWeb.AllowUnsafeUpdates property after use? Seems not, but all over the web there is code like: bool allowUnsafeOrig = web.AllowUnsafeUpdates; web.AllowUnsafeUpdates = true; ...
5
votes
2answers
321 views

How to dynamically generate Business Connectivity Services

We are trying to deploy a Business Connectivity Services(BCS) Model solution where the properties in the model depend on the structure of the data exposed by a web service. Ideally the BCS Model ...
4
votes
3answers
2k views

SharePoint Property Bags

Has any one worked with SharePoint Property Bags ? I found few helpful articles but that helped me only partially. I want to write a code that writes and retrieves information from Property Bag. I ...
4
votes
1answer
992 views

Is accessing AllProperties efficient?

I'm currently storing a few values in the SPWeb.AllProperties hashtable. But I'm thinking of adding even more data into it. Before I start using it more and more though, I wondered if using ...
4
votes
1answer
402 views

Required permissions to read from a farm's property bag?

Which permissions are required to read from a farm's property bag? Background: The property bag needs to be accessed read-only from a .NET application which runs under a specific user account on any ...
4
votes
2answers
4k views

Users unable to edit document properties

I have a document library on SP 2010 in which all users, including myself as the admin/owner, are unable to update properties of certain documents. Documents were moved to this folder from another ...
4
votes
2answers
967 views

Publishing SPWeb.Properties missing…why, how?

Has anyone ever seen a Publishing site "lose" the properties relating to the publishing functionality. Properties like PagesListId, PublishingFeatureActivated etc which actually control whether the ...
3
votes
6answers
13k views

How to use relative URL for image in Master Page?

I am using a logo in my Master Page which will be displayed on all pages. How do I use its relative URL? Currently it is written as: <img src="/sites/Style Library/Images/logo.jpg"> But it is ...
3
votes
4answers
465 views

SharePoint List / Library property bag

I'm working with sharepoint 2007 and i have a question, does a sharepoint library / list has something like property bag, where i could store some properties for the list? Like a SPWeb object. Or ...
3
votes
4answers
6k views

When does custom properties of a web part get saved?

I have a web part that contains a number of custom properties. Only one of those customer properties shall not be set by the user. This property is an int, that represent a unique identifier. I want ...
3
votes
1answer
961 views

Access Denied when Adding to SPFarm Property Bag

I am trying to add a new property to the SPFarm property bag but am getting an access denied security exception. As you can see in the code below it is begin ran with elevated privileges, so I don't ...
3
votes
1answer
1k views

Update vti_author in SPDocumentLibrary item using PowerShell?

I want to update the property vti_author in an item in a SPDocumentLibrary, but it doesn't work. The items original vti_author is the same even after running this script, why? $spSite = Get-SPSite ...
3
votes
2answers
490 views

How to read the xml file from 14 hive

I have a custom timer job by which I need to create custom properties using an xml file (which has all the custom properties). As for the xml file, I'm thinking to create a module for it. And then ...
3
votes
1answer
325 views

Is it Possible to create Client Web Part enum property dynamically?

I am creating an SharePoint Hosted App using CSOM technology. I want to set the ClientWebPart Property dynamically. I want to add enum property Dynamically. App will bring all the list name from my ...
2
votes
1answer
188 views

Open web part properties panel with javascript

I'm looking in a way to open the right side properties panel of my web part with javascript. This way when the user adds the web part to a page, a message and a button are displayed. Onclick the panel ...
2
votes
2answers
216 views

Dates and times in Properties vs Fields

I'm trying to roll my own archiver for SharePoint. I always try to let the underlying object serialize itself. Only when it fails do I try to use .ToString(). Anyway, while inspecting the Properties ...
2
votes
1answer
687 views

Document ID not showing in document properties

I have enabled the Document ID Feature, and it works just fine; in the document library, I can have a view showing the IDs. However, the ID is not visible when I check the document properties, and ...
2
votes
1answer
895 views

Get document properties.Keys value

I'm iterating all lists in a site collection trying to get all metadata, their values and eventually count them. I'm not so far yet, but I'm stuck in getting the values from a documents (file) ...
2
votes
2answers
77 views

Not pulling document properties when moving a Document Library

I'm attempting to move a very large Document Library from SP2007 to SP2010 but I cannot get the Properties of the Documents to move with the files. The library is too large to export as a Template ...
2
votes
1answer
549 views

how to get Custom List Item Property

I added a new column to Sharepoint Custom list which is boolean type, now each time I upload a item to list, it displays that column to check or leave it blank, by default its checked, I wanna access ...
2
votes
1answer
58 views

How can I view the creation date (and creator) of a child site (not an admin person)

Is there any way an end user (with contribute or full access) can view the properties of A CHILD SITE...as in when it was created and by whom?
2
votes
1answer
255 views

Access SPList.RootFolder.Properties from Client

Is there a way to access the SPList.RootFolder.Properties key/value pair collection from a client, either via Lists.asmx or the new client object model? I know I can create my own ISAPI endpoint and ...
2
votes
1answer
318 views

Edit Properties does not open when uploading document

I was under the impression that if you have a column with a required value, the dialog "Edit Properties" should be displayed automatically when trying to upload a file. I distinctly remember seeing ...
2
votes
2answers
619 views

SPSite.RootWeb.AllProperties is null Claims Authentication

I just created a new WebApplication & Site Collection in sharepoint. Note : WebApplication uses Claims Authentication mode, Custom Trusted Identity Provider for my application. In powershell ...
2
votes
1answer
324 views

Setting the value of a custom web part property using object model

Let's say I have a reference to a web part that I got by using a SPLimitiedWebPartManager. How can I set the custom properties of that web part? For example, if it is a stock ticker web part, how do I ...
2
votes
3answers
3k views

How to identify zones in a web part page (programmatically adding WP's)

I am having trouble finding documentation on the web part zone's attributes. Can someone point me in the right direction? I have done this, and it seemed to work, but it was just a guess: ...
2
votes
0answers
69 views

Why the Required property of field is changing to false?

I created site column with Required="true". Then I created site content type and added my column to it . Then I created list, selected "Allow management of content types?" to "Yes" and added my ...
1
vote
3answers
483 views

How to check if a item in a custom list have a property or not

I added a check Check Box to a custom list library form which works well with new files uploaded and I can check the property Value by bool.Parse(listItem.Properties["columnName"].ToString()); but ...
1
vote
1answer
64 views

Security trimmed results for custom query on property

The sites in my site collection are using a custom property to determine what "type" of site they are. E.g. web.Properties["SiteCategory"] = "SomeCategory1"; I'm planning on creating a web part to ...
1
vote
2answers
352 views

Add hyperlink to custom web part properties

I would like to add a hyperlink to a custom web part which will take the users to a web page on a new window with the configuration settings for the web part. If I try and add a text property as ...
1
vote
2answers
782 views

WebPart property with a HyperLink editor?

I am currently developing a SharePoint 2010 WebPart that has a custom property which has to capture the Url of an external website. In an attempt to make the WebPart more complete I would like the ...
1
vote
3answers
420 views

DefaultValue on WebPart Custom Properties

I'm new to SharePoint and I'm developing a WebPart. I'm trying to create some properties with a DefaultValue, but they stay null. Here is how I'm defining my property in my class: public static ...
1
vote
1answer
969 views

Access ListItem.Properties from Javascript COM

Is there a possibility to access the ListItem.Properties from the Javascript COM? All I'm seeing is the possibility to read all Fields. There also is the funny [SP.ListItem.LoadExpandoFields()][1], ...
1
vote
2answers
1k views

Activate Feature in Powershell and specify custom properties

I want to activate a feature with custom properties. It is easy to do in onet.xml by providing Properties: <Feature ID=“78277796-98D9-4276-B7D2-E3374AAC43D8“> <Properties> ...
1
vote
1answer
822 views

SharePoint Designer 2013 Interface not saving or updating to reflect actual file state

I am noticing a few issues with SharePoint Designer 2013 and I am wondering if I am doing something wrong and if there are any fixes. I am working on Publishing Site Page Layout. I try to save a ...
1
vote
1answer
53 views

Setting a custom property to specify user permission and creation of groups

I've been reading a few blogs on how to create custom properties in a visual webpart. I've set three values on a dropdownlist and populated the custom property with these values. When I change the ...
1
vote
1answer
115 views

Multiple files upload to document library simultaneously & Custom property

I have a custom SharePoint 2007 document library which has a custom boolean column "Is it Important". It works perfectly for all documents if I upload documents one by one regardless of if its a word ...
1
vote
1answer
21 views

how to ask for document properties only if another property is first assigned

for example, property #1 is "color," with the choices blue or green. property #2 is "hue." if someone selects "blue" for the "color," then their options for "hue" are navy and aqua, whereas if the ...
1
vote
1answer
288 views

Get all webs with certain property value

If I have a certain number of webs within my site collection, and those web have set some property, eg. web.Properties["foo"] = "bar". I'd like to get list of all the webs which have property foo set ...
1
vote
1answer
76 views

How to make two activities communicate in my workflow

I'm working on a workflow in which I'm calling a custom activity. After the call of the custom activity I'm trying to get properties which have been changed in the custom activity in my ...
1
vote
1answer
682 views

SharePoint 2010 Ribbon Customization (Copy/Paste List Item Properties)

I have a requirement to copy and paste only the properties of a document library item. There must be two button on the Edit-Form.aspx ribbon that allows me to copy and paste only the properties. I ...
1
vote
1answer
3k views

How to change folder properties inside a sharepoint library

We have an existing SharePoint library that was created years ago for project management. The users who used to manage it are no longer with the company. The library is setup with multiple folders. ...
1
vote
2answers
208 views

Packaging custom properties for mysites in sharepoint 2010

Is it possible to package custom properties that i manually create for profile for mysites in sharepoint 2010. E.G. music, hobbies ... So next time i just next time i dont need to do it manually when ...
1
vote
3answers
560 views

Is ist possible to share viewstate properties between webparts?

I have a class "Wepart A" and a class "Webpart B" which have some similiarities. So I introduced a BaseWebpart from which A and B inherit. I want to share 2 properties (SortColumn and SortDirection) ...
1
vote
3answers
488 views

Term Set in sp2010

I noticed that "Choice List Settings" is missing when adding a custom property to user profile (thru CA). Did it get replaced with Term Set? If yes, will the multi-value custom field play well with ...
1
vote
1answer
40 views

Changing the Title of a Web Part Page

I have a page that I am unable to change the page title from the file name of the URL. I'd like to be able to change the title of the page so it is something different. I've tried editing page ...
1
vote
2answers
200 views

AssociatedGroups collection of SPWeb?

I'm having a hard time understanding the purpose of adding an SPGroup to the AssociatedGroups collection (or its respective property bag item) of a site other than the group(s) appearing in the quick ...
1
vote
0answers
87 views

Sharepoint 2010 - get List IRM properties with client object model

This link here shows you how to get the IRM properties of a list with the sharepoint sdk: ...