Item Method



 
The Item method returns one item of the collection.


Syntax

    [obj=] BookingsCol.Item(index)
    
Parameters
    index Long value that contains the item number to return.
Return Value
    Returns a Booking object representing the specified booking.
Remarks
    Collection-index values are 1-based.
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