Search found 8 matches

Go to advanced search

by Kafui Adjogatse
Sat Nov 28, 2015 6:48 pm
Forum: Issues
Topic: Issues pushing an object to array of objects in localStorage
Replies: 9
Views: 907
 
Jump to post

Issues pushing an object to array of objects in localStorage

OK great, it seems to be performing better but I am still having some issues. I am effectively trying to push a name and member list into my predefined model. I am using the storagePush to do the name and then using mapping from sessionStorage for the member list. However, I am encountering two prob...
by Kafui Adjogatse
Thu Nov 12, 2015 10:40 pm
Forum: Issues
Topic: Issues pushing an object to array of objects in localStorage
Replies: 9
Views: 907
 
Jump to post

Issues pushing an object to array of objects in localStorage

Does this work with pushing into the predefined model or do I need to try an alternative method?

by Kafui Adjogatse
Wed Nov 04, 2015 10:00 am
Forum: Issues
Topic: Issues pushing an object to array of objects in localStorage
Replies: 9
Views: 907
 
Jump to post

Issues pushing an object to array of objects in localStorage

Hi Sergiy,

"array" is undefined prior to that line in a similar way as "arr" is undefined prior to the "save" and "myload" functions that appear to work.

by Kafui Adjogatse
Tue Nov 03, 2015 5:47 pm
Forum: Issues
Topic: Issues pushing an object to array of objects in localStorage
Replies: 9
Views: 907
 
Jump to post

Issues pushing an object to array of objects in localStorage

Hi Sergiy, The error points to line 35 in my JS: array.push(item); This is despite it working esrlier with arr.push(item). I've attached my Model and Storage pages as well https://d2r1vs3d9006ap.cloudfront.net/s3_images/1304215/ScreenShot2015-11-03at17.44.01_inline.png?1446572849 https://d2r1vs3d900...
by Kafui Adjogatse
Mon Nov 02, 2015 10:24 pm
Forum: Issues
Topic: Issues pushing an object to array of objects in localStorage
Replies: 9
Views: 907
 
Jump to post

Issues pushing an object to array of objects in localStorage

I am building an app relying solely on Model and Storage on the client. I am getting an error message stating that "push()" is not a function when I try to insert an object into an array of objects stored in localStorage. I have used the following JS as I have seen in other responses on th...
by Kafui Adjogatse
Tue May 26, 2015 8:58 pm
Forum: Issues
Topic: How to produce a response from a query that performs calculations across multiple rows in a database?
Replies: 4
Views: 386
 
Jump to post

How to produce a response from a query that performs calculations across multiple rows in a database?

My current full JS code is as follows: var cps = []; function search(oppo) { for (j = 0; j < cps.length; j++) { if (oppo === cps[j].cpty) { return true; } } } function add(cpty, netAmount) { cps[cps.length] = {}; this.cpty = cpty; this.netAmount = netAmount; } for (i = 0; i < data.length; i++) { if ...
by Kafui Adjogatse
Sat May 23, 2015 12:25 pm
Forum: Issues
Topic: How to produce a response from a query that performs calculations across multiple rows in a database?
Replies: 4
Views: 386
 
Jump to post

How to produce a response from a query that performs calculations across multiple rows in a database?

Hi Sergiy, In terms of getting the responses to perform calculations, how should I proceed? For example, assuming Kaf as the user, the responses should be grouped by the other party (whether debtor or creditor) such that in the above database pick, the final amount for Dave would take into account t...
by Kafui Adjogatse
Fri May 15, 2015 1:55 pm
Forum: Issues
Topic: How to produce a response from a query that performs calculations across multiple rows in a database?
Replies: 4
Views: 386
 
Jump to post

How to produce a response from a query that performs calculations across multiple rows in a database?

I have a database that has amounts owed between different people but want to have a query that provides netted/summed amounts that involve the active user. My current database structure is as follows: https://d2r1vs3d9006ap.cloudfront.net/s3_images/1205086/TDB_inline.JPG?1431695625 On the user's das...

Go to advanced search