Click or drag to resize

DataClientSave Method

To get started, call one of the following methods:
  • Anysense.API.Client.V1.ApiClient.Create
  • Anysense.API.Client.V1.ApiClient.CreateAsync
  • Anysense.API.Client.V1.ApiClient.CreateWithToken
  • Anysense.API.Client.V1.ApiClient.CreateWithTokenAsync
See Anysense.API.Client.Shared.BaseClient<T> for documentation on these methods.
Saves data

Namespace: Anysense.API.Client.V1
Assembly: Anysense.API.Client (in Anysense.API.Client.dll) Version: 1.29.8-dev
Syntax
C#
public SaveDataResponse Save(
	SaveDataRequest request
)

Parameters

request  SaveDataRequest
The SaveData request.
See Implementation Notes..

Return Value

SaveDataResponse
Remarks
Data formats: * LocationData: * GPS position if required Format: "lattitude;longitude", where comma is used as decimal separator. * PivotrItem, LookupContainer, TextBlock * Is not a part of the data, and can not take a space in the saved data * TextBoxText: * String. Can be null if not required. * TextBoxNumeric: * Number with dot as a decimal separator. No tousand seperator. Can be null if not required * CheckBox * Boolean: true/false * ToggleSwitch * Boolean: true/false * DatePicker * Date as string in format yyyy-MM-dd. Can be null if not required. * TimePicker * Time as string in format HH:mm:ss. Can be null if not required. * DateTimePicker * DateTime as string in format yyyy-MM-dd HH:mm:ss. Can be null if not required. * RadioButton * String. Can be null if not required. * ListBox * String. Can be null if not required. * ListPicker * String. Can be null if not required. * CameraStandard * Comma separated list of MediaIds or a collection of MediaData * Barcode scanner * String. Can be null if not required. * Accelerometer * "x;y", where comma is used as a decimal separator * Audio * Comma separated list of MediaIds or a collection of MediaData * Video * Comma separated list of MediaIds or a collection of MediaData * LookupItem * Should be saved according to the OrigialElement element type. * Autonumber * String. Can be leaved empty at initial save, then the server will generate one. May not be changed in updates. * Calulcation * Numeric. Is always recalculated by the server. * Statistics * Numeric. Is always recalculated by the server. * SubForm * An Object with two properties: * SubData * List of SubformData elements. Only changed FormData objects has to be present - datas will be merged with exisiting on server when updating. * ToDelete * List of FormData ids that should be removed from the SubFormData
See Also