Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to figure out this problem?
Message
 
 
To
All
General information
Forum:
Javascript
Category:
Other
Title:
How to figure out this problem?
Miscellaneous
Thread ID:
01615127
Message ID:
01615127
Views:
53
Hi everybody,

I'm trying to figure out a complex problem.

We have a directive (written by the colleague) with the following code:
  var dialogTypes = [{ name: 'layouts', location: '/api/layouts/getlayouts/' },
                              { name: 'forms', location: '/api/forms/getforms' }];
                        var location = '';
                        for (var i = 0; i < dialogTypes.length; i++) {
                            if (dialogTypes[i].name == $scope.param) {
                                location = dialogTypes[i];
                                break;
                            }
                        }

                        $scope.table = searchScreenService.getTable('Descrip', [
                               { name: 'descrip', displayName: resourceFactory.getResource('Labels', 'descrip') },
                               { name: 'description', displayName: resourceFactory.getResource('Labels', 'type') }
                        ]);
                        $scope.queryRequest = searchScreenService.getQueryRequest();

                        var deferred = $q.defer();
                        $scope.location = location;

                        $http.get(location.location, { params: $scope.queryRequest })
                    .success(function (data, status, headers, config) {
                        deferred.resolve(data);
                    })
                    .error(function (data, status, header, config) {
                        deferred.reject(status);
                    });
I am testing in IE and I am getting hit on the reject and I see status being 400. The APIController's method is not even getting hit.

I know that this code worked before. I made some changes in the LayoutsAPIController (and adapter and repository classes) to use a new class (LayoutsList) instead of the original Layouts class.

I am wondering how can I figure out what may be the problem here and why now I'm getting the 400 as a return status?

I already tested the Layouts page by itself and everything is working smoothly. It is only not working now from that directive.

Thanks in advance.
If it's not broken, fix it until it is.


My Blog
Next
Reply
Map
View

Click here to load this message in the networking platform