invokeAction

open fun invokeAction(method: DataMethod): DataQuery

See invokeAction(DataMethod, ParameterList, HttpHeaders?, RequestOptions?).

Return

(see linked method).

Parameters

method

Method parameter.


open fun invokeAction(method: DataMethod, parameters: ParameterList): DataQuery

See invokeAction(DataMethod, ParameterList, HttpHeaders?, RequestOptions?).

Return

(see linked method).

Parameters

method

Method parameter.

parameters

Parameters parameter.


open fun invokeAction(method: DataMethod, parameters: ParameterList, headers: HttpHeaders?): DataQuery

See invokeAction(DataMethod, ParameterList, HttpHeaders?, RequestOptions?).

Return

(see linked method).

Parameters

method

Method parameter.

parameters

Parameters parameter.

headers

Headers parameter.


open fun invokeAction(method: DataMethod, parameters: ParameterList, headers: HttpHeaders?, options: RequestOptions?): DataQuery

Add an action call to the change set. If the method is not an action throws a 'UsageException'.

See Also:

{@link com.sap.cloud.mobile.kotlin.odata.DataQuery#bind(com.sap.cloud.mobile.kotlin.odata.BindingPath) DataQuery.bind} and {@link com.sap.cloud.mobile.kotlin.odata.DataQuery#from(com.sap.cloud.mobile.kotlin.odata.EntitySet) DataQuery.from}, for setting the binding parameter for a bound action (either can be applied to the returned query).

Return

{@link com.sap.cloud.mobile.kotlin.odata.DataQuery} the action call. After invocation, this may be passed to {@link com.sap.cloud.mobile.kotlin.odata.ChangeSet#getActionResult(com.sap.cloud.mobile.kotlin.odata.DataQuery, kotlin.Int) ChangeSet.getActionResult}.

Parameters

method

Action to be called.

parameters

Action parameters.

headers

(nullable) Action call headers.

options

(nullable) Action call options.