StoreData Web API Method

This method allows you to save any data to the ORIGAM storage.

Signature

DataSet StoreData(string dataStructureId, DataSet data, bool loadDataAfterUpdate)

Parameters

Parameter values depend on your application’s model. Ask your ORIGAM developer to provide you object IDs.

Name Description
dataStructureId Defines the XSD structure and database mapping of the data being stored.
data Data to be stored in a form of a DataSet DiffGram.
loadDataAfterUpdate If true, the method will return data changed by business rules executed while saving the data.

Locking

ORIGAM uses optimistic locking by comparing the original values provided in the DiffGram. You should always first call LoadData Web API Method method, modify the data and then calling the StoreData method.

If another user modified the data in the meantime (i.e. data you provided in th diffgr:before element are different from the currently stored data), an exception will be thrown.