Search found 5 matches

Go to advanced search

by Lonlon
Sat Jun 21, 2014 3:11 am
Forum: Issues
Topic: Multiple computation in array of data
Replies: 3
Views: 346
 
Jump to post

Multiple computation in array of data

Hi Katya, I got unexpected token error, please see my code below var DB_id='53903445e4b0889b402e6c81', collectionName='tblScore', columnName = 'numScore', competitionId = request.get("competition"); var params = {}; //Define parameters object params.criteria = { //Query criteria: "cha...
by Lonlon
Fri Jun 20, 2014 4:04 pm
Forum: Issues
Topic: Multiple computation in array of data
Replies: 3
Views: 346
 
Jump to post

Multiple computation in array of data

I have a table of scores, I want to get the total scores per Contestant and per Criteria. Any body knows the server code of these scores? Please help. Please see the target output below. Thank you. TABLE Score Contestant Criteria Judges 30 Contestant #1 Confident Judge #1 15 Contestant #1 Costume Ju...
by Lonlon
Mon Jun 16, 2014 9:53 pm
Forum: Issues
Topic: Create a Total from database items
Replies: 16
Views: 1936
 
Jump to post

Create a Total from database items

Hi Arina, I included additional variable params as a criteria. It works! var DB_id='xxxxxxxxxxxxxxxxxx', collectionName='test', columnName = 'amount', location = request.get("locationId"); var params = {}; //Define parameters object params.criteria = { 'location': locationId //Query criter...
by Lonlon
Sat Jun 14, 2014 9:34 am
Forum: Issues
Topic: Create a Total from database items
Replies: 16
Views: 1936
 
Jump to post

Create a Total from database items

Hi Arina,

Is it for server code? Do you have sample code like what Maryna Brodina gave.

Thank you.

by Lonlon
Sat Jun 14, 2014 7:04 am
Forum: Issues
Topic: Create a Total from database items
Replies: 16
Views: 1936
 
Jump to post

Create a Total from database items

I tried the server code above and it works.

May I know how to filter the amount rather than get the total value of all entry it will filter the value inputed by specific userID. Thank you.

Go to advanced search