Showing posts with label Tools. Show all posts
Showing posts with label Tools. 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

Feb 2, 2012

Develope Content Type from Custom parent Conten Type in Sharepoint 2010 using Visual Studio 2010.

hello guys ,

This is our third Article on the Content Types in SharePoint 2010. the FirstPart we developed a content type using Visual studio 2010 we will use that content type as a base and start from there.

we will open the Content Type project created in FirstPart.


Right click on solution -->Add -->new project.



Select the Project Type as Content Type under SharePoint 2010.




Click OK.
deploy solution as Form Solution.






Click Next.
Select the Content type which we created in the FirstPart i.e. DevendraContentType

Click Finish.



Open Elements.xml
we can see that the contentType Inherited from the Previous one. See the below pic for the details.



and add the Fields which you want and FiledRef in the Elements.xml .to do this you can follow the FirstPart

to use the content type you can use the SecondPart

Hope you Enjoyed....

SharePoint-Journey for Administrators, Developers and users