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

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Sharepoint Foundation - Create and deploy custom edit/view forms for external lists

Posted By:      Posted Date: September 29, 2010    Points: 0   Category :SharePoint

Firstly, we are using sharepoint foundation so Infopath forms are not an option for us.

We have a Visual Studio sharepoint project which deploys a complete sharepoint site. The site contains a number of external lists and we want to be able to create customised view/edit forms for these lists and add them to our Visual Studio project so they can be deployed as part of the new site. The idea is that we can deploy the solution to a fresh site with a default set of forms which can then be customised for different implementations of the site.

Here's the steps we have been using to try and do this:

1. Deploy the base project (BDC) to the sharepoint site

2. Create external lists based on the BDC content types

3. Use Sharepoint Designer to create new edit/view forms for the lists and set these as the default forms for the list

3. Save the site as a template

4. Import the template into a new Visual Studio project and select the lists we require. This gives us a List Definition, a pages module (with element file), an elements file and a schema file (both for the List Instance).

5. We then add the contents of the imported project to our main solution as follows:

  • Create a new List Definition (including List Instance)
  • Copy the contents of the imported Elements.xml to the Elements file for our List Instance.

    View Complete Post

More Related Resource Links

How to create a custom content type with own custom view ,add, edit and delete form in sharepoint fo


How to create a custom content type with own custom view ,add, edit and delete form in sharepoint foundation server 2010 using visual studio 2010?

I donot want to use default form "form.aspx".

we can use my custom form in place of "form.aspx"?

Sharepoint Foundation 2010 - How to control which fields are shown on new/edit/view forms for Extern


I have an external list which contains a DateTime field.  For the display I have added an additional string field to the BDC Entity , so i can display the date in whatever format is required.  But i still need the actual date field so a Date picker is rendered on the edit form.  How can I display the string field on the generated Display Form and the date field on the Edit Form.

I have tried adding the following to the field declaration (in the List schema) for the string field so that it's only shown on view forms, but that didn't work.   

  • ShowInDisplayForm="TRUE" ShowInEditForm="FALSE" ShowInNewForm="FALSE" ShowInViewForms="TRUE"

Am i missing something, or is this yet another 'feature' of external lists which looks like it should work but doesn't? 

I know i could create custom iew and Edit Forms manually t

Quick Note: Create Lists with Custom Content Types in SharePoint 2010

Learn how to create a list in SharePoint Server 2010 and associate it with a new content type. Next, you disassociate the list from the content type and then delete the list.

create new custom list form in sharepoint designer and edit in browser

hi, i have created a new list using sharepoint designer 2007. now i inserted a custom list form to modify some field and add new ones. when i finished i will tight my new custom list to the custom form. what i want to know is. i see the status field in my new form. and i only want the status field to appear in the edit form for the one that has the permission to edit the status. then i tought of open the list in my browser and go to the list settings. but what i notice is i dont see my fields i have modified in sharepiont designer in the columns section i only see the ones from the existing list. my question is how can i hide the status field in the new item form that it only show in the edit form. and how do i get my new form in the column section so the end user can add more fields if they want without using sharepointdesigner thnx

How to create a custom view in SharePoint 2010?

I can't find a good answer for this with the 15 minutes of searching I have done. Makes me think that there might be some roadblocks here.  I want to create a custom view for a list in sharepoint. Basically, I want to conditionally apply some custom table row formatting based on a value of a column in that row  conditionally add an image along with a text in a column (again based on a column value) I am thinking that a custom view is the way to go...any direction on this? maybe a link to a good example? Thanks, Jake.

custom sharepoint lists programatically with the forms?

hi,     can any one give a link to a post for creating Sharepoint Lists from scratch. i would like to know about creating custom lists from scratch like the NewForm.aspx, EditForm.aspx,AllItems.aspx .  i know we can create list from OOTB but i would like to know using object model please help.

How to create and deploy custom IFilter for sharepoint using c#


Hi all,

I am planning to create custom custom IFilter for sharepoint using c# to index PDF and Image files in sharepoint. Can anyone tell me how can we create and deploy custome IFilter for sharepoint using c#.

I did lot of reasearch work in google for the steps to create and deploy IFilter but I didn't find any information regarding this.

Can anyone assist me regarding this

How to create a custom page layout in sharepoint foundation 2010



I need to create a custom page layout in sharepoint foundation 2010.

I am aware that wss 3.0 and sharepoint foundation do not have the publishing infrastructure.

I need to know if the same procedure that is used to create custom web part pages in WSS 3.0 is to be used in SharePoint foundation too or are there other ways.

I am relatively a fresher to sharepoint technology.Please help.

Thanks in advance:D.


Surface data in external lists in Sharepoint Foundation 2010



I have seen numerous articles for the above, but they all just gloss over the step I am having a problem with, assuming nobody will have an issue with it. 

I'm trying to create an External Content Type so I can use it to display external data (from SQL Server) in an External List.  When I get to the step to add the connection and the SQL Server connection dialog box appears, I enter the server and database names and click OK with the Connect with User's Identity radio button still selected and I get the error message: login failed for user ''. The user is not associated with a trusted SQL Server connection.  I've tried to read up on the different purposes of the radio buttons on offer on this dialog box but don't know which I should really be using and don't think I can create a target application ID anyway in Foundation (for the other two radio button options) as that has to be done in the secure store services.  Can anybody help with this?

Add my custom ASPX Form for New And Edit In sharepoint foundation 2010


How cna i use my custom aspx page as New and Edit Form for a List Template. Please give me some example.


How to create a newsletter using 2 lists in SharePoint Foundation



I have 2 lists

Letter and Articles.

They are linked based on LetterID.

Letter contains:

ID, Archived, PublishingStatus

Articles contains:

ID, Subject, Header, Article, Status

I want to create a layout like so:

Letter <Letter.ID>

    <General text>

    ForEach <Article.Subject>

         Print <Article.Subject>

    Foreach <artictle.Header

        Print Article text


So I want to display only 1 letter.

Hope thiss makes sence!

External List custom Edit/Display forms


Hi There,

I working with creating an External List with ECT and .NET Type. Im using Sharepoint Foundation and

I can't figure out how I can change url to the different forms like with a regular CT I use something like this:

ct.EditFormUrl = "_layouts/someeditform.aspx";<br/>
ct.NewFormUrl = "_layouts/somenewform.aspx";<br/>
ct.DisplayFormUrl = "_layouts/somedispform.aspx";<br/>

I have tried changing the list displayformurl and there it complains about it can't find the url or something like that.


So any suggestion or questions(if you don't understand what Im talking about:)) is appreciated.




SharePoint 2007 - How to associate a Custom List View with a Custom Edit Form. Edit link always re


Can someone give me a clue of how to connect a specific Custom List View with a custom Edit Form.

I have created a custom list, and I have created a custom view attached to that list.   I also have a custom CustomEditForm.aspx form created using SharePoint Designer.

I want to associate the Custom Edit form directly with one and one view only for a given list so that when the user clicks the edit icon in that view, they are linked to the custom Edit Form.  But all other views including the All Items view behave as normal, i.e. using the normal EditForm.aspx.

I can replace the EditForm.aspx in the Url with my custom form and it works fine, but I can't seem to figure out how to connect the custom view edit link to the custom form.  It always takes me back to the default EditForm.aspx page.

I have investigated the href="{$URL_Edit}?ID={@ID}" onclick="GoToPage('{$URL_Edit}?ID={@ID}') in code, which appears to  be how the URL is generated but I'm not sure how or where best to set the value of URL_Edit parameter so that I point to the custom Edit Form.  This is somehow getting passed into the custom view, but I'm not sure how best to set it for a specific non-AllItems view.

Does anyone

Duplicate column names from forms in SharePoint lists



I'm in the process of migrating from a WSS 2 site to WSS 3/MOSS. On the old site I used an Infopath 2003 form for absence requests. During the migration I now use Infopath 2007. There wasn't any problem initially when the form was stored with the SharePoint form library. However, when I published the form as a content type from Infopath 2007 and then added that content type to the form library, there are two columns for each piece of data from the form. (One from the content type and one from the form list.) I relinked each old form (list content type) to the new AbsenceRequest content type and removed the original one from the list. However, the duplicate column names are still there. Since they came from the Infopath form, they are not editable or deletable from the SharePoint list management interface. The duplicate column names make it tough to build views since it isn't apparent which column to use in the form building UI. It can be determined form the overview display, but it is very cumbersome.


Does anyone know a way to get rid of the old, absolute, columns?

How to create scrolling table for columns in a SharePoint Designer Data View


I have a fairly complex SharePoint Designer 2007 Data View they have added two more requirements.

1. Have the columns on the right side be able to scroll left to right as there is a large number of columns, while the first 3 columns on the left side stay locked in place.  This is only one list not two, and because of some other requirements I have it must remain to be just one list.

2. Then they also need to have scrolling up and down of the entire list with the headers locked in place.

The first requirement is more important than the second, but preferrably I need to do both.

I am new to XSL so not familar with the syntax. Is this something I can do on a custom Data View? Does anyone have any examples of how?

I have a drawing that show how it needs to look but I don't see an option here to upload a graphic.

So here is a link to my graphic example uploaded to my blog area: http://lindachapman.blogspot.com/  or just the image here: http://4.bp.blogspot.com/_aB01ue__NvQ/TGL42MOvrGI/AAAAAAAAAA4/c3xP4uCy4BU/s1600/Scrolling.png

I failed to mention that 3/4 of the columns are HTML Calculated fields wh

How to create a custom Gantt Chart for SharePoint using VS

So I have been told you can't create a custom gantt chart using SharePoint Designer.  I don't believe that actually, there must be a way to create one from scratch using SPD and a Data View and editing the XSL directly....but assuming there is not..

Are there any articles that explain for a non-developer how to create a custom gantt chart for a SharePoint site using Visual Studio 2008?


Quick Note: Create Custom List Definitions in SharePoint 2010

In this exercise, you create a custom list definition in Microsoft SharePoint 2010 and then create an event receiver that is triggered when the list is used.
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

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