Problem in creating appointment through Java api

Hi all,

I want to know about creating appointment in domino thru Java api. I m creating a document and setting its form field to ‘Appointment’ along with other fields. But I m not getting appointment being created in Calender… while it is being created in ‘Draft’. I know tht by default the document is saved in Draft… but How it can be saved in Calender.

I also want to know about date fields, how to provide their values.

Thnaks in advance.

Regards,

Mathew Charles