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
| Value | Type | Description |
|---|---|---|
| tableName | string | Name of table to modify |
| inDate | string | (Selection) inDate of the row to modify |
| owner_inDate | string | (Selection) inDate of the user who owns the row |
| where | Where | (Selection) Where condition to search the row to be modified |
| param | Param | Information 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));