深入浅出SharePoint——在自定义表单中使用上传附件控件

问题描述:

我在自定义表单CNewForm.aspx中添加了webpart,但是在新建Item的时候,点击“Attach File”,系统提示

This form was customized not working with attachement.

我使用IE Developer调试发现Form.js中的UploadAttachment方法中发现线索:部分元素没有定义。

后来根据微软官方的文章http://support.microsoft.com/kb/953271/en-us,进行修改后,保存附件和Fields的值都正常。

但是执行SaveButton.SaveItem方法出错:SPException: The list item was saved, but one or more attachments could not be saved.<br>Could not upload file。

处理办法:

删除此行代码:<SharePoint:FormComponent ID="FormComponent1" TemplateName="AttachmentRows" runat="server"/>

转载于:https://www.cnblogs.com/mingle/archive/2012/12/05/2803194.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值