用于复制Field的JavaScript [英] JavaScript to copy Field
问题描述
大家好日子!我有一个标题为"当前状态"的字段。这是一个追加更改字段。我想复制上一条评论的内容,并将其放在另一个列为"最新评论"的字段中。最新评论是纯文本
字段,当前状态也是如此。这可以通过JavaScript实现吗?
Lee Mossolle
如果在字段中启用了AppendChanges,那么数据将存储在listitem的版本中,shrepoint会在运行时显示它。
您可以使用JSOM或SPService来获取版本历史记录和找到最新版本,然后您可以更新最新评论字段。请查看以下网址:
http://techfindings-prem.blogspot.com/2014/06/how-to-get-all-versions-of-list-using.html
Good day to all! I have a field titled "Current Status" that is an append changes field. I would like to copy the contents of the last comment and put it in another field listed as "Latest Comments". The Latest Comments is a plain text field, as is the Current Status. Would this be at all possible via JavaScript?
Lee Mossolle
Hi,
If the AppendChanges is enabled in the field then the data is store in versions of listitem and shrepoint displays it at runtime.
You can use JSOM or SPService to fetch the version history and find the latest version and then you can update the Latest Comments field. Please check below url:
http://techfindings-prem.blogspot.com/2014/06/how-to-get-all-versions-of-list-using.html
这篇关于用于复制Field的JavaScript的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!