Thursday, December 23, 2010

SharePoint 2010 Site Templates Document Library Workflow + OneNote

I ran across a strange problem today. Here's my situation. Saving a site as a site template (wsp solution), the site had a document library that had a default template of a OneNote file and it also had workflow associated with it (created with SPD). Using the site template to recreate the file works but the document library's "New Document" button was disabled and there was no template associated with it in the new site.

I wrote a bit of code that resets the document library to use the OneNote document as its template but the question remains, why did that button get greyed out when a workflow was associated with that document library and saved in the template.

I tested saving the template without the workflow associated with the document library and the OneNote template stayed associated with the document library, it was only when I associated a workflow with the document library that the "New Document" button got greyed out.



Anonymous said...

Greetings I am so thrillеd I found your blοg page, I
really found you by mіstakе, while Ι was reseaгсhіng οn Digg for something elѕe, Anyhow I
am hеre nοw and woulԁ just likе to say thanks foг a remarkable
post and a all rоund enjoyable blog (I alѕo love thе theme/design), ӏ don't have time to go through it all at the minute but I have saved it and also added your RSS feeds, so when I have time I will be back to read more, Please do keep up the excellent job.

Feel free to surf to my blog; house water damage
Also see my webpage - eliminate water damage

PDF signature said...

This post will be helpful to everyone who will use it, including me. Keep doing what you are doing ! Thanks for sharing with us your web-site.

التسويق الاكترونى said...

شركة مكافحة النمل الابيض بالرياض
شركة مكافحة الصراصير بالرياض
شركة مكافحة الثعابين بالرياض
شركة مكافحة الحمام بالرياض
شركة مكافحة الفئران بالرياض
شركة رش دفان بالرياض
شركة رش مبيدات بالرياض
شركة رش مبيدات بالخرج