par oguruma » 24 Jan 2004 à 10:59
Bien j'ai tenté de résoudre ce pb...En fait quand on intègre deux attachements identiques Notes change le nom du second en lui attribuant un nom aléatoire afin que les ID de référence soient différents.je te joins les notes techniques de Lotus à ce proposTechnote Lotus Notes Knowledge Base Published. This document is based on the following Software Problem Report(s): About SPRsSPR Number:RSAR32GV7E SPR Status: Duplicate Report Fixed in: Not Applicable@AttachmentNames Does Not Return Correct List of Attached FilesProblem:In Notes, you have a macro that uses @AttachmentNames to list the file names given to detached attachments. If, however, a file is attached twice, the second occurrence of the file name displays as gibberish. For example, if you attach C:\CONFIG.SYS, C:\AUTOEXEC.BAT, and C:\CONGFIG.SYS, the values returned by @AttachmentNames might be as follows:CONFIG.SYSAUTOEXEC.BATATTWQ7NGInstead of repeating the file name, @AttachmentNames produces a seemingly random text string for the duplicate attachment. Thus it is impossible to determine from this list which file has been attached twice.Solution:This issue has been reported to Lotus Quality Engineering.Supporting Information:Related Documents:© 1997 Lotus Development Corporation, an IBM subsidiary. All rights reserved. Material may not be reproduced or distributed in any form without permission.-----Technote Lotus Notes Knowledge Base Published. This document is based on the following Software Problem Report(s): About SPRsSPR Number:GÖR3MTEJM SPR Status: Researching Fix Fixed in: Not ApplicableWhen Two Attachments Have the Same Name the Second is Assigned a New Name for the Notes Back EndProblem:When you have two attachments with the same name in a Notes Document, the first attachment returns the correct name and the second attachment returns something similar to ATTPLJYX.The NotesEmbeddedObject class' Source property and Name property return the Notes internal attachment name and not the name of the file attachment.If you create an attachment, Notes will check if an attachment with this name already exists in the document.- If there is not an attachment with this name in the document, it will use an internal name (the file attachment name).- If there is an attachment with this name already in the document, Notes will randomly create a name for it because the internal attachment names must be unique in a document.Solution:This issue has been reported to Lotus Quality Engineering and a fix is being researched for the next major release of Notes.Refer to the document titled "@AttachmentNames Does Not Return Correct List of Attached Files" (#137196 ) for information on a related issue.Supporting Information:Steps to reproduce this issue:1. Create a new document in your mailfile.2. Attach the same attachment two times into the rich text field (for example, CONFIG.SYS)3. Save the document, but keep it open.4. Create an agent with following script:Sub Initialize Dim ws As New NotesUiWorkspace Dim doc As NotesDocument Dim rtitem As NotesRichtextItem Set doc = ws.currentdocument.document Set rtitem = doc.GetFirstItem("Body") Forall x In rtitem.embeddedobjects Messagebox x.source End ForallEnd SubRun this agent. It displays the correct filename (CONFIG.SYS) for the first attachment and for the second attachment it displays ATTPLJYX. This means that it returns the Notes internal attachment name and not the real attachment name which will be used when detaching the file manually.Related Documents:@AttachmentNames Does Not Return Correct List of Attached FilesDocument #: 137196 © 2000 Lotus Development Corporation, an IBM subsidiary. All rights reserved. Material may not be reproduced or distributed in any form without permission.
Bien à vous
http://www.dominoarea.org/oguruma/
Les téléphones PORTABLES dans les TGV y en a MARRRE de ces voyageurs qui ne respectent pas les autres ! ARRET DES PORTABLES SVP - Merci
Fumeurs ! respectez les non fumeurs !!!
Fumeurs ! respectez la loi de février 2007 et les lieux publics !!! (ie. hall de gares)