Skip to main content

appendDSValue

appendDSValue

Appends new row data to the end of a list field in the DataSet.

Parameters

  • recordPath (String): The path of the list field in the DataSet (e.g. "ds.list")
  • jsonData (any): The row data to append — an object or an array of objects

Returns: booleantrue on success, false if the path is invalid

Description

Inserts a new row at the end of the DataSet's list field. Pass an array of objects to append several rows at once. Appended rows are applied to the DataSet immediately, so bound UI updates right away.

Example

// DataSet ds의 list 필드 끝에 행 추가
$vm.appendDSValue("ds.list", { name: "새 항목", price: 5000 });

// 여러 행 한꺼번에 추가
$vm.appendDSValue("ds.list", [
{ name: "항목A", price: 100 },
{ name: "항목B", price: 200 }
]);

Related

  • $vm.insertDSValue(recordPath, jsonData) — insert a row at the front of the DataSet list
  • $vm.deleteDSValue(recordPath, count) — delete rows from the DataSet list
  • $vm.getDataCount(fieldPath) — read the DataSet list's row count