如何将自定义任务表单(InfoPath)重新发布到SharePoint 2010状态机工作流 [英] How to REpublish Custom Task Forms (InfoPath) to SharePoint 2010 State Machine Workflows
问题描述
我是SharePoint的新手.抱歉,如果我的问题的答案很明显.
I am new to SharePoint. Sorry if answer to my question is obvious.
- 我已经在InfoPath中创建了自定义任务表单,并将其发布(文件/发布/网络位置[表单模板路径和文件名='MYPROJECT/Forms/ApprovalForm.xsn';表单模板名称='ApprovalForm'),在下一个窗口中,我根据文章 http://www.codeproject.com/Articles/195348/SharePoint-2010-State-Machine-Workflows-with-Custo .
- 之后,我添加了模块Forms,并从现有项目中添加了ApprovalForm.xsn.
-
我的xml文件: Elements.xml
- I've create Custom Task Form in InfoPath and publish it (File/Publish/Network Location [Form Template Path and filename='MYPROJECT/Forms/ApprovalForm.xsn'; Form template name='ApprovalForm'], in the next window I've cleared Public URL according to the article http://www.codeproject.com/Articles/195348/SharePoint-2010-State-Machine-Workflows-with-Custo).
- After it I've added module Forms, and added ApprovalForm.xsn from the existing items.
My xml files: Elements.xml
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<Workflow
Name="Order New Server"
Description="My SharePoint Workflow"
Id="482cbc86-b717-4981-a49a-3cf4c89e9399"
CodeBesideClass="Myproj.OrderNewServer.OrderNewServer"
CodeBesideAssembly="$assemblyname$"
TaskListContentTypeId="0x01080100C9C9515DE4E24001905074F980F93160">
<Categories/>
<AssociationData><Data></Data></AssociationData>
<MetaData>
<AssociationCategories>List</AssociationCategories>
<Task2_FormURN>urn:schemas-microsoft-com:office:infopath:ApprovalForm:-myXSD-2012-03-09T14-11-55</Task2_FormURN>
<StatusPageUrl>_layouts/WrkStat.aspx</StatusPageUrl>
</MetaData>
</Workflow>
</Elements>
Feature.Template.xml:
Feature.Template.xml:
<?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" Receiverlass="Microsoft.Office.Workflow.Feature.WorkflowFeatureReceiver">
<Properties>
<Property Key="GloballyAvailable" Value="true" />
<Property Key="RegisterForms" Value="Forms\*.xsn"/>
</Properties>
</Feature>
我的表单工作正常,但是当我进行更改并重新发布时,它不会更新(我看到的是旧表单). 我尝试过的:
My form work fine, but when I make changes and republish it, it doesn't update (I see old form). What I tryed:
- IISReset
- 清除IE中的所有cookie和缓存
- 撤回解决方案,重新启动VS2010,重新启动计算机.
- 更改程序集编号,guid.
我没有主意,该如何尝试通过更改重新发布我的表单.
I have no ideas, what can I try for republish my form with changes.
预先感谢您的任何建议.
Thank you in advance for any suggestions.
PS:对不起,我的写作.英语不是我的母语.
PS: sorry for my writing. English is not my native language.
PPS:当我将新表单保存到新位置并将其添加到项目中时,它可以工作.
PPS: when I save new Form to new location and add it to the project, it works.
推荐答案
我发现了如何重新发布更改.但是它似乎更像是拐杖而不是解决方案,但是它可以工作:重新发布InfoPath表单后,我从项目中删除文件(在Solution Explorer中为ApprovalForm.xsn上的DEL),然后将其再次添加. (添加/现有项目).然后重新部署!哇!
I've found how can I republish changes. But it seems more like crutch than solution, but it works: After republishing InfoPath form, I delete file from project (DEL on ApprovalForm.xsn in Solution explorer) and after it add it again. (Add/Existing Item). And then redeploy! Hurray!
这篇关于如何将自定义任务表单(InfoPath)重新发布到SharePoint 2010状态机工作流的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!