Top  | Previous | Next

Type Casting / toDataSet

toDataSet(value, [failover])

Tries to coerce value into a dataset. Not many things can be coerced into datasets. Namely, only DataSets and PyDataSets can be coerced into DataSets. This is useful for the runScript() expression, to convince the expression compiler to let you assign the return value of a scripting function to a DataSet property.

 

toDataSet(runScript("app.funcs.runSomeFunction()"))

... coerces the value returned by the a project scripting function into a dataset.

 

See also:

DataSets vs PyDataSets