Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.

populate text area from array

Avatar

Level 1
So i figured out how to populate a datagrid from the flex in
a week tutorials. I'm trying to populate a textArea in the same
way, but I'm not sure how to access the array. The dataGrid uses
the dataProvider property to access the array, and i assume that a
textArea would use the text property. Is this correct? Do I need to
loop through the array to display all contents?



Thanks



btw, I see "Please use "Attach Code" to include..." but don't
see the optoin to attach code anywhere.
2 Replies

Avatar

Level 2
if I'm understanding this correctly, you are trying to
display an array, with each item in its own text box. in that case,
use the repeater component and set the array as the data
provider.

Avatar

Level 1
Hey Zee, thanks for the reply. I'm pretty new to Flex, so
bear with me. According to the help files, a repeater won't reflect
run-time changes to an array. I am using an xml file with an
HTTPService to load the array at run-time. Is there a way to get
the repeater to refresh or do I need another component?