相關(guān)搜索: 表單
問(wèn)題描述:
我在自定義表單CNewForm.aspx中添加了webpart,但是在新建Item的時(shí)候,點(diǎn)擊“Attach File”,系統提示
This form was customized not working with attachement.
我使用IE Developer調試發(fā)現Form.js中的UploadAttachment方法中發(fā)現線(xiàn)索:部分元素沒(méi)有定義。
后來(lái)根據微軟官方的文章http://support.microsoft.com/kb/953271/en-us,進(jìn)行修改后,保存附件和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"/>
本帖由“我愛(ài)分享網(wǎng)http://www.52share.net”收集整理于互聯(lián)網(wǎng)
詳細出處參考:http://www.52share.net/thread-27954-1-4.html
聯(lián)系客服