?
Solved

Saving a form with OLE control added two attachments with prefix STG and EXT

Posted on 2011-03-18
3
Medium Priority
?
804 Views
Last Modified: 2013-12-18
Hi,

I copied and pasted the default Message form and renamed it to MyForm. On MyForm, I added two objects: a Field called Played and a customer OLE control (Test.OCX). On MyForm’s PostOpen event, I updated Played to “1”, and called Save to save the current document. Looking at the inbox again, the size of the message increase, and when I open the message via iNotes, I can see two more attachments, with prefix STG and EXT, were added. How can this be avoided?

I am using Domino8.5.1 and Lotus Notes 8.5.1. I made sure the Database option “Display images after loading” is not enabled.

Any help will be appreciated.

Thanks.
0
Comment
Question by:mwong2
[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
  • 2
3 Comments
 
LVL 46

Expert Comment

by:Sjef Bosman
ID: 35171399
You didn't supply code, so I'd have to guess. If all you want is to update 1 field, save the back-end document (NotesDocument.Save) and not the front-end.

An example:

Set doc= source.Document
doc.Played= "1"
doc.Save True,False,True
0
 

Author Comment

by:mwong2
ID: 35183100
Yes, this is what I put in the form's PostOpen event.

Set doc= source.Document
doc.Played= "1"
doc.Save True,False,True

However, after doc is saved, the size of the message increased. Opening the same email message via iNote shows two new attachments: STG20689 and EXT57683. I tried to open them using a binary editior, it looks to me Notes is trying to save the OCX control in binary format in STG20689.

 If I remove the custom OCX control from the form, replace the mail template, and open the message in Lotus Notes again, the size of the message stays the same.

Is there any way I can prevent Notes saving the OCX control as a binary attachment?

Thanks!

0
 
LVL 46

Accepted Solution

by:
Sjef Bosman earned 2000 total points
ID: 35185718
Could you try with the code in the QueryClose event?

If that doesn't work, the next idea would be to open the document a second time, but via a set of different objects (a different NotesDatabase object, NotesDocument.GetDocumentById, then Save that document instead of the current one)
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
In this post we will learn different types of Android Layout and some basics of an Android App.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

762 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