创建自定义字段类型

编程入门 行业动态 更新时间:2024-10-25 00:24:05
本文介绍了创建自定义字段类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

您好,

我正在http:// www的博客文章后面实施自定义字段类型。 stuartroberts/index.php/2012/10/03/enhanced-lookup-field-part-1/并进行一些自定义。

通过sharepoint UI使用时效果很好。

然而,当我尝试通过代码恢复字段值时,我总是收到空。

这并不奇怪:上面的解释文章使用隐藏字段来存储值的自定义,字段本身为空并不奇怪。

我想避免代码上的这种空行为。是否有一些属性或方法我应该在我的自定义字段类型上覆盖以自定义实际字段值的检索?

谢谢!

Dennes

Dennes [bufaloinfo.cloudapp] Inscreva-se em meu treinamento on-line de T-SQL - [http: //bufaloinfo.cloudapp/Cursos/linguagemsql.aspx]

解决方案

以下是来自GitHub的自定义字段供您参考:

SharePoint 2013过滤后的查找字段

github/hasangok/sharepoint-2013-filtered-lookup-field

您可以将源代码与项目进行比较。

最好的问候,

Dennis

Hi,

I'm implementing a custom field type following the blog post atwww.stuartroberts/index.php/2012/10/03/enhanced-lookup-field-part-1/ and making some customizations.

It works perfectly when used through sharepoint UI.

However, when I try to recover the field value by code, I always receive null.

It's not totally a surprise: The explanation on the above article uses a hidden field to store a customization on the value, it's not a surprise that the field itself is empty.

I would like to avoid this empty behavior on the code. Is there some property or method that I should override on my custom field type to customize the retrieval of the actual field value?

Thank you!

Dennes

Dennes [bufaloinfo.cloudapp] Inscreva-se em meu treinamento on-line de T-SQL - [bufaloinfo.cloudapp/Cursos/linguagemsql.aspx]

解决方案

Hi,

Here is a custom fieldfrom GitHub for your reference:

SharePoint 2013 Filtered Lookup Field

github/hasangok/sharepoint-2013-filtered-lookup-field

You can compare the source code with your project.

Best Regards,

Dennis

更多推荐

创建自定义字段类型

本文发布于:2023-07-14 22:08:39,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1107301.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:自定义   字段   类型

发布评论

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

>www.elefans.com

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