Solved

versioning on a list

Posted on 2011-09-03
6
185 Views
Last Modified: 2012-05-12
I have versioning turned on for a list (SP 2010)
In that list there are 2 fields that are multi lines of text.
Each time this list is opened (EditForm.aspx) my name and the current date/time is added to the 2 multi line text boxes even though neither were touch and are both empty!
Is there a way to stop this?
I can see why you would have the user and the time added to the end of a comment when added but not to denote the last time the list item was edited in other areas
0
Comment
Question by:QPR
  • 3
  • 3
6 Comments
 
LVL 16

Accepted Solution

by:
jessc7 earned 500 total points
ID: 36897307
Here is an alternative:

An easy way to implement "Append-only comments"
http://fangdahai.blogspot.com/2010/07/easy-way-to-implement-append-only.html

In the workflow, you could check for an empty value before appending it to the new column.
0
 
LVL 29

Author Comment

by:QPR
ID: 36900472
Thanks, not sure how that relates though. I want list versioning and I want comments appended. I have both. What I don't understand is why the 2 multiline text boxes are populated with the user's name and the date/time when nothing has been added to these fields. See the image below. The 2 fields "technicians comments" and "resolution" have my name (blanked out) and the date time in them.
I don't under stand why when nothing has been entered into these fields.
If I open the list item and add/change something e.g. the title or the description then the "technicians comments" and "resolution" fields will then have a second line again showing my name and the date/time. I don't understand why it does this.
 names and dates
0
 
LVL 16

Expert Comment

by:jessc7
ID: 36900567
Unfortunately, that is just the default behavior of SharePoint in this scenario. When someone edits/saves a list item that has appended comments enabled, it saves the time stamp of the save regardless of if a comment was added. I agree this seems like a waste and can be confusing.

The link I sent you was an example of how to create your own appended comments functionality, and use a workflow to only append the comments when there are actually comments entered. This would be a way to answer the default behavior.
0
Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

 
LVL 29

Author Comment

by:QPR
ID: 36914160
I don't mind it saving the timestamp info, I just don't get why it puts that timestamp info inside the mutiline text boxes. If I go into that list item and change the title 10 times and then view the list item, the multi line text boxes will have 10 repititions of my name and the dates... even though the boxes themselves contain no text
0
 
LVL 16

Expert Comment

by:jessc7
ID: 36914178
Yes, as I said, the default behavior of SharePoint with appended comments fields is to automatically add the time stamp. I agree that doesn't make sense, and I understand what you are saying. I posted a workaround if you are interested.
0
 
LVL 29

Author Closing Comment

by:QPR
ID: 36914192
thanks
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

When installing SharePoint 2010 RTM I came across a strange error, I was getting timeouts during the installation. I searched the web and found the best solution to be found here (http://social.msdn.microsoft.com/Forums/en-US/sharepoint2010genera…
I used to be SharePoint evangelist in our company, so my Outlook always full of questions about how to do this, or where I can find that. One day I found such an email with the following question: "how to attach 3-State workflow (one of the workflow…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question