Selected document in another Lotus Notes frame

20 pts.
Tags:
Lotus Notes
Lotus Notes 8.5
Lotus Notes administration
Microsoft Windows XP
Hi All, I need to modify Notes such a way that user is able to tag the individual mail in his folders/view with some identifier. So to achieve this, I have created custom form where it contains text input and one button that does the whole. I have modified the "Interrion MailFS" frameset so that custom form is displayed just below the preview frame.  Now my issue is I am not able to access the selected document in Inbox(any other folder/view) when I click on button.  to get the selected document i use  Dim oNotesUIWokSpace As NotesUIWorkspace Set oNotesUIWokSpace = New NotesUIWorkspace  oNotesUIWokSpace.CurrentDocument, which gives me blank document. Also oNotesUIWokSpace.CurrentView is nothing in this case.  I am just speculating, but is this behaviour is beacuse Custom form and Folder/View are in different Frames? Can I get any suggestion on this?  TIA

Software/Hardware used:
Lotus Notes 8.5 on Windows XP

Answer Wiki

Thanks. We'll let you know when a new response is added.

Yep you’re right.

CurrentDocument on NotesUIWorkSpace will give you the open document on the screen but not if you are in an other frame.

I suggest that you work in the Inbox view/folder with a DialogBox called by an action button. Your custom form would be then display in your dialogBox.

From the Inbox view/folder, you could know wich documents are selected with the Documents method of NotesUIView class

set uiview = NotesUIWorkSpace.CurrenView
set docCollection = uiview.Documents

Then you could iterate in all the documents in the collection in order to add your tag field with what was inputed in your DialogBox

Whay do you think ? Hope you’ll understand, sorry for my poor english :-(

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • TheSetup
    Hi there How about adding the following lines to your code. I don't know if you're tried it but it is worth a try Call oNotesUIWokSpace.SetTargetFrame( "TheNameOfFrameToSetFocus" )
    10 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following