Skip to main content
Version: 5.9.6

SetUpdate(Where), SetUpdateV2(inDate)

public TransactionValue SetUpdateV2(string tableName, string inDate, string owner_inDate, Param param)
public TransactionValue SetUpdate(string tableName, Where where, Param param)

Parameters

ValueTypeDescription
tableNamestringName of table to modify
inDatestring(Selection) inDate of the row to modify
owner_inDatestring(Selection) inDate of the user who owns the row
whereWhere(Selection) Where condition to search the row to be modified
paramParamInformation to modify

Description

The command to modify the table is returned.
Upon modification using inDate in TransactionWriteV2, you must use SetUpdateV2; SetUpdate is unavailable.

Example

Param param = new Param();
param.Add("data", 777);

List<TransactionValue> transactionValues = new List<TransactionValue>();

//When modifying inDate of your row
transactionValues.Add(TransactionValue.SetUpdateV2("tableName", "inDate", Backend.UserInDate, param));
//When modifying inDate of other's row
transactionValues.Add(TransactionValue.SetUpdateV2("tableName", "inDate", "owner_inDate", param));

// OR
Where where = new Where();
where.Equal("name", "dragon_sword");
transactionValues.Add(TransactionValue.SetUpdate("tableName", where, param));