All Tags »
Sharepoint »
Object Model (RSS)
Sorry, but there are no more tags available to filter with.
-
Continuing from my last post, one thing that you also may want to do when programmatically creating a list is associating a workflow with a given configuration (e.g. Approval workflow when a new item is created in a document library).
In the SharePoint interface we can do this association very easily but if you want to do it using the object model ...
-
Folders can be added under a list or under another
folder and the way of adding in each case is very similar. Below another
example of sample functions.
public SPFolder AddFolder(SPList parentList, String title)
{
// Enable
folder creation on the list
parentList.EnableFolderCreation
= ...
-
Adding a list is done very much in the same way as
a web. You just have to pay attention to were you should get your list template
from, because depending if it is a native or a custom list template the place where
to get it is different (SPWeb.ListTemplates vs SPSite.GetCustomListTemplates). Of course that a list can only be added to a ...
-
For my first SharePoint post I wanted to start by
some of the basics related to working with the SharePoint Object Model. For
sure there are other posts about this on the net, but I think that my blog
should also reflect my SharePoint learning experience, and maybe by doing this
I can show different ways accomplish similar things.
So ...