Solved

Launch Attachment in notes 6.0 Edit Mode automatically on form opening

Posted on 2004-04-21
5
784 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
how to copy mail box rules from one nsf to another 9 192
How do I delete a user in IBM Lotus Notes 2 210
IBM Domino web server 5 72
Code for extraction to mkdir folder 5 78
IBM Notes offer Encryption feature using which the user can secure its NSF emails or entire database easily. In this section we will discuss about the process to Encrypt Incoming and Outgoing Mails in depth.
This article covers general Notes 8.5 troubleshooting information including recreating the Notes\Data folder.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

756 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