03 September 2010
Forums

Search our forums for the answers to your questions.

Further support options include the FAQs and Knowledge Base.

Note - Please login if you want to post to the forums.



CELCAT Timetabler Forums
Subject: Create a Booking Request through the COM Library
Prev Next
You are not authorized to post a reply.

AuthorMessages
Information SystemsUser is Offline

Posts:2

13 May 2009 10:04 AM  

Hello,

I was wondering whether it's possible to create a booking request using the COM API. Basically, I would like to reproduce the behaviour of the roombooker application, so that a user can fill in a request to book a room, and then this request would appear to the administrator (through the celcat client).

Thanks for your help !

Matthew

AntonyUser is Offline

Posts:17

13 May 2009 10:48 AM  
There is no specific support in the COM API for this. You could use the low-level mechanisms, eg the CT6Command object and CreateDataSet() method to build your own function but this would be a lot of work and require a good knowledge of the schema. If you let us know further details of your proposed development we may be able to create the necessary API for you.

Regards
Antony
Information SystemsUser is Offline

Posts:2

13 May 2009 12:55 PM  
Thanks for the reply.
Please correct me if I'm wrong, but it seems like there is a kind of state associated with every event (Requested, Cancelled, Completed, Rejected...)
Is there a way to assign the "Requested" state to an event that you create using the COM API ?
AntonyUser is Offline

Posts:17

13 May 2009 1:19 PM  

Hi Matthew

The status is actually an attribute of the booking (CT_BOOKING table).

To make a booking you would need to:

  1. insert a row in CT_BOOKING
  2. Optionally insert row(s) into CT_BOOKING_REQUIREMENT to specify the room(s) required (if known)
  3. Insert row(s) into CT_BOOKING_SLOT - one for each of the time slots required by the booking
  4. Create an event and add the event reference to each slot

If you want to add a room booking request to an exsting event, you just need the first 3 steps.

This is a much simplified and high-level view of the operation and I'm sure there are lots of subtleties along the way. Needless to say, if you attempt this don't work on live data!

Rgds
Antony

You are not authorized to post a reply.
Forums > Using Timetabler Applications > Other > Create a Booking Request through the COM Library



ActiveForums 3.7


Privacy Statement  |  Terms Of Use
Copyright © 2009 CELCAT, All Rights Reserved