On 2010-07-23, at 1:19 PM, David LeBer wrote:

> 
> On 2010-07-23, at 12:50 PM, Andrew R. Kinnie wrote:
> 
>> 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())
> 
> Well that will update an ajax update container with the id 
> 'attachmentUploadContainer'
> 
>> Also, I don't know where the default css is.
> 
> Because ERAttachmentFlexibleUpload is based on AjaxFlexibleFileUpload the 
> default css is in the Ajax framework: default_ajaxupload.css
> 
>> 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.
> 
> It is not clear what you are doing here. How and where are you deleting the 
> attachment again?
> 
> Have you looked at using ERAttachmentFlexibleEditor? It uploading adding 
> *and* removing/replacing attachments.

OK, that makes no sense... trying again: "It supports uploading *and* 
removing/replacing attachments."

> 
>> I assume there is someplace someone could point me to.
>> 
>> Thanks
> 
> The bindings for the various FlexibleUpload (which I just realized compresses 
> to FU... oops) components are documented in their respective java docs.

;david

--
David LeBer
Codeferous Software
'co-def-er-ous' adj. Literally 'code-bearing'
site:   http://codeferous.com
blog:   http://davidleber.net
profile:        http://www.linkedin.com/in/davidleber
twitter:        http://twitter.com/rebeld
--
Toronto Area Cocoa / WebObjects developers group:
http://tacow.org




 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to