LzDatasource
is an abstract class that can be extended to create new kinds
of datasources, such as Javadatasource
and HTTPdatasource
. These datasources
are the client's representation of a backend entity. There is no tag that
corresponds to this class.
Datasources represent queryable server-side Datasources, capable of creating
or changing Datasets. Datasources are type-specific, i.e. http, jdbc or
soap.
Datasources manage connections to the server, handle timeouts and send
ondata
and onerror
events.
In addition to any fields documented in the section below, these fields are also available:
src
String: The http request to make for the datasource.
timeout
Number: Interval (in milliseconds) to wait for
response before timing out on request. Default 30000.
In addition to any events documented in the section below, these events are also available:
ontimeout
: Sent when a request from one of the datasource's
datasets times out.
onerror
: Sent when an error occurs for this datasource.
ondata
: Sent when new data arrives for this datasource.
Known Direct Subclasses: connectiondatasource (LzConnectionDatasource) (as2), datasource (LzHTTPDatasource)
Copyright © 2002-2007 Laszlo Systems, Inc. All Rights Reserved. Unauthorized use, duplication or distribution is strictly prohibited. This is the proprietary information of Laszlo Systems, Inc. Use is subject to license terms.