Solved

Launch Attachment in notes 6.0 Edit Mode automatically on form opening

Posted on 2004-04-21
5
781 Views
Last Modified: 2013-12-18
I need to write a lotus script that automatically launches an attachment in the new notes 6.0 edit mode when a form is opened.  I know how to launch a file in 'Open/Read' mode (through an @command) but do not know how do so through the new 'Edit' mode.
0
Comment
Question by:betaWags
5 Comments
 
LVL 24

Expert Comment

by:HemanthaKumar
ID: 10878545
If you check the launch property (3rd tab) in the form properties.. it gives you an option to launch first attachment

~Hemanth
0
 
LVL 46

Expert Comment

by:Sjef Bosman
ID: 10878554
Look at the Form Properties, go to the 3rd tab (launch), Auto Launch and set it to First OLE Object
0
 

Author Comment

by:betaWags
ID: 10878765
the above suggestions launch the attachment in a read/open mode not the new notes 6 edit attachment mode.
0
 
LVL 24

Expert Comment

by:HemanthaKumar
ID: 10878870
If it is a OLE Object then you can use options on when this object is to be launched.. one of the option is during edit !!

For attachment there is no such option..

Using LS you can control this to an extent

eg:

Set rtitem = doc.GetFirstItem( "Body" )
If ( rtitem.Type = RICHTEXT ) Then
  ' check for attachment in Body item
  Set object = rtitem.GetEmbeddedObject( "word.doc" )
  If ( object Is Nothing ) Then
    ' check for attachment in rest of document
    Set object = doc.GetAttachment( "word.doc" )
  End If
End If
if not object is nothing then
   object.DoVerb( "Edit" )        ' Or use object.DoVerb( "Open" )
end if
0
 
LVL 31

Accepted Solution

by:
qwaletee earned 125 total points
ID: 10933768
There's no way.  Unfortunately, the edit interface is NOT exposed.

The way it actually works is that when you click edit, the open form remembers a value for the detached file location.  When the form closes, it checks if the file exists at that location with a difffernt size or date-time, and if so, re-attaches the file prior to saving.  (If you close without saving, and made no other changes, it checks the same way to see if it shoudl consider it as if you changed the document.)

That hidden value is not exposed anywhere, so you can't check it or set it.  And the form has no method equivakent to the user clicking eidt on teh attachment.

Note that this setup can cause all sorts of problems.  I know users who closed the window before saving the file, not realizing that the file would never get saved back to Notes -- and that Notes will in fact delete the file then next time it starts.  Bye bye hard work.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
If no attachment, dont send email - lotus notes/vba 10 387
VBA Lotus notes 2 199
Add code to Lotus Notes view column 2 129
Scan to Email - HP 477 Printer and Lotus Notes 8 84
For Desktop Techs: How to retain a user's Notes configuration data when swapping out the end user's computer. (Assuming that you are not upgrading to a completely different version of Notes client) All you need to do is: 1) install Notes o…
This article covers general Notes 8.5 troubleshooting information including recreating the Notes\Data folder.

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question