GetBookings Method
The GetBookings method returns a range of bookings.
Syntax
[obj=] SiteCafe.Server.Bookings.GetBookings(accIndex, sTime,
eTime, start, maxCount)
|
Parameters
accIndex |
Long value that specifies the account index. |
sTime |
Long value that specifies the start time. |
eTime |
Long value that specifies the end time. |
start |
Long value that specifies the start booking. |
maxCount |
Long value that specifies the maximum number of bookings. |
Return Value
Returns a BookingsCol collection containing the specified bookings.
Remarks
The start and/or end time will be ignored if they are 0.
Otherwise they are specified by the return value of the Date.getVarDate method divided by 1000.
Examples
The following example displays the reason for the first account's first booking.
<SCRIPT TYPE="text/javascript">
window.external.InitScriptInterface();
bookings = SiteCafe.Server.Bookings.GetBookings(1, 0, 0, 1, 10);
alert(bookings.Item(1).Reason);
</SCRIPT>
|
Applies to
SiteKiosk v6.2 (and later versions).
Back to top