您好,
我正在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
更多推荐
创建自定义字段类型
发布评论