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


Reena Pillai 8.Mar.13 01:54 AM a Web browser
Applications Development All Releases All Platforms


Dear all,

I am using below code to book holiday through lotus script, but I am facing some problem according to my code when i booked the calender (with the help of book calender action button) then only start date is booked, showing in my calender but end date is not showing for example like start date is 21-03-2013 and end date is 25-03-2013 then my code run and book these days in my calender but when i open my notes calender then it is showing that only start date is booked
here is my code-

Dim uidoc1 As NotesUIDocument
Dim ui As New NotesUIWorkspace
Dim dbMail As New NotesDatabase("", "")
Dim uiCalendarEntry As NotesUIDocument ' Calendar Entry is user MailDb
Dim s As New NotesSession
Dim StartDate1 , EndDate1
Dim item As NotesItem

Set uidoc1 = ui.CurrentDocument
Set doc=uidoc1.Document

StartDate1=uidoc1.FieldGetText("StartDate")
Enddate1=uidoc1.FieldGetText("EndDate")


Set uiDoc = ui.CurrentDocument

If uiDoc.EditMode Then
uiDoc.Refresh
End If

dbMail.OpenMail 'open users mail for calendar entry

' use the appointment form (all calendar entries do)
Set uiCalendarEntry = ui.ComposeDocument(dbMail.Server, dbMail.FilePath, "Appointment")
uiCalendarEntry.FieldSetText "AppointmentType", "2" 'Appointment
uiCalendarEntry.FieldSetText "Subject", "holiday"
uiCalendarEntry.FieldSetText "StartDate",uidoc.FieldGetText("StartDate")
uiCalendarEntry.FieldSetText"EndDate", uidoc.FieldGetText("EndDate")
uiCalendarEntry.FieldSetText "Body", "book holiday"
uiCalendarEntry.FieldSetText "StartTime","08:00:00 AM"
uiCalendarEntry.FieldSetText "EndTime","08:00:00 PM"

uiCalendarEntry.Save
uiCalendarEntry.Close

uidoc1.Save

Exit Sub

Please suggest were I am wrong.

Thank you in advance.






Notes calender through Lotus script... (Reena Pillai 8.Mar.13)
. . Don't use text to store dates use N... (Carl Tyler 8.Mar.13)





  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