六狼论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博账号登陆

只需一步,快速开始

搜索
查看: 522|回复: 0

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

[复制链接]

升级  32%

4

主题

4

主题

4

主题

童生

Rank: 1

积分
16
 楼主| 发表于 2013-1-6 05:20:06 | 显示全部楼层 |阅读模式
深入浅出SharePoint——在自定义表单中使用上传附件控件

<div class="postText"><div id="cnblogs_post_body">问题描述:
我在自定义表单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"/>
您需要登录后才可以回帖 登录 | 立即注册 新浪微博账号登陆

本版积分规则

快速回复 返回顶部 返回列表