版本历史记录视图以列表的自定义显示形式显示最新版本详细信息 [英] Version history view shows latest version details in custom display form of list

查看:46
本文介绍了版本历史记录视图以列表的自定义显示形式显示最新版本详细信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们创建了自定义显示表单,以通过SPD隐藏显示中的某些列.

在查看以前的版本详细信息时,自定义显示表单仅显示最新的版本详细信息.

说明,一个项目有5个版本.单击版本历史记录中的第二个版本时,该表格将显示最新版本的详细信息(版本5值).

有人可以帮助我重温吗?

解决方案

例如,

http://server/sites/1/TestSite/_vti_history/1/Documents/testdocument.docx

http://server/sites/1/TestSite/_vti_history/2/Documents/testdocument.docx

何时 您有1个发布版本,而草稿版本则很少

1.已发布的1.0版网址如下所示:

http://server/sites/1/TestSite/_vti_history/512/Documents/testdocument.docx

2.  http://server/sites/513/TestSite/_vti_history/2/Documents/testdocument.docx

3.&snbsp; http://server/sites/514/TestSite/_vti_history/2/Documents/testdocument.docx

1.  http://server/sites/1/TestSite/_vti_history/1024/Documents/testdocument.docx

2.  http://server/sites/1025/TestSite/_vti_history/2/Documents/testdocument.docx

3.&snbsp; http://server/sites/1026/TestSite/_vti_history/2/Documents/testdocument.docx

仅适用于草稿版本的公式:

http://服务器/站点/ 假设n.0是版本,则网址为:

http://服务器/站点/ http://服务器/站点/ 希望这会有所帮助!


Hi,

we have created custom display form to hide some of the columns from the display thro SPD.

when viewing previous version details, the custom display form displays only the latest version details.

for examble, an item has 5 versions. when clicking on the 2nd version in the version histroy, the form shows the details of latest version (version 5 values).

can anyone help me to reslove this?

解决方案

You need to understand the logic of the versioning to construct the correct url. Please follow the below algorithm:

When you do not have any published version and only have draft versions:

For example,

1. Doc version is 0.1 then the url should be like:

http://server/sites/1/TestSite/_vti_history/1/Documents/testdocument.docx

2. Doc version is 0.2 then the url should be like:

http://server/sites/1/TestSite/_vti_history/2/Documents/testdocument.docx

When you have 1 published version and few draft version

1. The published version 1.0 url will look like:

http://server/sites/1/TestSite/_vti_history/512/Documents/testdocument.docx

2. Doc version is 1.1 then the url should be like:

http://server/sites/513/TestSite/_vti_history/2/Documents/testdocument.docx

3. Doc version is 1.2 then the url should be like:

http://server/sites/514/TestSite/_vti_history/2/Documents/testdocument.docx

When you have more than 1 published version and few draft versions:

1. The published version 2.0 url will look like:

http://server/sites/1/TestSite/_vti_history/1024/Documents/testdocument.docx

2. Doc version is 2.1 then the url should be like:

http://server/sites/1025/TestSite/_vti_history/2/Documents/testdocument.docx

3. Doc version is 2.2 then the url should be like:

http://server/sites/1026/TestSite/_vti_history/2/Documents/testdocument.docx

Conclusion:

Formula for only draft versions:

1. Assume, 0.n is the draft vervion then the url will be:

http://server/sites/[n]/TestSite/_vti_history/2/Documents/testdocument.docx

2. You have any published version:

Assume n.0 is the version then the url will be:

http://server/sites/[512x(n)]/TestSite/_vti_history/2/Documents/testdocument.docx

3. Assume n.m is the version where n is the published version and m is the draft version then the url will be:

http://server/sites/[512x(n)+m]/TestSite/_vti_history/2/Documents/testdocument.docx

Hope this will help!


这篇关于版本历史记录视图以列表的自定义显示形式显示最新版本详细信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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