I am having a problem setting a value in a ArrayCollection;
I have an arraycollection that has two columns valueLabel and
valueScore with data in it.
The data is then bound to the datagrid, works great.
In another function I need to set the Item of the valueScore
at a certain index with a value. I cant seem to figure it out.
ac is the name of my collection. When I run the below line of
script, it changes values for all the columns. I cant figure out
the syntax for telling it a certain column in the arraycollection.
ac.setItemAt(Math.round(event.value),0); // this sets all
I need something like:
//needless to say this throw exception everywhere