Skip to content
This repository was archived by the owner on Feb 2, 2025. It is now read-only.

I am sending data to server side via a map. But data is not getting sent. Here is the code. #175

Closed
ipsitam opened this issue Jan 12, 2015 · 2 comments

Comments

@ipsitam
Copy link

ipsitam commented Jan 12, 2015

 $scope.toDate=date
         $scope.fromDate=$filter('date')($scope.searchFilter.fromDate, 'yyyy-MM-dd');

         var postData=new Object();
         if($scope.searchFilter.toDate!=undefined){
             postData["toDate"]=$scope.searchFilter.toDate
         }
         if($scope.searchFilter.fromDate!=undefined){
             postData["fromDate"]=$scope.searchFilter.fromDate
         }

         if($scope.searchFilter.contributor.name!=undefined){
             postData["contributor"]=$scope.searchFilter.contributor.name
         }

         $scope.dtOptions.withOption('ajax', {
                                                url: ('/cloneClassifications/listClassifications'),
                                                data:postData,
                                                dataType: 'json',
                                                type:"POST"
                                }).reloadData();
@l-lin
Copy link
Owner

l-lin commented Jan 12, 2015

Yes, it's a known issue (see #139, promise and Ajax renderers do not reload the options when reloading the data).

@ipsitam
Copy link
Author

ipsitam commented Jan 12, 2015

can you please suggest a work around for this?

@l-lin l-lin closed this as completed Jan 16, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants