集算表中
- //add a view with column formula
- var myView = productTable.addView("myView", [
- { value: "productId", caption: "ID"},
- { value: "productName", caption: "Name", width: 400 },
- { value: "unitPrice", caption: "Unit Price", width: 100 },
- { value: "unitsInStock", caption: "Units In Stock", width: 100 },
- { value: "unitsOnOrder", caption: "Units On Order", width: 100 },
- { value: "=SUM([@unitsInStock], [@unitsOnOrder])", caption: "Total Amount", width: 100 },
- { value: "=[@unitPrice] * SUM([@unitsInStock], [@unitsOnOrder])", caption: "Total Price", width: 100 }
- ]);
复制代码
指定的value在batch模式下,commitChange提交的数据有对应的value属性,但是value如果是引用的话数据就没有属性了,如何能获取到引用列的值?
|