How to Clone an Infopath Form 如何复制一个新的 eForm/Infopath Form ?

How to Clone an Infopath Form

From : http://vspug.com/michael/2007/06/28/how-to-clone-an-infopath-form/

 

(migrated post from November 21st, 2006) 

We've faced the situation that we had to clone an existing managed InfoPath form. If you just copy it and work on it, you'll face problems whenver a user is working with both forms on the same machine, since InfoPath will tell you that the current form is already on the machine (Cache), however in (most likely) another version.

In order to really "clone" the form, you have to change the namespace. My research did not give me any useful resources in order to accomplish this task efficiently – I did not even find a decent description on what I have to do.

Well, looking at it now, it is rather simple to change the namespace of an infopath form:

Original Namespace: 
http://schemas.microsoft.com/office/infopath/2003/myXSD/2004-03-09T14-09-40

Target Namespace: 
http://advaltech.net/sharepoint/infopath/it/adressen

What to do:

ú         Deploy the files contained in the XSN to a directory

ú         If managed InfoPath form: Just take the project's directory

ú         In case of a "regular" form: Deploy to directory and extract files

ú         Locate the "my"-Namespace Declaration in the manifest.xsf file and copy it
For example:

ú         Scan all files for this Namespace and replace it with your new namespace

ú         I used notepad instead of vs.net, old fashioned but you can be sure that you really just find&replace J

ú         Re-Create the cloned form by Right-Clicking on the manifest file and enter design mode

ú         For managed Forms: just open the project and the InfoPath should show up normally again. Well, that's it, simple, isn't it!? 

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值