Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

AttachmentField Delete Event

$
0
0

I posted the question couple days ago asked for how to refresh the attachmentfield. Now, it is more closed when I set the controlmode="Edit" Which give me the delete option the same as out box forms. However, I received a error when I save the item. I think you may need to put the delete attachment in code because when I add attachment via AttachOK JavaScript function, it works fine. However, I do not know when I click the Delete link, what even it is calling??? Please help me. Many thanks.

When I click the 'delete; a file. It popup the same message as the out box forms.

However, when I save the form, I got the following error. I cannot debug it because the error comes before any code. I cannot find the variable "attachmentRowId" in my code.

Failed to get value of the "Attachments" column from the "Attachments" field type control.  See details in log. Exception message: Specified argument was out of the range of valid values.
Parameter name: attachmentRowId.

                    


Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>