簡體   English   中英

具有自定義信息路徑表單的Sharepoint 2010工作流

[英]Sharepoint 2010 workflow with custom infopath form

我試圖弄清楚如何在Sharepoint 2010工作流程中使用自定義Infopath表單。 我已經閱讀了大約一百萬本有關如何執行此操作的教程,但最終總是收到“該工作流模板未為此頁面指定FormURN的信息”。 錯誤。

我使用Visual Studio項目來部署解決方案。 我有一個“ Forms”文件夾中包含.XSN表單的模塊,當然還有工作流本身。

經過大量的谷歌搜索后,我認為這些設置應該是正確的:

我的表單模塊定義:

<?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>

我的工作流程定義:

<?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>

我的功能定義:

<?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/zh-CN/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代碼中看到元素清單條目,請確認這一點。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM