在Visual Studio 2013中打包并发布InfoPath列表表单 [英] Package and publish an InfoPath list form in visual studio 2013

查看:104
本文介绍了在Visual Studio 2013中打包并发布InfoPath列表表单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我正在尝试在Visual Studio中打包和发布信息路径列表表单.我正在使用SharePoint 2013 Enterprise,InfoPath Designer 2013和Visual Studio Ultimate 2013

我已经为自定义列表创建了一个InfoPath表单.我正在尝试将表单和自定义列表打包在Visual Studio 2013中.它们似乎都很好地从Visual Studio发布到了我的SharePoint网站,但是当我们转到列表并单击添加"时, 项目"它会转到默认表单,而不是我的InfoPath列表表单.  

我知道是否可以将InfoPath表单直接从InfoPath设计器直接发布到SharePoint网站.  我想我可能没有在Visual Studio中执行某个步骤,但我不确定那是什么.

在Visual Studio中,我创建了一个空模块,并包含以下文件:

template.xsn
newifs.aspx
editifs.aspx
displayifs.aspx
CustomeInfoPathList

这是我的Elements XML外观:

<?xml version ="1.0" encoding ="utf-8"?>
< Elements xmlns ="http://schemas.microsoft.com/sharepoint/">
  <模块名称="CustomeInfoPathList"; Url =列表/CustomeInfoPathList">
    <文件路径="template.xsn"; Url ="Item/template.xsn";类型="GhostableInLibrary"; />
    <文件路径="displayifs.aspx"; Url ="Item/displayifs.aspx";类型="GhostableInLibrary"; />
    <文件路径="editifs.aspx"; Url ="Item/editifs.aspx";类型="GhostableInLibrary"; />
    <文件路径="newifs.aspx"; Url ="Item/newifs.aspx";类型="GhostableInLibrary"; />
  </模块>
</Elements>

如果您对此有任何建议,我们将不胜感激.

Thx!


I'm trying to package and publish an infopath list form in visual studio. I am using SharePoint 2013 Enterprise, InfoPath Designer 2013 and Visual Studio Ultimate 2013

I've create an InfoPath form for a custom list.  I'm trying to package the form and the custom list in Visual Studio 2013.  They both seem like they publish out fine from Visual Studio to my SharePoint site but when we go to the list and click "Add Item" it goes to the default form and not my InfoPath list form.  

I know if I simply publish the InfoPath form directly to the SharePoint site from InfoPath designer if works fine.  I assume I'm missing a step in Visual Studio, possibly in my feature but I'm not sure what that might be.

In Visual Studio I've created an empty module and included the following files:

template.xsn
newifs.aspx
editifs.aspx
displayifs.aspx
CustomeInfoPathList

Here's what my Elements XML looks like:

<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <Module Name="CustomeInfoPathList" Url="Lists/CustomeInfoPathList">
    <File Path="template.xsn" Url="Item/template.xsn" Type="GhostableInLibrary" />
    <File Path="displayifs.aspx" Url="Item/displayifs.aspx" Type="GhostableInLibrary" />
    <File Path="editifs.aspx" Url="Item/editifs.aspx" Type="GhostableInLibrary" />
    <File Path="newifs.aspx" Url="Item/newifs.aspx" Type="GhostableInLibrary" />
  </Module>
</Elements>

If you have any advice on this I'd appreciate it. 

Thx!

推荐答案

请检查是否可能

https://blogs.technet.microsoft.com/sharepointdevelopersupport/2013/09/06/how-to-deploy-infopath-list-forms-for-an-external-list-using-visual-studio-2012 -solution-package/

https://blogs.technet.microsoft.com/sharepointdevelopersupport/2013/09/06/how-to-deploy-infopath-list-forms-for-an-external-list-using-visual-studio-2012-solution-package/


这篇关于在Visual Studio 2013中打包并发布InfoPath列表表单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆