Solved

Launch Attachment in notes 6.0 Edit Mode automatically on form opening

Posted on 2004-04-21
5
764 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

For users on the Lotus Notes 8 Standard client, this article provides information on checking the Java Heap size and adjusting it to half of your system RAM in attempt to get the Lotus Notes 8.x Standard client to run faster.  I've had to exercise t…
Notes Document Link used by IBM Notes is a link file which aids in the sharing of links to documents in email and webpages. The posts describe the importance and steps to create a Lotus Notes NDL file in brief.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

763 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

10 Experts available now in Live!

Get 1:1 Help Now