subset_max("fieldname")
, for example.{ "result": value }
where value is the result of the expression; can be a complex object or array.{ "fieldCount" : 13, "recordCount": 1052, "fieldNames": ["field1","field2",...], "fieldTypes": ["text","text","date","integer","decimal",...] }
{ "result": [ [cell00, cell10, cell20], [cell01, cell11, cell21], [cell20, cell21, cell22] ] }
{}
to indicate success.
<html>
<head>
<# insertNativeBrowserApiScriptTag() #>
...
</head>
...
</html>
vo.eval(javascriptExpression, function(result))
vo.eval("1+2", function(result) {...})
will shortly call back the function with result 3
.vo.eval("subset_min('Price')", function(result) {...})
yields the minimum value in the Price field.vo.call(methodName, args, function(result))
vo.call("subset_min", ["Price"], function(result) {...})
yields the minimum value in the Price field.vo.meta(function(result))
vo.meta(function(result) {...})
yields { fieldCount: 3, recordCount: 73, fieldNames: ["Price",...], fieldTypes: ["decimal", ...] }
vo.cells(fields, firstRow, numberOfRows, function(data))
vo.cells(["Price", "Sales"], 0, 2, function(result) {...})
yields a 2x2 array of price and sales data for the first two records.vo.edit(fields, firstRow, numberOfRows, data, function())
vo.edit(["Price", "Sales"], 1, 1, [ [1.23], [4.56] ], function() {...})
sends edits in the second row back to the server.Bond prices script test.iok | 48K |
Bond prices script test.iok | 50K |
It looks like you're new here. If you want to get involved, click one of these buttons!