Thursday, February 25, 2010

Publshing info path form to share point library.


In this article we will see how to create and publish the Info Path Form into Form Services in MOSS 2007. It has following steps

  1. How to design the Form using Info Path 2007
  2. How to check the Browser compatibility for the Form
  3. How to deploy it in the Form Server

Design the Form using Info Path 2007










Use the option Design checker to check for any errors are there

Check the Option.’ Design a Form template that can be opened in a browser or Info Path'.

If you want to verify your template

After enabling the Browser enabled Form, check the error in Design the Checker Tab since we have some unsupported controls for browser enabled form such as combo box, rich text controls.










From the File Menu, choose Publish.

Select the option 'To a SharePoint server with or without InfoPath Forms Services'










Enter the URL of the Web Application.












Check the Browser compatibility for the Form

Select the Document Library and verify that the option 'Enable this form to be filled out by using browser' is checked.










Deploy it in the Form Server If you want to create a new Document Library, choose Create a new Document Library or else you can update the Form template in an existing Document Library.Enter the Name of your Document Library.










Select the fields to be published in the Form Library.










Click on Publish to publish the form to document library










This is a confirmation screen for the template published successfully in the Form Library.


Monday, February 22, 2010

Creating Custom properties for web parts in Web user Control for smart part templates

Creating Custom properties for web parts in Web user Control for smart part templates

Hi friends ,
As I have gone through lot of search for creating custom properties for web user control which is used in smart part template as a custom web part but unfortunately there is no such help I found. So here I am giving some of the tips by which any one can under stand the implementation of custom properties in web user control.
I am considering that you know how to use smart part template and point to the web user control

Steps for creating properties.

1. Create the local variable required for custom properties

public partial class UCContactList : System.Web.UI.UserControl
{
#region For local varibles
//for names
///



/// Used for storing first contact info.
///

private string firstContact = string.Empty;
#endregion

2.Create the custom property with required attributes.

//properties for name
[Browsable(true), //Display the property in property pane
Category("Coolsoft Details"), //Create a Customer Details category in property pane
DefaultValue(false), //Assign a default value
WebPartStorage(Storage.Personal),//Make available in both personal and shared mode
FriendlyName(" First Contact"), //The caption display in property pane
Description(" First Contact Name")]//The tool tip
public string FirstConatactName
{
get
{
return firstContact;
}
set
{
firstContact = value;
}
}


3. Use the custom property in page load method for assigning any control.. in my case I done like this..

protected void Page_Load(object sender, EventArgs e)
{

//for first contact
this.hlFirstContact.Text = this.FirstConatactName
}

that's very easy..

Wednesday, February 17, 2010

Access denies OR Software Expire error at the time of activating the Office SharePoint Server Publishing Infrastructure feature

After creating new web application in MOSS we have to activate site collection features when site collection is implemented.Some feature get activated with configurable account but Office SharePoint Server Publishing Infrastructure requires the same account which is current account of share point Central administration otherwise it gives the above mentioned error.
To avoid this either make changes with your web application identity pool through advanced settings as like central Administration OR Create Web Application with default credentials of Central administration.