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.
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
http://rajendrashekhawat.blogspot.com/2008/08/redirecting-to-custom-application-page.html
http://msdn.microsoft.com/en-us/library/cc713554.aspx
http://msdn.microsoft.com/en-us/library/cc713554.aspx
Tuesday, February 16, 2010
read initiation data outside workflow context
Not possible so far
http://social.msdn.microsoft.com/Forums/en-US/sharepointworkflow/thread/e187ef89-73d7-4986-9de2-03dee7ecbce4
http://social.msdn.microsoft.com/Forums/en-US/sharepointworkflow/thread/e187ef89-73d7-4986-9de2-03dee7ecbce4
Monday, February 15, 2010
Send Email With Attachment
http://edwin.vriethoff.net/2007/10/02/how-to-send-an-e-mail-with-attachment-from-sharepoint/
Set value in people editor
PeopleEditor pe = new PeopleEditor();
pe.CommaSeparatedAccounts = "DomainName\\UserName";
pe.Validate();
pe.CommaSeparatedAccounts = "DomainName\\UserName";
pe.Validate();
PeopleEditor - Select Multiple and include spgroups
SharePoint:PeopleEditor ID="pEditor" runat="server" ValidatorEnabled="true" AllowEmpty="true" MultiSelect="true" SelectionSet="User,DL,SecGroup,SPGroup"
WSPBuilder resetwebserver avoid iisreset
C:\Program Files\WSPTools\WSPBuilderExtensions\WSPBuilder.exe.config
ResetWebServer = false
ResetWebServer = false
SP Delegate Control - MyLinks Quick Links
SharePoint Delegate control and change "My Links" navigation location
http://www.jamestsai.net/Blog/post/How-to-use-SharePoint-Delegate-Control-to-change-the-navigate-URL-of-Manage-Links-(My-Links).aspx
http://www.jamestsai.net/Blog/post/How-to-use-SharePoint-Delegate-Control-to-change-the-navigate-URL-of-Manage-Links-(My-Links).aspx
SPLongOperation
http://blogs.inetium.com/blogs/bcaauwe/archive/2007/12/20/splongoperation-sharepoint-spin-wheel.aspx
Sunday, February 14, 2010
Workflow Dehydrate / Security Validation issues / Persistance
http://www.sharepoint-tips.com/2007/09/security-validation-for-this-page-is.html
http://ddkonline.blogspot.com/2009/06/sharepoint-2007-workflow-workflow.html
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.
}
}
http://ddkonline.blogspot.com/2009/06/sharepoint-2007-workflow-workflow.html
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.!
Solution :
Always remember to create wspbuilder + workflow based project
Change target framerwork to 3.0
Good to go.!
VPC Creation process
http://www.pptspaces.com/sharepointreporterblog/Lists/Posts/Post.aspx?List=7537e639%2Db4e5%2D48b6%2D97c0%2Da75e44ee9be3&ID=7
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
2. Install MSBuild Community Tasks
3. Set the configuration to "ReleaseSigned"
4. Enter p Thomson
Loopback check - SharePoint web application create access denied host header
http://support.microsoft.com/kb/896861
Workflow for Access
Task:
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.
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.
Subscribe to:
Posts (Atom)