Monday, July 29, 2013

SharePoint 2010 designer Workflow not publishing error

If you are working in SharePoint 2010 designer workflow, you might get an issue while publishing a workflow. Sometimes if you modify the workflow and publish it, but SharePoint still shows the old details.

Before that, you can also check out my previous posts on:

- Bind drop-down list from SharePoint list in InfoPath 2010

- Copy or Move files from one folder to another folder using SharePoint 2010 object model

- Add custom web part properties to the visual web part in SharePoint 2010

Thursday, July 25, 2013

How to make date time picker read-only in InfoPath 2010?

In this post we will discuss how to make date time picker read-only in InfoPath 2010. Also you can check out my previous posts on:
- Get internal name of a field in SharePoint 2010

- Attach event receivers to SharePoint list using PowerShell

- How to get userprofile properties in SharePoint 2013 object model?

There are certain controls like Textbox, Rich Text Box can made read only by simply right click and go to the properties and then navigate to the Display tab and then select the check box Read-only . But controls like Dropdownlist, Check box, Date Picker, Date and Time Picker we can not make read-only like this.

Monday, July 15, 2013

Bind dropdownlist from SharePoint list in InfoPath 2010

In this post we will discuss how we can bind a dropdownlist from a SharePoint list in InfoPath 2010. Also check out my previous posts on:

- Read SharePoint 2010 list data using jQuery

- Add custom Submit button in InfoPath form in SharePoint 2010

- Set the Bing Maps key at the web and farm level in SharePoint 2013

Follow below steps:
Step-1:
Open InfoPath (Start -> All Programs -> Microsoft Office -> Microsoft InfoPath Designer 2010), then select Blank Form and Click on Design Form.

Step-2:
Then from Home tab go to the Controls section and add a dropdownlist to the InfoPath form.

Step-3:
From the Ribbon select Data tab and select Data Connections as shown in the figure below:

Step-4:
In the Data Connections wizard click on Add... as shown in the figure below:

Step-5:
In the next step select Create a new connection to Receive data and click on Next as shown in the figure below:

Step-6:
In the next step select SharePoint library or list and click Next as shown in the figure below:

Step-7:
In the next step give the SharePoint site details and Click on Next as shown in the fig below:

Step-8:
Then Select the list from which you want to bind the data as shown in the fig below:

Step-9:
In the next step, select the fields which you want to retrieve and sort order and click on Next as shown in the fig below:

Step-10:
Then click on Next and do not modify anything for Store a copy of the data in the form template.


Step-11:
Then give a name for the data connection and select the checkbox Automatically retrieve data when form is opened as shown in the fig below and click on Finish.

Step-12:
Now Right click on the DropDownList and Select Drop-Down list properties and optionally change the field name and Select Get Choices from an external data sources. And in the Data Source field select the data source name that we have just created. Here you can change the Display name field to what ever field you want.

Step-13:
Now you can publish the form. The data should bind from the SharePoint list as shown in the figure below:

Sunday, July 14, 2013

InfoPath cannot open the selected form because of an error in the form's code. Policy settings prevent opening Internet forms with managed code. To fix this problem, contact your system administrator

In this post we will discuss how to solve an infopath error which I got while opening infopath form in SharePoint 2010. The full error message is "InfoPath cannot open the selected form because of an error in the form's code. Policy settings prevent opening Internet forms with managed code. To fix this problem, contact your system administrator".

You can check out my previous posts on:

- Disadvantages of external lists in BCS

- PowerShell cmdlets for SharePoint 2010

- Add custom send to destination in ECB menu in SharePoint 2010

Saturday, July 13, 2013

System.Security.SecurityException Request for the permission of type 'Microsoft.SharePoint.Security.SharePointPermission, Microsoft.SharePoint.Security, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' failed.

I got this error while publishing an Infopath form which has object model code in SharePoint 2010. The full error message is "System.Security.SecurityException
Request for the permission of type 'Microsoft.SharePoint.Security.SharePointPermission, Microsoft.SharePoint.Security, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' failed.".

Also you can check out my previous posts on:

Friday, July 12, 2013

This session has exceeded the amount of allowable resources - infopath form error

In this post we will discuss how to solve an infopath 2010 error "this session has exceeded the amount of allowable resources".

You can also check out my previous posts on:

The amount of data that was returned by a data connection has exceeded the maximum limit that was configured by the server administrator SharePoint infopath 2010 error

In this post we will discuss how to resolve the infopath 2010 error message"
The amount of data that was returned by a data connection has exceeded the maximum limit that was configured by the server administrator.


Click OK to resume filling out the form. You may want to check your form data for errors. ".

You can also check out my previous posts on:

Friday, July 5, 2013

Could not load file or assembly 'Microsoft.Sharepoint.Sandbox' or one of its dependencies. An attempt was made to load a program with an incorrect format.

In this post we will discuss about how to solve the error message "Could not load file or assembly 'Microsoft.Sharepoint.Sandbox' or one of its dependencies. An attempt was made to load a  program with an incorrect format."

Also you can check out my previous posts on:
- Tutorial on User Profile service application in SharePoint 2013

- Attach event receivers to SharePoint list using PowerShell

- Workflow custom form changes in SharePoint 2013

Wednesday, July 3, 2013

Enable target audience in list in SharePoint 2010

In this post we will discuss how to enable target audience in SharePoint list or document library using browser in SharePoint 2010.

Also you can check out my previous posts on:

- Tutorial on User Profile service application in SharePoint 2013

- Create content type in SharePoint 2013

- Create document sets in SharePoint 2013

The steps will be same for List or document library. By default target audience is not enabled for list or document library. Follow below steps to enable target audience in list or document library: