An item renderer usually has a data property that references an object in
the dataprovider/arraycollection.
If the object has a field called results that is an array of other
objects, it is important to determine if that is truly an array or an
ArrayList or ArrayCollection.
And if it is truly an array, then you have to use [0] instead of
getItemAt(0), so I would expect renderer code to reference
this.data.results[0]
HTH,
-Alex
On 8/8/14 11:24 AM, "Scott Matheson" <[email protected]> wrote:
>Hi
> i have a array collection of an object
>
>Records:
>
>field1:
>field2:
>Results[] holder 1,2,3,4 set of each set of results can have 1-5
>possible answers So results is an array of Result objects
>
>in an an item, render i want the [0] of result object
>
>
>this.firstAtempt.results.getItemAt(0).date
>
>
>
>does not seem to work ?
>
>
>
>
>
>________________________________
>
>Disclaimer: This electronic mail and any attachments are confidential and
>may be privileged. If you are not the intended recipient, please notify
>the sender immediately by replying to this email, and destroy all copies
>of this email and any attachments. Thank you.