Rich Text Lite - Dialog Box

I’m working with a temp. Document which I display (using Lotus Script) to prompt for various information, including one Rich Text Lite field (attachment only).

OKClicked = ws.DialogBox(“dlg”+ActionTxt,True,False,False,False,False,False,“Work Request - New " + ActionTxt + " Information”,tmpDoc,True,False,True)

tmpDoc.Form = “Action Details” ’ Set the form so we can view the document

Call tmpDoc.Save(False,False) ’ Required for RichText field.

The dialog box works as expected, however when I get the tmpDoc back instead of the Rich text field (SafetyMSDS) item having the attachment, it seems to be stored in “$File”

I want to copy this information to another document, so getting the file is kinda important. I COULD copy $File into the location I want on the final document, but the issue is I want to have different fields with different attachments. IF they are all stored in $File how do I know which $File (could be multiple) goes to which Rich Text Field???

FYI:

When I look at the tmp Document after (I don’r really plan to keep this document - just as a part of my debugging, I saved it to see what’s up)

Help?! What fundamental fact am I missing?

I believe my dialog box is configured to allow new fields and new values? So why is Sunset.jpg not “stored” in SafetyMSDS?

Subject: Rich Text Lite - Dialog Box

This appears at the bottom of the DialogBox method. See the last sentence.

Sharing of field values

This method displays the current or specified document using a different form. This means:

If the form has field names in common with the document, the field values of the document are displayed in the dialog box.

If the user changes the value of any fields in the dialog box and clicks OK, the changes are reflected in the same fields on the document.

If the user enters a value for a field in the dialog box, and the document does not contain a field by that name, the value is added to the document, even if it is not displayed in the form, unless noNewFields is True.

Field sharing is not supported for rich text fields.

Subject: RE: Rich Text Lite - Dialog Box

Hmmm, I knew the first 3. Not sure however, that I’m running into the 4th issue? Or full understand.

tmpDoc is really nothing more than a back end document to me.

I pull information from a couple of documents, display the information to the user so they can fill in some blanks based on what they see (including the rich text field) and then I take the values from the tmpDoc and update the document another document with the values they entered.

I was hoping tmpDoc.SafetyMSDS would have the attached file so I could then copy it.

Therefore is “Field sharing is not supported for rich text fields.” really saying I just won’t be able to pass RT Information back and forth with the dialog box??

Subject: RE: Rich Text Lite - Dialog Box

You could probably trap the save on the dialog box and copy the rich text item directly. If you do that, you may want to make it a different temporary document which you throw away afterwards, as Notes isn’t all that good at figuring out things like “I am copy an attachment to a document which already has that same attachment”.

Subject: RE: Rich Text Lite - Dialog Box

Yeah, I will give this a try. Thanks.