Use Javascript to change components that are in a list view?

Hi,
I have a list of containers where each container has two views. I want to change the views of some containers with javascript.

But the setCurrentViewIndex is not available for the repeated objects. I tried it with using

x= anything bigger than 0

container[0].setCurrentViewIndex(1); works but just for the first element
container[x].setCurrentViewIndex(1); no luck
container.setCurrentViewIndex(1); changes just the first container in the list

using the list as base:
list.data[x].container2.setCurrentViewIndex(1); no luck
list.data[x].setCurrentViewIndex(1); no luck

Any idea?

Sorry for that. It works now... I deleted one view and recreated it and now the

container[x].setCurrentViewIndex(1)

works

seams there was a bug inside the view...

1 Like