繁体   English   中英

SharePoint列表的多个显示表单

[英]Multiple display form for SharePoint list

我正在为_layouts文件夹运行的SharePoint 2010构建自定义.net应用程序。 它具有多个调查表(aspx),并且都在一个列表中创建记录。 我想在SP视图中单击编辑项链接时打开相应的表单。

可能吗 ?

是的,这是可能的。 您可以为列表创建内容类型,然后将formurl元素添加到内容类型中,如下所示

<XmlDocuments> 
<XmlDocument  NamespaceURI="http://schemas.microsoft.com/sharepoint/v3/contenttype/forms/url"> 
  <FormUrls xmlns="http://schemas.microsoft.com/sharepoint/v3/contenttype/forms/url"> 
   <Display>_Layouts/xyzCorp/BZH_xMgt.aspx</Display> 
   <Edit>_Layouts/xyzCorp/BZH_xMgt.aspx</Edit> 
   <New>_Layouts/xyzCorp/BZH_xMgt.aspx</New> 
 </FormUrls> 
</XmlDocument> 

(请参阅http://msdn.microsoft.com/zh-cn/library/ms473210(v=office.12).aspx

我相信,但未经测试,您的页面将在查询字符串中收到ID = xxx。


我建议不要构建自定义表单模板,而不是在_layouts中构建自定义应用程序页面,该模板允许您重用许多标准SharePoint功能:

  • 标准字段控件(无需执行CRUD)
  • 重用标准功能,例如保存,取消,版本控制
  • 重用您现有的品牌
  • 使用功能区向表单添加功能

有关示例,请参见http://blogs.syrinx.com/blogs/sharepoint/archive/2008/11/10/custom-item-layouts-using-custom-form-templates.aspx

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM