使用linkToItem = True时Listview列呈现问题

编程入门 行业动态 更新时间:2024-10-27 03:28:01
本文介绍了使用linkToItem = True时Listview列呈现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我创建了一个列表,一个自定义内容类型以及在沙箱解决方案中定义的一些网站列. 默认的标题列与内容类型的含义不太吻合. 因此,我已经使用PowerShell设置了列的属性,以便同时具有菜单和指向显示表单的可点击链接.

Hi, I've created a list, a custom content type and some site columns defined in a sandbox solution. The default title column dont fit very well with the content type meaning. So I've set the properties of a column with PowerShell in order to have both a menu and a clickable link to the display form.

$field.LinkToItem = $true; $field.LinkToItemAllowed = "Allowed"; $field.ListItemMenu = $true; $field.ListItemMenuAllowed = "Required";

问题在于该列的显示文本已编码某些字符,例如单引号或&符. 有人遇到过这种行为吗?是否有一些更新要应用才能解决此问题? 还是我想念什么? 谢谢 西尔万

The problem is that the displayed text of the column has certain characters encoded, like the single quote or the ampersand (&). Has someone encountered such behavior ? Is there some updates to apply in order to fix this issue ? Or perhaps i'm missing something ? Thanks, Sylvain

推荐答案

默认标题列与内容类型的含义不太吻合"是什么意思?

What do you mean about "The default title column dont fit very well with the content type meaning."?

原始显示的文字是什么?

What is the originaldisplayed text?

仅使用以下代码行进行测试,请确保与之相关的问题.

Using only the following line of code to test, make sure the issue related to it.

field.LinkToItem = field.LinkToItem =

true;

我建议您提供有关如何重现此问题的更多详细信息,其他人将可以更轻松地进行研究.

I suggest you provide more details about how to reproduce this issue, others would get easier to research on it.

最好的问候,

丹尼斯

更多推荐

使用linkToItem = True时Listview列呈现问题

本文发布于:2023-11-24 10:00:12,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1624759.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:linkToItem   True   Listview

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!