So I messed up my previous thread ("can't assign IWitem to an array element" ) and I now need to start a new one, apologies. Question below:I managed to solve the issue I was having. Jeff and John, you guys were right, I was accessing the wrong element in the DCT. formAPI start counting from 1, i.e. news/type[1], is the first element and not news/type[0]. I tried accessing the 0 element, and that’s what caused the problem. So thanks for the advice.
I am faced with a similar problem right now, but this one involves an item and not a container. I have the following item definition in my code
[HTML]
Private Bank Highlights Section
[/HTML]
This container is contained within the root container named "homepage". So to access a replicant of the item I would do
IWDatacapture.getItem('homepage/Highlights/highlights')).
However that does not work. I try to access an item directly by setting i=1 (there is at least one replicant in there), however when I set i=1 the return of the getItem method is null for some reason. I don't know what's wrong here. Is there a difference in the way you access replicants of items as oppose to replicants of containers?