I tried searching for a little snippet code that would show how I can create a new SPWeb in a site collection. I didn’t find it as quickly or easily as I expected so I thought I’d slap together a little entry on the subject. This code cre…
>
|
||||||
I tried searching for a little snippet code that would show how I can create a new SPWeb in a site collection. I didn’t find it as quickly or easily as I expected so I thought I’d slap together a little entry on the subject. This code cre… UPDATE: An anonymous poster left a great comment about internal names. Be sure to read it. When working with event receivers and other code that references SharePoint list items via the object model, I often make mistakes that generate this error at… In order to work around a KPI problem I wrote about here, I did some testing and discovered that KPI’s work against folders with meta data in the same way that they work against documents or list items. I proved it out by creating a new conte… I hate to admit it, but I struggled with this one all day. My event receiver needs to update a field of its parent folder. This little bit shows how to do it: private void UpdateParentFolder(SPItemEventProperties properties) I’m sure I’m not the first person to come up with this. However, I haven’t noticed anyone publish a trick like this since I started paying close attention to the community last July. So, I thought I’d post it this quick and … This past week I was implementing an "evolving" solution for a client that uses BDC and SPQuery and ran into some difficulty using SPQuery against a document library containing folders. Bottom line: assign "recursive" to the view attr… UPDATE 02/29/08: I solved this problem by creating a folder and then assigning a content type to the folder which has the meta data I need for the KPIs. I described that in a little more detail here. We have implemented a technical solution wher… I was working on a feature last week that would add some event receivers to a specific list instance. (I blogged a bit about that list receiver here). Using the command line, I could install the feature with no error (but see below for the hidden err… UPDATE: This works but there are significant limitations which are described in the comments. This may still be useful in some cirumstances. UPDATE 2: In my current project, users always upload documents. As a result, I don’t run into a … I have a column name in a content type named "Real Estate Location". That column is of type "lookup". I have modified <CommonViewFields> and ItemStyle.xsl to show the column. A simple <xsl:value-of select=…> return… |
||||||
Copyright © 2024 Microsoft Tech Arena - All Rights Reserved Powered by WordPress & Atahualpa |