Dataprovider not getting filled up

Forum to discuss the new web client version of Servoy.

Dataprovider not getting filled up

Postby ashutoslenka426 » Wed May 31, 2017 3:26 pm

Hi All ,

I am developing a webcomponent for DevEX calender component . I am selecting a date value from the calender but the dataprovider is not getting updated . Everything seems to be correct . Please find the below code :

Code: Select all
<div style="height:100%;width:100%" dx-date-box="dateBox.dateTimeFormat" data-ng-model="model.dataproviderID" svy-autoapply></div>


Code: Select all
scope: {
         model: '=svyModel',
         handlers: "=svyHandlers",
         api: "=svyApi",
        svyServoyapi: "="
      
      },
      controller: function($scope, $element, $attrs) {
         var now = new Date();
       
         $scope.dateBox = {
           
            dateTimeFormat: {
                   type: "datetime",
               value: now
                
             },
               
              onValueChanged:function(){
                   $scope.svyServoyapi.apply('dataproviderID');
                        
                    
              }
            
         };
      },


Code: Select all
"size": { "type" :"dimension",  "default" : {"width": 140, "height": 20} },
"dataproviderID" : { "type":"dataprovider", "pushToServer": "allow","tags": { "scope" :"design" } , "ondatachange": { "onchange":"onValueChanged", "callback":"onDataChangeCallback"}}


Please provide any suggestions.
AL
ashutoslenka426
 
Posts: 295
Joined: Thu Jan 26, 2012 3:38 pm

Re: Dataprovider not getting filled up

Postby ashutoslenka426 » Thu Jun 01, 2017 12:57 pm

Hi All ,

It is now working for me . I did the onValueChanged on "ng-change" . It is working now.
AL
ashutoslenka426
 
Posts: 295
Joined: Thu Jan 26, 2012 3:38 pm


Return to Servoy NGClient

Who is online

Users browsing this forum: No registered users and 2 guests