我试图找出如何使用Sharepoint 2010工作流程的自定义Infopath表单.我已经阅读了大约一百万个关于如何执行此操作的教程,但我总是收到“工作流模板为此页面指定了没有FormURN”.错误.
我使用Visual Studio项目来部署解决方案.我有一个模块,在“Forms”文件夹中包含.XSN表单,当然还有工作流本身.
经过大量的谷歌搜索,我认为这些设置应该是正确的:
我的表单模块def:
<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<Module Name="OPF" Url="FormServerTemplates" RootWebOnly="TRUE" xmlns="http://schemas.microsoft.com/sharepoint/">
<File Path="Travel.xsn" Url="Travel.xsn" Type="GhostableInLibrary" />
</Module>
</Elements>
我的工作流程def:
<?xml version="1.0" encoding="utf-8" ?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<Workflow
Name="Godkjenning av timelister"
Description="My SharePoint Workflow"
Id="d92ce465-4fbd-46ee-9e44-ff0320d2bb75"
TaskListContentTypeId="0x01080100C9C9515DE4E24001905074F980F93160"
CodeBesideClass="OPFWorkflowTest2.Godkjenning_av_timelister.Godkjenning_av_timelister"
InstantiationUrl="_layouts/IniWrkflIP.aspx"
CodeBesideAssembly="$assemblyname$">
<Categories/>
<MetaData>
<AssociationCategories>List</AssociationCategories>
<MetaData>
<Instantiation_FormURN>urn:schemas-microsoft-com:office:infopath:Travel:-myXSD-2005-10-21T21-12-27</Instantiation_FormURN>
</MetaData>
<StatusPageUrl>_layouts/WrkStat.aspx</StatusPageUrl>
</MetaData>
</Workflow>
</Elements>
我的特色def:
<?xml version="1.0" encoding="utf-8" ?>
<Feature xmlns="http://schemas.microsoft.com/sharepoint/"
ReceiverAssembly="Microsoft.Office.Workflow.Feature, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"
ReceiverClass="Microsoft.Office.Workflow.Feature.WorkflowFeatureReceiver">
<Properties>
<Property Key="GloballyAvailable" Value="true" />
<Property Key="RegisterForms" Value="Forms\*.xsn" />
</Properties>
</Feature>
我已将Infopath的表单发布为“管理员批准的表单模板”.部署Visual Studio解决方案后,表单显示在“管理中心 – >管理表单模板”列表中,并标记为“工作流已启用=是”.无论我如何在工作流程中使用表单,我都会收到No FormURN错误.例如,如果我尝试将它与任务一起使用.
我试过的其他事情:
– 使用Infopath 2007和2010
– Infopath表单上的安全性是“域名”
– 发布表单时,备用访问路径为空
– 使用两个完全独立的环境
– XML文件中不同设置的无限组合
似乎有些人设法让这个工作,但无论我做什么它都不适合我.
这是一个用各种解决方案讨论这个问题的链接(对我来说不起作用):
http://social.msdn.microsoft.com/Forums/en-US/sharepoint2010programming/thread/fac26787-1729-46c8-9021-80652b3734c8
只能在Stack Overflow上列出1个链接…第一篇文章.典型…
所以,如果那里有任何Sharepoint专家,请帮我解决这个问题!这是让我质疑整个产品的事情!
最佳答案 在与VS 2010工作流程相关联后,我可以看到InfoPath表单,请在我的博客上找到以下文章来验证发布InfoPath表单,如果您需要任何帮助来解决上述问题,请告诉我.
http://sumansharepoint.blogspot.com/2008/05/points-to-remenber-when-designing.html
InfoPath 2007和2010表单的这些步骤相同.
请在下面找到我的feature.xml和elements.xml文件
Workflow.xml
Name =“MyWorkflow” – >
名单
<Task0_FormURN>urn:schemas-microsoft-com:office:infopath:ApprovalForm:-myXSD-2011-01-13T09-41-32</Task0_FormURN>
<StatusPageUrl>_layouts/WrkStat.aspx</StatusPageUrl>
</MetaData>
的Feature.xml
我没有在feature.xml代码中看到元素清单条目,请验证.