.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Articles >> SharePoint >> Post New Resource Bookmark and Share   

 Subscribe to Articles

Forms on SharePoint lists

Posted By:Dhananjay Kumar       Posted Date: March 08, 2010    Points: 25    Category: SharePoint    URL: http://www.dotnetspark.com  

Forms on SharePoint lists. This article will give a very high level description on various forms on a SharePoint list.
 

Objective

This article will give a very high level description on various forms on a SharePoint list.

When we create a new custom list in SharePoint, SharePoint creates three forms (*.aspx) for the custom list. In fact for all list these forms are provided by SharePoint.

SharePoint1.gif

SharePoint2.gif

Let us say, there is a list called TestList in your SharePoint site. Columns of list are as follows;

SharePoint3.gif

Adding New Item

Now when you add new item in the list, NewForm.aspx will get open. You can see the below URL in your browser while adding new item in the list.
http://abcserver:9722/sites/Test4/Lists/TestList/NewForm.aspx?RootFolder=/sites/Test1/Test4/Lists/TestList&Source=http://c849uss:9722/sites/Test1/Test4/Lists/TestList/AllItems.aspx

There are two query parameters,

  1. RootFolder: This parameter defines, in which folder Item will get saved.
  2. Source: This parameter defines after completion of action where to navigate.

Note: More on these two parameters in next articles.

SharePoint4.gif

Editing Existing Item

Now when you edit existing item in the list, EditForm.aspx will get open. You can see the below URL in your browser while editing existing item in the list.

http://abcserver:9722/sites/Test1/Lists/TestList/EditForm.aspx?ID=3&Source=http://c849uss:9722/sites/Test1/Test4/Lists/TestList/AllItems.aspx

There are two query parameters,

  1. ID: This parameter takes id of the item in list to be edited. If you pass ID which does not exist in the list, SharePoint will throw you below error.

    No item exists at
    http://c849uss:9722/sites/Test1/Test4/Lists/TestList/EditForm.aspx?ID=300&Source=http://c849uss:9722/sites/Test1/Test4/Lists/TestList/AllItems.aspx
     
    It may have been deleted or renamed by another user.
     
    Web Parts Maintenance Page: If you have permission, you can use this page to temporarily close Web Parts or remove personal settings. For more information, contact your site administrator.

    Troubleshoot issues with Windows SharePoint Services.
     
  2.  Source: This parameter defines after completion of action where to navigate.

    SharePoint5.gif

Displaying Existing Item

Now when you display existing item in the list, DispForm.aspx will get open. You can see the below URL in your browser while editing existing item in the list.

http://abcserver:9722/sites/Test1/Lists/TestList/DispForm.aspx?ID=3&Source=http://c849uss:9722/sites/Test1/Test4/Lists/TestList/AllItems.aspx&RootFolder=/sites/Test1/Test4/Lists/TestList

There are two query parameters,

  1. ID: This parameter takes id of the item in list to be displayed.
  2. Source: This parameter defines after completion of action where to navigate.

    SharePoint6.gif

 Subscribe to Articles

     

Further Readings:

Responses
Author: Praveen Battula         Company URL: http://www.dotnetspark.com
Posted Date: April 05, 2010

Good one.
For the question "No item exists at url, may be removed or changed" is explained here.
http://praveenbattula.blogspot.com/2010/02/sharepoint-exception-no-item-exists-url.html

Post Comment

You must Sign In To post reply
Find More Articles on C#, ASP.Net, Vb.Net, SQL Server and more Here

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend