Sunday, March 10, 2013

To Deploy list instances along with Custom New/Edit/Display Form, You can follow these steps
1)In SharePoint Designer
Select List and Librararies --->Preview Custom Forms in Browser-->Edit this Page in browser
and export the DataForm Webpart

2)Edit the .Webpart file in Visual studio to remove parameters for WebUrl (ctrl F +search for Weburl and remove it)
replace all occurrence of ListID to ListName and the Guid with the Name Of the List
and save .webpart fileIn Webpart Properties remove ListName Property

3)Upload this Deployable Datformwebpart and Edit the Custom List Pages to Add this new Webpart
and Remove the existing one.
In Visual Studio, Create the Module under ListInstance folder to provision Custom Form(You can get this module from exported wsp to Visual studio of required site template which is saved as wsp)Open the elements.xml file of the module and replace the CData of Dataform Webpart obtained in step 2(If you need additional help , pls drop a comment)

No comments:

The Icon besides 'Posted by Swati Jain', is Speech version of the post .. which can be saved as mp3..
for more details visit
http://vozme.com
http://www.callscotland.org.uk/Resources/Publications/Information-Sheets/Assets/Downloads
/WebtexttospeechFinal.pdf