initDSListValue
initDSListValue
Resets an entire column of a DataSet list field to the same value in one call.
Parameters
path(String): The column path within the DataSet's list field (e.g."ds.list.checked")initVal(any): The value to set on every row
Returns: boolean — true on success, false if the path is invalid
Description
Overwrites a specific column across every row of the DataSet's list field with the same value. The result is identical to iterating the rows and calling setDSValue repeatedly, but it is handled in a single call.
Use it to clear all checkboxes, reset quantities in bulk, and similar cases.
Example
// DataSet ds의 list 필드에서 checked 컬럼 전체를 false로 초기화
$vm.initDSListValue("ds.list.checked", false);
// 수량 컬럼 전체 0으로 초기화
$vm.initDSListValue("ds.list.qty", 0);
Related
$vm.setDSValue(path, value)— set the value at a specific DataSet path$vm.getDataCount(fieldPath)— read the DataSet list's row count