Question

trouble getting count of rows in esq after filtering in client side

Hi,

I want no. of rows in esq. No matter how many records in collection I am geeting "numberOfDailyActivePrograms1 " = 0 after the loop. In debug I can see the loop iterating and count increasing

Please help me resolving this

Is there any other better way to get count of rows from clientside ESQ

 

var numberOfDailyActivePrograms1=0;

esq.getEntityCollection(function(result){

                        

                        if(!result.success){

                            this.showInformationDialog("Data Query Error");

                            return;

                        }

                        result.collection.each(function (item) {

                            numberOfDailyActivePrograms1 = numberOfDailyActivePrograms1 +1;

                            

                        });

Like 0

Like

1 comments
Show all comments