Solved

Launch Attachment in notes 6.0 Edit Mode automatically on form opening

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

I thought it will be a good idea to make a post as it will help in case someone else faces these issues. I trust this gives an idea how each entry in Notes.ini can mean a lot for the Domino Server to be functioning properly. This article discusses t…
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.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

920 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now