Trouble with ArrayAppend

2014-12-20 Thread Dean Lawrence
I have a remote method which is retrieving a deal object, populating a structure and returning it to the client requesting it. This is all well and good. However, the deal object has multiple address objects associated to it. When looping over these addresses, I am having trouble adding them to

Trouble with ArrayAppend

2014-12-20 Thread Dean Lawrence
I have a remote method which is retrieving a deal object, populating a structure and returning it to the client requesting it. This is all well and good. However, the deal object has multiple address objects associated to it. When looping over these addresses, I am having trouble adding them to

Re: Bcrypt.class error

2014-12-20 Thread Russ Michaels
Do you have all the cf10 updates installed? Always worth ruling that out first. On Fri, Dec 19, 2014 at 19:26 PM, Dean Lawrence dean...@gmail.com wrote: Well, this ended up not working, as it failed again first thing this morning. I tried re-initing my app and it still did threw the error.

Re: Trouble with ArrayAppend

2014-12-20 Thread Rodney Enke
I believe you are just passing a reference of the tmpAddress to the array, so it is being overridden with each loop. Try the following to insert a copy of the structure into the array instead: ArrayAppend(results.Deal.addresses,duplicate(tmpAddress)); - Rodney On Fri, Dec 19, 2014 at 4:39 PM,

Re: Trouble with ArrayAppend

2014-12-20 Thread Dean Lawrence
Thanks Rodney. I was hoping that what you suggested would work, but unfortunately, it did not. I tried it in both ACF 10 and ACF 11. I'm still left with empty structs inside the array. On Sat, Dec 20, 2014 at 11:22 AM, Rodney Enke renk...@gmail.com wrote: I believe you are just passing a

Re: Trouble with ArrayAppend

2014-12-20 Thread Dean Lawrence
Ok, I just tried calling the same method directly from a CF template and the structures populated properly. It is only when I am calling it as a webservice that the structs are empty. On Sat, Dec 20, 2014 at 12:10 PM, Dean Lawrence dean...@gmail.com wrote: Thanks Rodney. I was hoping that what

Re: Bcrypt.class error

2014-12-20 Thread Dean Lawrence
Yes Russ, I have update 15 installed. On Fri, Dec 19, 2014 at 3:07 PM, Russ Michaels r...@michaels.me.uk wrote: Do you have all the cf10 updates installed? Always worth ruling that out first. On Fri, Dec 19, 2014 at 19:26 PM, Dean Lawrence dean...@gmail.com wrote: Well, this ended up

Re: Trouble with ArrayAppend

2014-12-20 Thread Jon Clausen
I think, though I may be incorrect, that you need to explicitly declare your Address var in the loop: for (var Address in Deal.getAddresses()){ ... } You may also want to try creating a variable for Deal.getAddresses() outside of the loop: var allAddresses=Deal.getAddresses(); for (var