Hello, I'm trying to write a spell that gets data from an external service, formats it into TABLE format, and returns from the spell's interpret function like so:
return new SpellResult(getDataCallback, DefaultDisplayType.TABLE) where getDataCallback is a promise. When I do this the result controller is calling updateData before the promise is resolved, so that here: if ($scope.type === 'TABLE' || $scope.type === 'NETWORK') { tableData = new DatasetFactory().createDataset($scope.type) tableData.loadParagraphResult({type: $scope.type, msg: data}) data is not ready to be acted upon, and I get an error in loadParagraphResult at paragraphResult.msg.split('\n') I've looked through the available spells on npm and haven't found any that do this sort of thing. Any help would be appreciated! -- Sent from: http://apache-zeppelin-users-incubating-mailing-list.75479.x6.nabble.com/