如何根据当前视图显示特定的编辑表单?(How can I display a specific Edit Form based on the current View?)

编程入门 行业动态 更新时间:2024-10-28 08:30:19
如何根据当前视图显示特定的编辑表单?(How can I display a specific Edit Form based on the current View?)

我在SharePoint Designer中为相同的内容类型创建了一些自定义编辑表单。 有没有办法在SharePoint中本地绑定特定的编辑表单到每个列表视图或用户组,还是我必须写一些东西来处理逻辑?

I have a few custom Edit forms I've created in SharePoint Designer for the same content type. Is there any way to bind a specific edit form to each list view or user group natively in SharePoint, or will I have to write something to handle the logic?

最满意答案

通过javascript修改可以通过elements.xml(场解决方案)绑定到内容类型或列表模板,但是要设置自定义表单(应用程序页面),您必须通过脚本(powershell)执行此操作。

您应该能够遍历列表并只设置编辑表单的URL。 SPContentType对象上有一个EditFormUrl参数,当然还有powershell的等价物。

Modifications through javascript can be bound to content types or list templates through elements.xml (farm solution) however to set custom forms (application pages), you will have to do this through a script (powershell).

You should be able to loop through the lists and just set the URL for the edit-form. There is a EditFormUrl parameter on the SPContentType object and an equivalent will exist for powershell of course.

更多推荐

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

发布评论

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

>www.elefans.com

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