Sunday, May 23, 2010

Learn Basics of XSLT,Jquery with the interactive tutorials

Hi ,

As both XSLT and Jquery is required for Customization in sharepoint,I am adding some links to start with,
Dont stop yourself just by reading the above links, Now start practising on online IDEs
 Use CodeRun,
Hope you will enjoy it!!

Sunday, May 16, 2010

Customizing the Search Result By XSLT Using Dataform View

  1. Choose Site Actions -> Edit Page
  2. Locate the "Search Core Results" web part, and choose "Edit" -> "Modify Shared WebPart"
  3. Locate "Data View Properties" and choose the huge "XSL Editor..." button :)

Step 1)Modify the XSLT of the Search Core Results Web Part to get the raw XML

Step 2)
Replace the existing XSLT markup from the Search Core Results Web Part with the following snippet (which basically just give us the raw XML output when searching): as shown  in above

Step 3)Make use of the raw XML that SharePoint generated for us in the Search Core Results Web Part (Save this xml  file)

  Step  4)Open  the ASPX page in sharepoint designer and add DataFormview Webpart and Provide datasource as this xml file. Click on Change layout.Do the necessary changes.

Step 5)Get  the generated xml and  Paste in Search Core Results WebPart's XML-section.

Step 6)Publish this page and find the required output

Some more example  for XSLT transformations
1)Building a Pivot View Web Part based on Multi-value Column
2)Extending Custom Query Webparts
... Will be adding some more examples

Saturday, May 1, 2010

Building the Custom Activities for Workflow

Hello All,

                   This is how Custom activity  can be added for sharepoint designer workflow
step        1)Select Custom Workflow Library project

step 2) Set the required properties in Code behind which will act like parameters

step 3)Create .actions file as shown in following Images

step 4) Make its entry in web.config under authorized types

and Configure the workflow in sharepoint designer. For more info  watch the how to Custom Activity

Generating Solution Packages to Deploy at Production Server

Hello All,
here I will enlist the ways to generate the solution package

The smartest way
•Right-click on your project in Visual Studio Solution Explorer and go to Properties
•Go to the Build Events tab
•Enter the following in the Post-Build event command line section
cd $(SolutionDir)makecab /f Solution.ddf

2)Using the WSP Builder which is available @http://www.CodePlex.com/WspBuilder

3)To Know whats going on behind the Scenes
Watch this how to Configuring and Deploying Workflows to SharePoint Server 2007 Using Solution Packages

Then Run Add Solution, Deploy solution, install feature and
activate feaure Commands to deploy the WSP to SP site