Hi I have a File Upload Control in my Form.
I want user to be able to upload only one file at a time.
However if user wants to change the uploaded file with a new file then already uploaded file should be deleted automatically.
Hope for you Response
Thanks in Advance
Subject: RE: Limiting document to one attachment
I imagine you’re trying to limit the document to one attachment. Is this solely for the Notes client, a web browser, or both. The handling will be different for the two clients.
For the web, having a single upload control is the first part. The second part is removing an original attachment (when a new one is added). This is handled in the WebQuerySave agent.
For a notes client, it’s likely best to save and close the document and then using LotusScript have a PostSave or Queryclose event remove the original attachment. You might also restrict access to the actual field. There are many ways to do this in the client and it depends on what you’re trying to accomplish.
Marc Resnick
Gear Up Technologies
Subject: RE: Limiting document to one attachment
Thanks Marc for Replying.I hope when you will go thru this explanation below you will get my point
I’m trying it in Notes Client but the thing is when I click on the attachemt icon next to RTF It opens a dialog where i can select a file,
Now without saving the document if i again click the attachment icon it will gain open the dialog windown where i can select aonther file this time i want the earlier file to be removed from the RTF and new file should appear over there. This is the way i want it to be.
Subject: This may be a job for @Formula
This may be a job for @Formulas… @Attachments can help as will clearing the field after or before a new attachment is inserted…