Showing posts with label Library. Show all posts
Showing posts with label Library. Show all posts

Feb 6, 2012

Import Reusable Workflow using Visual Studio 2010

Hello Guys,
This Article we will work on Importing reusable Workflow using Visual studio 2010.

In the last article we worked on Reusable Workflow with Associate Columns.

Open Visual studio.

File-- >New -->Project.
Select SharePoint 2010 ,Import Reusable Workflow.



Deploy as Form solution.



Click next.

Browse for the Employee Rating WSP which we copied from "SiteAssests" Library to local disk.



Click Next.



Select Employee Rating and Click Finish.
see the project structure Below.


Click on feature 1 , scope will be default to site(Site Collection)

Check the workflow design , we can find the three conditions for Grade A,B and C
which we are logging into History List.


Open Elements.xml file where check the AssociationCategories which defined to List.



so in Visual studio 2010 there is new project template for Importing the Reusable workflow which we created using SharePoint designer.

Hope you find this is useful.

SharePoint-Journey for Administrators, Developers and users

Jan 27, 2012

Contentype in Sharepoint 2010 using visual studio 2010 - Second Part


How to use the Content Type:


To use the content type developed in First part we will create a document library with the name of devendra.
Go to Site Actions-->View All site Content--> Create-->Select Library-->Select Document Library.




Enter a Name. Click on Create, a document library will get created. Select the Library which you create click on Library settings.



Click on Advanced settings.




Check Allow management of content type to Yes



In the below screen you can see the option Add from existing content types.



Select the content type which we created and Click on add.





To make the content type added to be default click on Change new button order and the default content type.



Only check the content type you developed or change the position to 1.here I am just checking the DevendraContentType.



Go to the document library; click on Add Document .see the Grade column with choice values.



The document has been added to library. To get Grade column to be displayed in the default view.



Go to library settings and click on All Documents under Views.



Check the Grade column.




Now you can see the Grade under default view.



you are done with associating content type developed using visual studio 2010 to document library.

SharePoint-Journey for Administrators, Developers and users