Mark and Mark, Attachments are odd beasts. They are not something simple like an integer or a character string.
In the filter run if condition, we do not compare file content. What we compare when you compare attachements is file names. So, if you have file x attached, and you attach a new file x, you will get the DB.attach value matching the attach value because the filename is the same. If the filename was different, the values would not match. In theory, we could go further and compare the file name and file size. But, they could still be the same and the content different. We do not do a file content comparison. That would be impractical, unweildy, and a performance nightmare. For your tests, the compare I would use is TR.attach != $NULL$ This means a value was specified for the attachment field. This is a new file being supplied. You have no way to prove whether this file is different or not from the existing file so you better run the workflow you have on the file to be sure. Neither the Windows nor Web client will send a file unless it is new. So, you won't get workflow running because you opened the form and changed some other field. In your example, you are running workflow to explicitly attach a file. This is a new file. Since a file compare is not done, you have to assume that the file is or might be different so you need to process it. No form of checking or compare to see "is it the same file" will work to gaurantee that the file is not different. I hope this helps explain what is happening and why. Doug Mueller -----Original Message----- From: Action Request System discussion list(ARSList) [mailto:[email protected]] On Behalf Of Brittain, Mark Sent: Tuesday, January 05, 2010 7:24 AM To: [email protected] Subject: Re: Attachment replacement - Filter not firing?! Hi Mark I am on ARS 6.3 and have experienced the same thing. Filter will fire when the attachment is first added but not if the attachment is changed or removed. So maybe that is normal. Appreciate you posting the question as we both may learn something from our fellow listers. Mark -----Original Message----- From: Action Request System discussion list(ARSList) [mailto:[email protected]] On Behalf Of Mark Milke Sent: Tuesday, January 05, 2010 9:29 AM To: [email protected] Subject: Attachment replacement - Filter not firing?! Hi there, I have a form with an Attachment Pool that consists of just one Attachment Field. I need to know, when Users change an Attachment. I have a Filter checking: If 'DB.Attach1' != 'Attach1' then do something. This works when I have no attachment and add one. However, when replacing an existing attachment the filter is not firing as if there was no change. Is this considered normal? We're still on ARS 6.3 Mark _______________________________________________________________________________ UNSUBSCRIBE or access ARSlist Archives at www.arslist.org Platinum Sponsor:[email protected] ARSlist: "Where the Answers Are" This e-mail is the property of NaviSite, Inc. It is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential, or otherwise protected from disclosure. Distribution or copying of this e-mail, or the information contained herein, to anyone other than the intended recipient is prohibited. _______________________________________________________________________________ UNSUBSCRIBE or access ARSlist Archives at www.arslist.org Platinum Sponsor:[email protected] ARSlist: "Where the Answers Are" _______________________________________________________________________________ UNSUBSCRIBE or access ARSlist Archives at www.arslist.org Platinum Sponsor:[email protected] ARSlist: "Where the Answers Are"

