Posts

steps to Join Two List Parent Child Relation in infopath and sharepoint

Image
Actaully I have infopath list forms and infopath forms does not allow to access Query string parameters of the pages on which they are placed. I have also tried to submit data from infopath 2010 list form to another list using web service (Lists.asmx) but I have failed (I am still need some help on this). Ok, let’s talk about the solution that how we can get Query string parameter in infopath 2010 form: Sharepoint 2010 have filter webparts that allows you to filter the page content by applying them, so I have use “Query string filter” webpart and set the properties of the Query string filter (Query string Parameter = <your parameter name>) . Filter Webparts could also send the data to different webparts placed on the same page. It can be done by selecting the filter webpart and use “Connections” and send the Query string data to the infopath form webpart. One thing here, in the connection dialog, you would not see lookup columns i.e. if you have made a lookup column which poin...

Steps to create Filtered Lookup Field

Image
Yes - it is possible - even without coding! Using SharePoint designer you can create custom looukup fields where you set your own filter on which elements from the source list which you want to display. What we will do is to insert our own drop down list instead of the standard lookup field. This drop down will fetch its values from a new data connection. Below is the steps to follow. Define your list with all the needed fields and lookups Create a new custom form(s) - you will need a new New and Edit form.  For details see this blog entry . Delete the existing List Form web part Add a Custom List Form to your page Create a new Data Source to use to get and filter your lookup data Open the Data Source Library IF your lookup list is NOT in the same site as your main list do the following Select Connect to another library (at the bottom of the Data Source Library window) Click Add Browse to the web site which contains the list with your lookup values Add a name to your so...

steps to use SharePoint Form Web Part Vacation Request

Image
This video walks you through using the SharePoint Form Web Part to build a vacation request solution. The solution contains a calendar to see who's out, a form to submit vacation requests, email notifications and a simple workflow to automate the review/approve process. The SharePoint Form Web Part may be used for rapidly building SharePoint Forms for all sorts of various solutions, this is just one example.

Displaying Message Boxes in C#

Image
A MessageBox is a predefined dialog box that displays application-related information to the user. Message boxes are also used to request information from the user. To display information to the user in a message box Navigate to where you would like to add the code for the message box. Add code using the MessageBox.Show method. The following code demonstrates how to call the Show method of the MessageBox class to display information to the user. The call to the Show method uses the optional style parameter to specify the type of icon to display in the message box that best fits the type of message box being displayed:  public void PerformCalculations()  { // Code is entered here that performs a calculation // Display a message box informing the user that the calculations // are complete MessageBox.Show ("The calculations are complete", "My Application",  MessageBoxButtons.OKCancel, MessageBoxIcon.Asterisk); } Message boxes can also receive input. The Show method o...

C# - Variables and Expressions

Image
Variables : Declaring our two variables is very easy. Simply type the following lines of code: int x; int y; "int" is the C# term for integer, a mathematical term referring to a number that has no fractions or decimal values. Remember -- our goal in declaring variables is to tell the .NET Framework Runtime to save a place in memory for our numeric values. After that we can access our variables. Expression : Type the following code: int x = 7; string y = "Bob"; string myFirstTry = x + y; Console.WriteLine(myFirstTry); Console.ReadLine(); If you run the application, you'll see that the console window prints out 7Bob. This is correct, because seven plus Bob equals 7Bob. Now, add the following code: int mySecondTry = x + y;

Creating Your First C# Application

Image
Another example, On the File menu, point to New, and then click Project. Select the Windows Forms Application template. In the Name field, type MyFirstProject, and click OK. You will see a Windows Form in the Windows Forms designer. This is the user interface for your application. On the View menu, click Toolbox to make the list of controls visible. Expand the Common Controls list, and drag the Label control to your form. Also from the Toolbox Common Controls list, drag a Button control onto the form, near the label. Double-click the new button, button1, to open the file Form1.cs. In Form1.cs, look for a method called button1_Click. Method button1_Click is run when button1 is clicked. Add the following statement as the body of button1_Click. // Insert this line as the body of method button1_Click. label1.Text = "Hello, World!"; The complete method should look like this: private void button1_Click(object sender, EventArgs e) { // Insert this line as the body of method butto...

Installing SharePoint on Windows 7 - Part 1

Image
Watch installation part - 2 please visit http://youtu.be/xd7ZZLKmBAs In this Tutorial we will look into the installation of SharePoint 2010. Depending on your operating system and edition of SharePoint, the installation files vary. Software Pre-Requisites Following are the software pre-requisites 64 bit Operating System (Windows 7 / Windows Vista SP2 / Windows Server 2008) .Net Runtime 3.5 SP1 link MS Chart link SQL Server 2008 R2 link PowerShell 2 link Visual Studio 2010 link Note:64 bit Windows 7 can be installed on a 32 bit computer. For production server the operating system should be Windows Server 2008 and SharePoint Standard/Enterprise. Download There are multiple ways for installing SharePoint 2010. Here three of them are listed. 1. You can download a standard trial version from the following link: http://www.microsoft.com/download/en/... 2. Use the Easy Script to setup development machine with SharePoint 2010 http://www.microsoft.com/download/en/... This option takes several...