We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

DataManager - executeLocal() : Json data is required to execute

Thread ID:

Created:

Updated:

Platform:

Replies:

121798 Jan 26,2016 09:02 AM Oct 31,2017 01:00 AM JavaScript 5
loading
Tags: ejGrid
Antonio Terron
Asked On January 26, 2016 09:02 AM


Hello,

I'm receiving the above error when binding data received from a websercice to ejGrid.

Please find in the attached file an image with error in the console window (error.prg), the markup files (*.HTML), the piece of code with the controller where the error is raising (code.txt) and the results from the webservice (results.txt).

Any help would be appreciated.
Thank you in advance

Attachment: error_63f03847.rar

Balaji Marimuthu [Syncfusion]
Replied On January 27, 2016 07:46 AM

Hi Antonio,

Thanks for contacting Syncfusion support.

We have checked the attached code and error screenshots also created a sample similar with the provided code. But, we were unable to reproduce the issue from our side. Refer to the sample,

Sample-AngularGrid

Please share more information to find the cause of issue and provide a better solution at the earliest,

1.     Essential Studio and Browser version details.
2.      Runnable sample or modify the attached sample as issue reproducible.
3.       We suspect that issue is occurred when binding the null value to the $scope.data. So, please ensure whether you have changed the $scope.data value or not in your application.

Regards,
Balaji Marimuthu

Antonio Terron
Replied On January 28, 2016 05:07 AM

Solved.

Forgot JSON.parse.

Thanks for your answer.

Balaji Marimuthu [Syncfusion]
Replied On January 29, 2016 12:36 AM

Hi Antonio,

Thanks for the update.

Please get back to us if you need any further assistance.

Regards,
Balaji Marimuthu

Leroy Duncan
Replied On October 30, 2017 03:13 PM

Where did you add JSON.Parse()??? I am experienceing the same issue and could use a pointer. 

Cheers!


Saravanan Arunachalam [Syncfusion]
Replied On October 31, 2017 01:00 AM

Hi Leroy, 
By default, the JSON.Parse() method used to parse the json string into the json data. So, we should parse the jsong string as json data using JSON.Parse(), if we return the data from the controller as a json string.  
In the provided example on 26/01/2016, we should assign the parsed data in the $scope.data that can be refer from the below code example. 
.controller('ViewCheckOutsCtrl', ['$scope', '$modal', '$translate', '$locale', '$location', function ($scope, $modal, $translate, $locale, $location) { 
      
    $scope.data = []; 
          . . . 
        $scope.data = [] 
        var promise = dataman.executeQuery(query); 
        promise.done(function (e) { 
            modalInstance.close(); 
            $scope.data = JSON.Parse(e.result); 
        }); 
    }; 
 
Regards, 
Saravanan A. 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;