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
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
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.
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,
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
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
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
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
8 matches
Mail list logo