I am trying to use ERAttachmentFlexible upload in our app. We have a communication entity, which has up to 5 attachments of type ERAttachment. (attachment1, attachment2 . . ., etc.) all are foreign keys to the ERAttachment.
I am trying to use ERAttachmentFlexibleUpload inside a subcomponent which itself is contained in an AjaxModalDialog. This seems to work for the first attachment I upload, using relatively few bindings
ERAttachmentFlexibleUpload : ERAttachmentFlexibleUpload { attachment = attachmentItem; editingContext = communication.editingContext; finishedFunction = "new function() { attachmentUploadContainerUpdate() }"; selectFileButtonClass = "prettyButton"; selectFileLabel = "Choose File"; }
I am not a _javascript_ whiz to say the least, so I am having difficulty figuring out what the _javascript_ is doing and where it is (e.g. attachmentUploadContainerUpdate())
Also, I don't know where the default css is.
The main problem is that when I delete an attachment (by setting it to null in the communication's edit component), then I want to add another attachment, the old filename appears, with a clear link below it. I have no idea why that is, or where that is happening.
I assume there is someplace someone could point me to.
Thanks
Andrew |