Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

Calculate average from values in database, then show output in UI labels

Hello,

Please share app with a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a and tell us the steps how can we reproduce this.

Nalini
Posts: 0
Joined: Tue Jan 14, 2014 2:49 pm

Calculate average from values in database, then show output in UI labels

I've shared everything above....step by step

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

Calculate average from values in database, then show output in UI labels

There is incorrect mapping on "five0_incident_query_service". All response fields must be in array $ .
http://docs.appery.io/documentation/u...

Next steps should help to fix this:

  • in "five0_incident_query_service" service-"Test" button - "Automatically Create Service Response"
  • Go back to your screen - Data Tab-report_query-response tab.
    Map grade_courtesy field to localStorage variable "grade_courtesy".
Nalini
Posts: 0
Joined: Tue Jan 14, 2014 2:49 pm

Calculate average from values in database, then show output in UI labels

I made the changes exactly. Result? no result, looks like never ending processing

Image Image

Nalini
Posts: 0
Joined: Tue Jan 14, 2014 2:49 pm

Calculate average from values in database, then show output in UI labels

i made the changes exactly. I now see all of the response fields. However, when I enter value of variable 1 and click search, I get never ending processing..

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

Calculate average from values in database, then show output in UI labels

Is there any JS errors in browser console?
http://docs.appery.io/documentation/d...

Please share app with a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a it will help us to resolve this issue faster. This doc will show you how to do this: http://docs.appery.io/documentation/s...

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

Calculate average from values in database, then show output in UI labels

Did you share a correct app? There is no "five0_incident_query_service" in "twillioapp".

Nalini
Posts: 0
Joined: Tue Jan 14, 2014 2:49 pm

Calculate average from values in database, then show output in UI labels

sorry I shared wrong app. I just shared correct app. Please take a look.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Calculate average from values in database, then show output in UI labels

Hello! You have error in code. Try this way precodevar val=0;
if(data.length) {
for (var i=0; i<data&#46;length; i++) {
val+=+data&#46;grade_courtesy;
};
val=val&#47;data&#46;length;
}
alert(val);/code/pre

Return to “Issues”