Skip to main content
This forum is closed to new posts and responses. New discussions are now taking place in the IBM Developer Answers forum.
 
developerWorks
AIX and UNIX
Information Mgmt
Lotus
New to Lotus
Products
How to buy
Downloads
Live demos
Technical library
Training
Support
Forums & community
Events
Rational
Tivoli
WebSphere
Java™ technology
Linux
Open source
SOA and Web services
Web development
XML
My developerWorks
About dW
Submit content
Feedback



developerWorks  >  Lotus  >  Forums & community  >  Notes/Domino 6 and 7 Forum

Notes/Domino 6 and 7 Forum

developerWorks

  

PreviousPrevious NextNext


Greg x P 21.Apr.05 04:49 PM a Web browser
Domino Designer 6.5.2 FP1 Windows XP


I have been trying to create a training form, that marks attendees as being 'busy' all day on their calendar. Basically, I created an all day event, and printed out all the variables used, with the values that they were set as. Would think that would work, but the all day event is not showing up on the calendar. The calendar only has @IsAvailable(CalendarDateTime), and if you see my code below, it is in the list. I can see the form in the 'all documents' view, and I can see that field with the correct date value in the field. Am I missing variables? I don't think so. Why wouldn't this show on the calendar if i set the start date, end date, and calendar date time? Any help would be appreciated.
-----------------------------------------------
Set maildb = session.GetDatabase(strMailServer,strMailFile)
Set maildoc = New NotesDocument( maildb )
maildoc.From = session.UserName
maildoc.~$Alarm = 1
maildoc.~$AlarmOffset = -1440
maildoc.~$LangPrincipal = ""
maildoc.~$AltPrincipal = session.UserName
maildoc.~$BusyName = session.UserName
maildoc.~$BusyPriority = "1"
maildoc.~$CSVersion = 2
maildoc.~$PublicAccess="1"
maildoc.~$UpdatedBy = session.UserName
maildoc.~$SMTPKeepNotesItems = 1
maildoc.~$HFFlags = 1
maildoc.~$ExpandGroups =3
maildoc.Logo= "StdNotesLtr39"
maildoc.SaveOptions= ""
maildoc.MailOptions=""
maildoc.~$FromPreferredLanguage = "en-US"
maildoc.OnlinePlace = ""
maildoc.~$LangChair =""
maildoc.Alarms =1
maildoc.OrgConfidential = ""
maildoc.StartTimeZone = "Z=5$DO=0$ZX=66$ZN=US Eastern"
maildoc.EndTimeZone = "Z=5$DO=0$ZX=66$ZN=US Eastern"
maildoc.Repeats = ""
maildoc.OrganizerInclude = ""
maildoc.Location = ""
maildoc.RoomToReserve =""
maildoc.Resources = ""
maildoc.OnlineMeeting=""
maildoc.Presenters = ""
maildoc.OnlinePlaceToReserve = ""
maildoc.AudioVideoFlags = ""
maildoc.SendAttachments = ""
maildoc.SchedulerSwitcher = 1
maildoc.~$BorderColor = "D2DCDC"
maildoc.BookFreeTime = ""
maildoc.EnterSendTo = ""
maildoc.EnterCopyTo = ""
maildoc.EnterBlindCopyTo = ""

maildoc.Notes = ""
maildoc.Alarms =""
maildoc.ExcludeFromView = "D"
maildoc.SequenceNum = 1
maildoc.UpdateSeq = 1
maildoc.AltChair = session.UserName
maildoc.WebDateTimeInit = 1

Dim caldateTime As Variant

Set calendardatetime = New NotesDateTime( doc.EndDate(0) + " 08:00:00 PM" )
Dim item1 As New notesitem(maildoc, "AppendEndTime", calendardatetime.TimeOnly)

Set calendardatetime = New NotesDateTime( doc.StartDate(0)+ " 04:00:00 AM" )
Dim item2 As New notesitem(maildoc, "AppendStartTime", calendardatetime.TimeOnly)

Set calendardatetime = New NotesDateTime( doc.StartDate(0) + "04:00:00 AM" )
Dim item3 As New notesitem(maildoc, "CalendarDateTime", calendardatetime)

Set calendardatetime = New NotesDateTime( doc.EndDate(0) )
Dim item4 As New notesitem(maildoc, "EndDate", calendardatetime.DateOnly)

Set calendardatetime = New NotesDateTime( doc.EndDate(0) + " 08:00:00 PM" )
Dim item5 As New notesitem(maildoc, "EndDateTime", calendardateTime)

Set calendardatetime = New NotesDateTime( doc.EndDate(0) + " 08:00:00 PM" )
Dim item6 As New notesitem(maildoc, "EndTime", calendardatetime.TimeOnly)

Set calendardatetime = New NotesDateTime( doc.StartDate(0))
Dim item7 As New notesitem(maildoc, "StartDate", calendardatetime.DateOnly)

Set calendardatetime = New NotesDateTime( doc.StartDate(0)+ " 04:00:00 AM" )
Dim item8 As New notesitem(maildoc, "StartDateTime", calendardatetime)

Set calendardatetime = New NotesDateTime( doc.StartDate(0)+ " 04:00:00 AM" )
Dim item9 As New notesitem(maildoc, "StartTime", calendardatetime.TimeOnly)

Dim item10 As New notesitem(maildoc, "CalendarDateTime", calendardatetime)
Dim item11 As New notesitem(maildoc, "$NoPurge", calendardatetime)

maildoc.AppointmentType = "2"
maildoc.ApptUNID = maildoc.UniversalID
maildoc.Categories = doc.ReqType
maildoc.Chair = session.UserName

maildoc.MeetingType = 1
maildoc.Principal = session.UserName
maildoc.~_viewicon = 9
maildoc.Subject = doc.ReqType(0) + " TEST"
maildoc.Body = "test"
maildoc.Form = "Appointment"
Call maildoc.Save( True, True )






Create all day event programattical... (Greg x P 21.Apr.05)
. . RE: Create all day event programatt... (Andrei Kouvchin... 22.Apr.05)
. . . . RE: Create all day event programatt... (Greg x P 22.Apr.05)
. . . . RE: Create all day event programatt... (Greg x P 22.Apr.05)





  Document options
Print this pagePrint this page

 Search this forum

  Forum views and search
Date (threaded)
Date (flat)
With excerpt
Author
Category
Platform
Release
Advanced search

 RSS feedsRSS
All forum posts RSS
All main topics RSS
More Lotus RSS feeds

Resources

 Resources
Forum use and etiquette
Native Notes Access
Web site Feedback

Lotus Support

 Lotus Support
IBM Support Portal - Lotus software
Lotus Support documents
Lotus support by product
Lotus support downloads
Lotus support RSS feeds

Wikis

 Wikis
IBM Composite Applications
IBM Mashup Center
IBM Connections
IBM Connections Cloud Developers
IBM Docs
IBM Forms
IBM Mobile Connect
IBM Sametime
IBM SmartCloud for Social Business
IBM Web Experience Factory
Lotus Domino
Lotus Domino Designer
Lotus Expeditor
Lotus Foundations
Lotus iNotes
Lotus Instructor Community Courseware
Lotus Notes
Lotus Notes & Domino Application Development
Lotus Notes Traveler
Lotus Protector
Lotus Quickr
Lotus Symphony
IBM Web Content Manager
WebSphere Portal

Lotus Forums


 Lotus Forums
Notes/Domino 9.0
Notes/Domino 8.5 + Traveler
Notes/Domino XPages development forum
Notes/Domino 8
Notes/Domino 6 and 7
IBM Connections
IBM Mobile Connect
IBM Sametime
IBM SmartCloud Notes
Lotus Enterprise Integration
Lotus Protector
Lotus Quickr
Lotus SmartSuite