.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

Retreive Customer field value in dispform.aspx

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

Hi All,

I have customized newform.aspx in sharepoint to use a new Customer field (which I added as dropdownlist connect to my own customer table). Everything works Ok. I can see customers in create service request.

But now when I see existing service request from the list using dispform.aspx  it doesnt show the customer value. How can I do this? Thanks.


View Complete Post

More Related Resource Links

Having trouble filtering data view inserted on DispForm.aspx by field value already on the page.

I have a DispForm.aspx page showing, of course, the names and values of fields of an item within a custom list that I have created.

I have inserted a dataview of another custom list onto this page.  Of course, when doing so, SharePoint Designer allows you to create a filter for this view.

I would like to filter this dataview using a value of a field of an item of the FIRST custom list (a value already shown on this page).

I mistakenly thought creating a data view parameter of "Form" source was the solution, but it is not.

Is there a way I can capture data appearing on the page (from the original DispForm) and use this value as a filter?

Any assistance would be most helpful.

Way of showing ID on the DispForm.aspx page without programming?

Is there a way of showing the ID system field on the DispForm.aspx page without programming.
I don't want to use a dataview, as new fields being added in the future won't appear automatically anymore this way on the DispForm.aspx page. 

I found somewhere that I could use a calculated field, with as formula =ID (so, in fact just copying the value of the ID field in the calculated field), which is one option.

Are there other options/solutions known?
Patrik | My Blog

Get Content type Id in dispform.aspx

I have added a data view web part to a DispForm.aspx of a particular list which displays the data from the child list associated to that particular list item in the parent list. In the Child data view web part I show the list of child items and a hyperlink to create a new child item.  But, the child list has 11 content types and i need to redirect to appropriate newform.aspx,how do i get the contenttypeid so that i can append to the url and redirectPlease remember to mark your question as "answered" if it solves your problem. My SharePoint Blog http://dhireny.blogspot.com

Copy of dispForm.aspx and lookup column

Hello, we have created in SPD 2010 a new Dispform. This new dispformuser.aspx is the new default form for viewing list entries. We want to hide some elements with jquery. We are using some lookup columns in our list. When we open an entry in the new form, the lookup-columns looks like <a href="http://s-sharepoint-02.kkrn.local/_layouts/listform.aspx?PageType=4&ListId={1D8EE013-E164-482F-861E-9CACB2EBF6B5}&ID=1&RootFolder=*">Marien-Hospital</a> The form is not customized at the moment, it is only a copy at the moment. Any other colums are ok. Editform and newform seems to be ok, also the lookup columns. Maybe somebody can help us with this behaviour.  thank you Regards Marc

Custom Email Alert template creating links to DispForm.aspx

I have a requirement to customise the alert template for a standard blog post list. To do this I: 1. Created a copy of alertstemplate.xml 2. Copied the genericList alert template node and customised 3. Registered the new template file against the site collection, iisreset and finally assigned the new Alert template to the list, when alerts are created the custom template is emailed. The problem now arises that the 'View <Post Title>' in the toolbar section now creates a hyperlink to http..../Lists/Posts/Dispform.aspx?ID=xx rather than post.aspx. I have checked using sharepoint designer that the list supporting files has the correct display item form of Lists/Posts/Post.aspx. Additionally if I reset the alert template for the list back to use the Generic list template the same problem still occurs so this leads me to believe it is not the customisations that are the problem. Code used to assign the alert template to the Posts list: var ats = new SPAlertTemplateCollection((SPWebService) site.WebApplication.Parent); var newTemplate = ats[alertName]; if (newTemplate == null) { // We did not find the specified Template. throw new Exception("Failed to find template SPAlertTemplateType.NewsPost in the template collection."); } list.AlertTemplate = newTemplate; list.Update(); Any assistance will be most welcome, thanks in advance. Alan

A customized EditForm.aspx page giving error because it has a "People and Group" field with a "Allow

My customized EditForm.aspx which has a "People and Group" column with the "Allow multiple selections" property as "Yes" was working fine until the Agusust cumulative update was applied into the MOSS server. Now it's giving me the error: "An unexpected error has occurred". Needless to say, when I change the "Allow multiple selections" property to "No", the customized EditForm.aspx page works fine.Forgetting whyMicrosoft introduced this error for now, is there a workaround that you are awre of?

About Dispform.aspx

Hi,I designed one data submission form which stores the data in List.if you search something related to listitems the output will display in dispform.aspx.but as per my requirement they(customer) dont like look and feel of dispform.aspx.so i redirected to my own customized page writing some code(javascript page redirect code ) in dispform.aspx.In my customized page i am showing results(list items).if you search something related to listitem first it will show in dispform.aspx(for a 1sec) then after showing my customized page.So how can i solve this one.(customer want some flas on result page i.e customized page)any suggetions or any another way to change or customized  of dispform.aspx.please help me out.Thankyou for your valuable suggetions.Thanks

Custom DispForm.aspx and Search Results

I am a developer, but am proofing somethig in SPD 2010.  I am trying to create custom New/Edit/Disp/List forms for some OOB SharePoint 2010 lists (think Announcements, etc).  I am going this route because we are leveraging a mix of OOB functionality and custom functionality.  We want to avoid users "accidentally" navigating to the OOB New/Edit/Disp/List forms and have only our custom forms displayed.  This includes things like creating new items in calendar view and links from search results. So far, I have used SPD to create a new, custom, DispForm.aspx named "DispFormCustom.aspx".  I just made minor modifications to it so far - like changing background color to red.  Otherwise the new "DispFormCustom.aspx" is exactly what SPD gives you when you say you want to create a new Display Form.  I have selected that the custom form be the "Default" display form for the list. When I go into the list, and select "View Item", I get my custom form. When I do a search (using OOB search), the search result takes me to the original "DispForm.aspx" and not my custom form (eventhough I have specified it to be the default).  I have cleared the search index and done a Full crawl and the same behavior. I did navigate to the Content Type edit screen in SPD, in the "Forms" section, modif

how to do a ajax integrated validation in required field sharepoint newform.aspx

hi all, i have newform.aspx in sharpeoint list where in i have 2 cols which are reqd field. how would i make the server side validation without refreshing the page.. can i put it ajax update panel ?  how would i achieve this requirement.jayaraja

Hide the empty rows on dispform.aspx using javascript


Guys, can I hide the empty rows on display form using javascript?

If you know anything, Help me.


sharepoint number field in list comes with decimal places in dispform


hello guys,

 the sharepoint number field in list comes with 2 decimal places in dispform, like

when I enter number like 12 on new form, when I open the dispform, it shows 12.00

I tried to keep the decimal places to 0  but it didn't work.

Do you guys know anything about this one. I don't want to make it a single line of text.

New added field in newform.aspx doesnt show in disp.aspx



I have added a new field in my newform.aspx ,called Customer. Its dropdown list bound to sql db.

It works fine and is populating list of customers but the value chosen here is not showing up in dispform.aspx page.

I m just completely stuck. Any suggestions please.

How Do I Fix Broken Link to DispForm.aspx?


Hi All,

I've done a bit of renaming of form pages under one of SharePoint lists, and have no discovered that instead of linking to DispForm.aspx, the picture library in question, now just links to the home page. My first reaction was to right-click the list in SharePoint Designer, and go "Properties". I then when to the "Supporting Files" tab, but it only allows you to specify the "New Document" and "Edit Document" forms. It doesn't have anywhere to set the "Display Form" page.

Can anyone tell me how I can link my picture library back to DispForm.aspx?


Sharing custom DispForm.aspx across sites

We have a need to customize the default dispform.aspx for displaying announcement content type.  I have created a test site and created a modified dispform to display the announcements like i wanted.  I would now like to copy this modified dispform.aspx to another site and display the announcements for that site using the customized dispform.aspx.  Apparantly I cannot simply copy the modified dispform.aspx to the site.  Also, what would I need to do to change the default list form dispform.aspx for the entire site collection.  Any assistance would be greatly appreciated.

Crystal Reports Report on DispForm.aspx


Hi Guys,

i've a question regarding Crystal Reports and MOSS2007 Standard. At the moment its my task to redesign the DispForm.aspx of a sharepoint list item. The DispForm.aspx should contain a Crystal Reports report.

I found serveral blog posts and tutorials in the internet, but they don't work for me. The problem is that the report don't appear on the DispForm.aspx everything else work fine.

I wrote this piece of Code for the DispForm.aspx:
<%@ Register Assembly="CrystalDecisions.Web, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"
Namespace="CrystalDecisions.Web" TagPrefix="CR" %>
<%@ Register Assembly="CrystalDecisions.CrystalReports.Engine, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"
Namespace="CrystalDecisions.Web" TagPrefix="CR" %>
<%@ Register Assembly="CrystalDecisions.Shared, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"

Created BY Field in site manager.aspx is empty



if i browse to this page it lists all the libraries and list created in my site collection. but there is a field at the right end named

Created By which is empty it doesn't have any data at all.

fields like title,modified by,and type have some data but this Created By which is supposed to have the name of the person who created that item is empty.

is there a way to display the creater name in that field or there is something i have missed...

With sharepoint designer EditForm.aspx set a field to read only


Have a field I want to show the value but not let the user edit value. I have seen other post posts that say set the field to read only but can some get me an example. Here is the current field data

<td width="400px" valign="top" class="ms-formbody">
       <SharePoint:FormField runat="server" id="ff1{$Pos}" ControlMode="Edit" FieldName="Title" __designer:bind="{ddwrt:DataBind('u',concat('ff1',$Pos),'Value','ValueChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@Title')}" DisableInputFieldLabel="False"/>
       <SharePoint:FieldDescription runat="server" id="ff1description{$Pos}" FieldName="Title" ControlMode="Edit"/>

How do a change the above to a read only value?


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