Friday, February 26, 2010

Friday, February 19, 2010

Multiple Upload Page - Assign metadata

1. Create an override for the upload page

2. Do forget to call base.OnLoad(e) in your overriden OnLoad page

3. Set this.ConfirmationURL parameter to absolute path of a custom layouts page in the overriden upload page Onload method.

4. Call the overriden upload page using a custom action on the list and pass the same url parameters that SP passes to an OOTB Multiple file upload page

5. On the new custom page, collect user input and using ListItem.SystemUpdate(false) to set the required metadata fields. Once the metadata is set, navigate back to list default view.

Thursday, February 18, 2010

Extend multiple upload page

SYLK - Excel - First two char ID

Tuesday, February 16, 2010

read initiation data outside workflow context

Not possible so far

Monday, February 15, 2010

Send Email With Attachment

Set value in people editor

PeopleEditor pe = new PeopleEditor();

pe.CommaSeparatedAccounts = "DomainName\\UserName";

PeopleEditor - Select Multiple and include spgroups

SharePoint:PeopleEditor ID="pEditor" runat="server" ValidatorEnabled="true" AllowEmpty="true" MultiSelect="true" SelectionSet="User,DL,SecGroup,SPGroup"

SPLongOperation - thread abort

WSPBuilder resetwebserver avoid iisreset

C:\Program Files\WSPTools\WSPBuilderExtensions\WSPBuilder.exe.config

ResetWebServer = false

SP Delegate Control - MyLinks Quick Links

SharePoint Delegate control and change "My Links" navigation location


Sunday, February 14, 2010

Workflow Dehydrate / Security Validation issues / Persistance

Guid siteID = workflowProperties.Site.ID;
Guid webID = workflowProperties.Web.ID;

using (site = new SPSite(siteID))
using (web = site.OpenWeb(webID))
//write wf code within this.

Friday, February 12, 2010

Backup/Restore vs Import/Export

Backup restore should not be used when we suspect that there is a db corruption and we should be using import/export.

Thursday, February 11, 2010

On creation of new seq workflow using vs 2008 - references not linked

system.workflow.activities, .componentmodel, .runtime are missing.

Solution :
Always remember to create wspbuilder + workflow based project
Change target framerwork to 3.0

Good to go.!

VPC Creation process

Wednesday, February 10, 2010

Pre-requisites for the Wouter - SP Workflow framework

1. Install WIX
2. Install MSBuild Community Tasks
3. Set the configuration to "ReleaseSigned"
4. Enter p Thomson

MSBuild Community

Loopback check - SharePoint web application create access denied host header

Workflow for Access

Assign permissions based on field values, i.e. ColumnName: Person name; Value: Semicoln seperated user names; PermissionValue: Contribute
Each item gets permission based on the above field values.

Idea 1:
Create eventhandler

Idea 2
Use workflow.
Association data - List of fields
- Permission values
Workflow get initiated every time an item is updated or added.
Uses association data and toggles permissions on the item.