.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

Team Discussion Modified by field not working

Posted By:      Posted Date: August 31, 2010    Points: 0   Category :SharePoint
Hello, I have a team discussion board set up which uses a threaded format. However, my issue is with the Modified by field. I believed this would show me the last user that had replied to a discussion but the field continues to display my user name since I was the creator of the discussions in the first place. Am I using the wrong field? Something tells me that the columns I have to choose from are all in regards to to discussions and not to the message replies themselves. In the end, I'm looking for something very similar to your forums here. Discussions should be displayed with title, created by, timestamp, last user who replied and timestamp.Beth Singley PBM Graphics

View Complete Post

More Related Resource Links

Discussion board template of SharePoint 2007 not working properly


Use case 1 – Discussion board to suggest change to documents

 User adds a suggestion. The discussion board needs fields like module name, document name, section name and reason for a change etc.


 Problem 1 – When I try to add fields to the discussion board – When a user wants to post a reply to a suggestion, user screen shows the new item form and all fields instead of just a reply or comment field. Need help how can I ensue user only sees reply or comment field?


 Problem 2 – If I make these changes in the discussion board template through SharePoint designer 2007 and later if we plan to upgrade to SP 2010. Do I have to redo the changes I did on old discussion board or will upgrade take care of migration of the changes to new discussion board template available with SP 2010? 




Coding is not working for Making Password Field Encrypted in sql and using sessions .basically its a

Dim cn As SqlConnection         Dim cmd As SqlCommand         Dim dr As SqlDataReader         cn = New SqlConnection         cn.ConnectionString = ConfigurationManager.ConnectionStrings("fees_systemConnectionString").ToString         cn.Open()         cmd.Connection = cn         cmd.CommandType = CommandType.Text         Dim Hashpass As String = FormsAuthentication.HashPasswordForStoringInConfigFile(password.Text, "sha1")         cmd.CommandText = "Select * from login where username='" & Me.txtUsername.Text & "' and password = '" & Hashpass & "'"         Dim re As SqlDataReader = cmd.ExecuteReader()         If re.HasRows Then             While re.Read()                 Session("email_id") = re("username").ToString()                 Session("MemberType") = re("type").ToString()                 Session("ISLOGIN&

Client Object Model - cannot retrive "Modified By" field value

Hi, I am using Client Object Model to get all items from a list and display theme with "Modified By" information. Everything works nice until I start using test users. I have noticed that for user who is in Domain Admins group i have no problem for others I cannot read "modiefied by" field value. var context = ClientContext.Current; activitySPList = context.Site.RootWeb.Lists.GetByTitle("Activities") activityItems = activitySPList.GetItems(CamlQuery.CreateAllItemsQuery()); context.Load(activityItems); context.ExecuteQueryAsync( ClientRequestSucceeded, ClientRequestFailed ); All items in activityItems collection doesn't have "Modified By" fields. Do you know why and how to fix it? Thanks for your help.

Binding list to form not working with '&' character in list field data

Hi, I have a SharePoint list with a field called Title. I have a form based on this list with the field bound to the form as a label (for workflow to access). Here is the code for the form field. <asp:Label runat="server" id="ff2{$Pos}" text="{@Title}" __designer:bind="{ddwrt:DataBind('u',concat('ff2',$Pos),'Text','','ID',ddwrt:EscapeDelims(string(@ID)),'@Title')}" /> I have a workflow that runs through a form action button which take ff2 (title) and  does other stuff. The problem I have is with records where the value of 'title' contains the '&' character (example ab&cd). Blank is pulled in by the workflow when I get the value of ff2. I am guessing it has to do with the data binding and/or escape (special) characters coming through but I don't know how to fix it. Any help will be greatly appreciated

Workflow - automatically create discussion item using title field of of custom list item as its subj

Anyone any ideas as to how I can configure SharePoint to create a discussion item using the title of a list item. e.g. user creates list item on a custom list - SP automatically creates a Discussion thread for this list item in the discussions list. I'm guessing this can't be down OOTB . would I be looking at SPD or a coded solution ? regards, Counie

Team discussion threaded view


I am looking for a way to increase the indented spacing on the Team Discussion – Threaded view.  The thought is that it is hard to follow the thread because the indent space between thread reply is too small.  See example


Example 1 (difficult to follow)

Original post

 Second reply

 Third reply

  Forth reply



ReadOnlyEnforced not working? How to make a field always read only?



I want to create a custom content type (a feature) and includes a field that will be always displayed to user but always in ReadOnly mode.

I'm creating items from a worklfow and what to unable user to modify some values....

I'd make some reasearch and found the "ReadOnlyEnforced " attribute.



This is the attribute definition: Optional Boolean . TRUE to specify that the user cannot change the field by any means and that it can only be changed by the system.


This is what I do and redo again to be sure... but it's not working! I'm starting to be a little bit discourage about that, because I can't allow user to change value of this fields...

It's a little bit frustrating, because the definition gave in documentation is right what I need lol But it's not working...

Anyone had this kind of problem? Any solution?






Team Foundation Server Reports not working


Hi all,

I'm having the same problems as this:


but I'm using Team Foundation Server 2010 and not 2008. The hotfix does not work with 2010 :/. The files are different.

Are there any people out there using TFS 2010 with Sql Server 2008 (not R2). I can't seem to make it work! 

Any ideas?


Onchange event for datetime field in javascript is not working?


I want to compare start date and end date when start date is changed. If start date is big, on change event i need to make the end date the same as start date.

So I wrote On change event for start date. But it doesnot work  

getField('input','Start Time').onchange = function() {showEndDate()};


function showEndDate()



var date1 = getField('input','Start Time');

var date2 = getField('input','End Time');


but its not firing at all. So you guys have any idea or any other way to do for datetime on change event?

Calculated field Sorting Now Working , but have performance question


 Thanks to mitja.GTI.

My sorting is working ...

although i had to take the table that has my calculated column and make a view (so i could filter) and then bind the gridview to the view.

My question is as this.

1.) in order to get my calculated field i had to load my data into a table (as suggested)

2.)Add a column to the table and perform calculations

3.)make a dataview from the tables because i could not get the Gridview.datasource= ds.tables("loads").select("Deadhead <= " & sngRadius

4.)the largest of the 3 tables my query is based on contains about 7000 records. The way i have the logic & programming now everytime a new "truck location" is put in the textbox1 and "find loads/button1" is clicked. It calculates the deadhead miles of all 7000 records before filtering. I am filtering based on the deadhead miles.

Does anyone have any recomendation about how to speed this up a bit.

Also in order to get paging to work i had to rebind/filter the data again ... means looping through all 7000 records each time paging is called. This seems terribly ineffecient as i am already forced to use access instead of SQL.


User Profile working, but domain in the Account Name field is incorrect


Profile import is working with a small set of users from just one OU. The synchronization connection has a Forest Name of "corp.mycompany.com", just like in our current profile settings in MOSS 07.

However, the user profiles created are listed with "corp" as the domain, not "mycompany".

E.g. my profile Account Name shows "corp\eriehl", but it should be "mycompany\eriehl".

How do I update this reserved property to contain the correct value for our domain?

edit discussion dialogue not properly working on mac


HI All,

The discussion edit box looses the menu(s) when post is getting too long.


Sathish. R


Sathish Kumar

Report Builder returning #Error value in empty fields and working with Date field


Hey guys,

I am trying to build a report using the date field from CRM and only wanting to return the date I am using this expression "=Fields!new_date.Value.ToShortDateString()" but when there is an empty fiel I get #Error. How do I solve this?

Also is there anyway to return the date field with the actual month showing instead of the numerical value? i.e. instead of 1/31/2010 Have it show January 31, 2010 (Doesn't have to be exactly in that format, but want the name value for the month.)

CQWP - AdditionalFilterFields - Wiki Categories field not working


Hello All,

So, after about 2 hours of putzing with this thing and digging up information about internal names and whatnot, I have gotten my ContentQueryWebPart to display "Wiki Categories" in its list of "Additional Filters."  If you know anything about that field, it is a Managed Metadata field that can have multiple selections per content item.  I have tried setting this value for one or more of the available options, but when I try to save the web part I get an error:

"You must specify a value for filters on managed metadata fields"

You can see how I would be confused, since... well... I *DID* "specify a value" for that filter.

Is there some other piece of the puzzle that I am missing?

Here is the property I added to the CQWP so far: (I added the line breaks and extra tabs for forum readability)

	<property name="AdditionalFilterFields" type="MultiChoice">
		Wiki_x0020_Page_x0020_Categories,Wiki Categories


Thanks in advance,


- Matt

SharePoint team discussion list question



In my "Team discussion" list we ask user to select "Departments" from the drop down. Now, I'm creating view for each department so that they can only see their own discussions. But, When I add "Team discussion" list in a web part, I don't get my custom views in "Select View" drop down list. I'm getting only "Subject" view ,

You may refer my question here with screen shot  : http://stackoverflow.com/questions/4076312/sharepoint-team-discussion-list-question


"Modified By" field incorrect

Hi All,

I've just noticed that when I check the version history of a list item the Modified By field is incorrect. It appears to be always set to the person that created the item. Has anyone else seen this? Does anyone know how to fix this?

- Claire

sharepoint 2010 binary field Property Not Editable: This property can only be modified by an adminis


I have added a binary property to the user profile. I update this field from a piece of c# code.
I get the error "binary field Property Not Editable: This property can only be modified by an administrator"
When I alter the service application and ad my account to the administrator group it works. The problem is that
I have to grant every user this right for this to work. Can anybody help me for this code to work without
having to add all the users to the service application administrators group?

My code is posted below. Have tried with and without elevated privs.

            SPSite site = EnsureMySiteContext();

                site.RootWeb.AllowUnsafeUpdates = true;

                var serviceContext = SPServiceContext.GetContext(site);
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