1 appDS2.controller('reportImportController', function($scope,$http,$location, $routeParams, $q, $modal,$log,$window, raptorReportFactory, stepFormFactory, DOMHelper) {
2 $scope.importXML = function(){
7 "reportXML":$scope.xmlContent
9 $scope.errorMessage = ""
10 raptorReportFactory.postImportXml(importXMLJSON).then(function(data){
11 if (data.errormessage) {
12 $scope.errorMessage = data.errormessage;
14 $window.location.href = 'report#/report_wizard/-1';
17 $log.error("raptorReportFactory: postImportXml failed.");