Is there a way to dynamically add calculations to a foundset, based on an in-memory data-source?
In order to give you a correct answer: what do you mean by ‘in-memory data-source’?
Yes this is supported using the solution model
var datasource = dataset.createDataSource('mydatads')
var calc = solutionModel.getDataSourceNode(datasource).newCalculation("function myCalculation() { return 123; }", JSVariable.INTEGER);