Question : Getting selected date from a calendar view in Lotus Notes

Hi,

I designed a "calendar" type view for a project. Users want to create documents in this view for the dates they prefer. They want to click on a date in the view then create document. Document should get that date and copy to a field same as in Notes Calendar application. How will I get the date selected by user in the view?
Thanks for any help...

Answer : Getting selected date from a calendar view in Lotus Notes

Next time give the full specification in the first post, or at least in the second one.

Here you are:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
Sub Regiondoubleclick(Source As Notesuiview)
      Dim w As New NotesUIWorkspace
      Dim db As NotesDatabase
      Dim newDoc As NotesDocument
 
      Set db = source.view.Parent
      Set newDoc = New NotesDocument( db )
 
      'Assign values to all fields that you want to have the default value when the doc opens:
      newDoc.Form = "YourFormName" 'this is important, if you don't know open in Notes client the Document properties of one of existing docs, go to second tab and you'll see all field names and values
 
      newDoc.YourDateFieldName = source.CalendarDateTime
      '...
 
      Call newDoc.Save( True, False )
      Call w.EditDocument( True, newDoc, False, "", False, False )
 
End Sub
Random Solutions  
 
programming4us programming4us