SharePoint Designer 2010 列表表单
SharePoint 2010 Designer 列表表单可移植或自定义呈现模板仍然是自定义列表表单的最佳方式吗?由于企业许可问题,InfoPath 2010 是不可能的。
问候, 镍丁
Are SharePoint 2010 Designer List Forms portable or custom rendering templates still the best way to customize the List Forms? InfoPath 2010 is out of question because of enterprise licensing issues.
Regards,
Nitin
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这取决于您的定制程度。您可以使用标准 DataFromWebPart 和自定义 XSLT 实现很多功能,但如果您想添加自定义控件,您将遇到问题(如此处突出显示 http://www.chaholl.com/archive/2010/01/26/将-dataform-web-part-扩展至allow-custom-field-controls.aspx)。
对于广泛的自定义,最好的选择是创建自定义 Web 部件并将其包含在编辑表单中。请记住,字段控件会自动从 SPContext 对象中获取并更新内容,因此调用 SPContext.Current.Listitem.Update() 足以将所有字段控件的值保存在自定义 Web 部件中。当然,如果您也在那里使用标准的 asp.net 控件,则需要手动获取并设置它们的值。
It depends on the extent of your customization. You can achieve quiate a lot with the standard DataFromWebPart and custom XSLT but if you want to add custom controls you'll run into problems (as highlighted here http://www.chaholl.com/archive/2010/01/26/extending-the-dataform-web-part-to-allow-custom-field-controls.aspx).
For extensive customization the best bet is to create a custom webpart and include it on the edit form. Bear in mind that field controls automatically pick up and update content from the SPContext object so calling SPContext.Current.Listitem.Update() is enough to save the values of all field controls in your custom webpart. Of course if you're using standard asp.net control on there as well you'll need to pickup and set their values manually.