禁用“附加更改” [英] Disable 'Append changes'

查看:74
本文介绍了禁用“附加更改”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我有一个带有多行文本字段的列表,其中包含"附加更改"启用。此列表已包含很多项目。现在应修改此文本字段,以便"附加更改"被禁用,最后一个附加文本应该是该字段的
值(更好的是,所有更改的连接,但至少是最后一个)。 

I have a list with a multiline text field with "Append changes" enabled. This list already contains a lot of items. Now this text field should be modified so that "Append changes" is disabled, and the last appended text should be the value of this field (even better, a concatenation of all changes, but at least the last one). 

实际上,如果我只是禁用此选项,该字段仍为空。

Actually, if I just disable this option, the field remains empty.

有什么办法吗?

谢谢!

推荐答案

在这种情况下,您可以创建迁移脚本/工具(普通控制台应用程序)。第一个工具将遍历列表中的所有列表项,使用"附加更改"从字段中读取所有值。启用并以一些可读格式将它们记录到文本文件中,例如:

in this case you may create migration script/tool (plain console app). First tool will iterate through all list items in the list, read all values from field with "Append changes" enabled and log them to text file in some readable format, e.g.:

{listItemId}; {来自文本字段的连接行 - base64编码}

{listItemId};{concatenated lines from text field - base64 encoded}

在此之后禁用"附加更改"选项并运行第二个工具,它将从文本文件中读取值,解析它们并使用连接的行更新每个列表项ID的文本字段。

After that disable "Append changes" option and run 2nd tool which will read values from text file, parse them and updates text field for each list item id with concatenated lines.


这篇关于禁用“附加更改”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆