data.setOwner

This method offers alternative signatures:

data.setOwner(ownerId, id, [success], [error])

Signature

data.setOwner(ownerId, id, [success], [error])

Description

Sets the owner of the specified data item.

Parameters

Parameter Name Type Description
ownerId string The new owner ID.
id string The ID of the item.
[success] function A success callback.
[error] function An error callback.


data.setOwner(acl, item)

Signature

data.setOwner(acl, item)

Description

Sets the owner of the specified data item.

Return Type

Promise - The promise for the request.

Parameters

Parameter Name Type Description
acl string The new owner ID.
item object The item whose owner will be updated. Note: the ID property of the item will be used to determine which item will be updated.


data.setOwner

This method offers alternative signatures:

data.setOwner(acl, item, operationParameters)

Signature

data.setOwner(acl, item, operationParameters)

Description

Sets the owner of the specified data item.

Parameters

Parameter Name Type Default Description
acl string The new owner ID.
item object The item whose owner will be updated. Note: the ID property of the item will be used to determine which item will be updated.
operationParameters object An object that accepts operation parameters.
[operationParameters.success] function A success callback.
[operationParameters.error] function An error callback.
[operationParameters.useOffline] Boolean Whether to invoke the operation on the offline storage. Default is based on the current mode of the Everlive instance.
[operationParameters.applyOffline] Boolean true If working online, whether to also apply the operation on the local storage.


data.setOwner(ownerId, id)

Signature

data.setOwner(ownerId, id)

Description

Sets the owner of the specified data item.

Return Type

Promise - The promise for the request.

Parameters

Parameter Name Type Description
ownerId string The new owner ID.
id string The ID of the item.


Start a free trial Request a demo
Contact us: +1-888-365-2779
sales@telerik.com
Copyright © 2016-2017, Progress Software Corporation and/or its subsidiaries or affiliates. All rights reserved.