Solved

Launch Attachment in notes 6.0 Edit Mode automatically on form opening

Posted on 2004-04-21
5
788 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone 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

You’ve got a lotus Domino web server, and you have been told that “leverage browser caching” is a must do. This means that we have to tell the browser everywhere in the web to use cache. In other words, we set (and send) an expiration date in the HT…
Article by: Rob
Notes 8.5 Archiving Steps and Tips This article covers setting up a Notes archive, and helps understand some of the menu choices making setting up and maintaining a Notes archive file easier.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

738 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