Wednesday, February 5, 2014

Customize Newform.aspx using InfoPath

Last week I was assigned to customize a list page. Here are the steps and some issues I faced during this assignment.

Design / Customization phase:
  • Open SharePoint site
  • Navigate to List
  • Select on the List and then click customize form (it by default shows InfoPath icon)





  • This will open the NewForm.aspx page in InfoPath
  • Make necessary changes and publish / quick publish it to SharePoint
  • By default it publishes to the same list. (to change the default quick publish option we have to dig hard and change some codes inside that form xml. I will discuss on it later)
  • That’s it now you have customized InfoPath form loaded to your list


Validation phase:
  • Now where to check this is the same customized form you published via InfoPath?
  • From Ribbon select Item > New Item



  • This should open up a customized form.
  • To reconfirm it, open this list in SPD or in explorer view
  • Now go to Forms folder and confirm Newfs.aspx page resides there


Known issue / troubleshooting phase:
  • I noticed this issue most of the times when we customize list newform it only updated in Ribbon part, in other words it only updates content type filed.
  • I faced an issue with add new item option which we generally find below all items



When I clicked on it, I found the old / original newform.aspx page opening.


Tuesday, February 4, 2014

Whats new in SharePoint Designer 2010 (and whats missing)

SharePoint Designer is a single tool that helps you do so much more with the SharePoint, with little or no coding. 

In the Share point designer 2010 there have been some enhancements and as an Administrator its important to understand these enhancements.

Features such as Contributor settings, Database Interface Wizards, Site Publish, Site Backup and Restore are no longer available in the Designer 2010. 


Additionally SharePoint designer offers new capabilities to create web part pages, master pages, lists and workflows, setting permissions for individual users; and saving and deleting site templates. 

Also you can extend share-point 2010 ribbon using standard Development APIs to fulfill application & corporate requirements using SharePoint designer 2010 you can customize both Ribbon and drop down lists to display site lists, available webparts, workflows, or other information as needed.

refer the link http://technet.microsoft.com/en-us/library/cc179083.aspx to get more information on this part. 

Monday, February 3, 2014

State service error message

SharePoint makes it easy to modify your list input forms using the new design the form page in InfoPath 2010 option

You can just open your list and click Customize form button in ribbon.

But sometimes while publishing the form you may see the error message as

"The form cannot be rendered. This may be due to Misconfiguration of the Microsoft SharePoint state service. For more information contact your server administrator" 

one possible cause of this error could be that the SharePoint 2010 farm was created manually without running the PS configuration wizard.

To configure the SharePoint 2010 state service using the PowerShell try the following:

1. open your Central Administration in the Browser.
2. On task bar, click Start, select Administrative tools and then windows PowerShell modules, this will launch PowerShell and load all required modules.
3. In windows PowerShell window create an application by typing this command.
 
   $serviceapp =New-SPStateServiceApplication -Name "State Service"

4. Associate a Database with this application

New- SPStateServiceDatabase -Name "StateServiceDatabase" -ServiceApplication $serviceapp

5. Create a State Service Application Proxy and associate it with service application by typing the Following command

New-SPStateServiceApplicationProxy -Name "State Service" -ServiceApplication $serviceApp -DefaultProxyGroup.


This will create the State service Application in CA

next you need to check is that you application is associated with this state service application.

just go ahead and publish your InfoPath form, it should work now :)