betaWags
asked on
Launch Attachment in notes 6.0 Edit Mode automatically on form opening
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.
Look at the Form Properties, go to the 3rd tab (launch), Auto Launch and set it to First OLE Object
ASKER
the above suggestions launch the attachment in a read/open mode not the new notes 6 edit attachment mode.
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
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
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
~Hemanth