new WKcService() → {Object}
WKcService objects can be used to exchange data with
external data servers.
- Source:
Returns:
A new service object.
- Type
- Object
Methods
-
ajax()
-
Asynchronosly exchanges data with an external data server.
Parameters:
Name Type Argument Default Description p_args.urlString The URL of the external data source. p_args.requestMethodString <optional>
"get" The request method: "get"oder"post"oderhead.p_args.synchronousString <optional>
false Indicates, whether the data is exchaned synchronously or asynchronously. p_args.timeoutNumber <optional>
0 p_args.responseTypeString <optional>
'text' The type of the data to be loaded. p_args.dataInString <optional>
this.data A data object into which the result data is to be put. p_args.attrInString <optional>
null The attribute of the data object into which the result data is put. p_args.dataOutHeaderString <optional>
null A data object that contains the key/value pairs that are to be sent to the server. p_args.dataOutString <optional>
null A data object that contains the data that is to be send to the server. p_args.attrOutString <optional>
null The attribute of the data object taht contains the data that is to be send to the server. p_args.p_eventString <optional>
$E$.DATA_CHANGED The event type signaled by dataInafter it has been changed.- Source:
Fires:
- $E$.event:AJAX_START
- $E$.event:PROGRESS
- $E$.event:ABORT
- $E$.event:ERROR
- $E$.event:LOAD
- $E$.event:TIMEOUT
- $E$.event:AJAX_END
-
data(p_data)
-
Sets the data object where the service shall save the data read by default.
Parameters:
Name Type Description p_data$wk$.vclsd.data.WKcData A data object. - Source: