I'm trying to add a listview control to my script. I can get it to fill in the first column perfectly but nothing else. i found
this thread which seemed to be the same problem as mine. But i'd like to know why my method does not work. Specifically what the columnidx should be.
Here's my code:
code:
for (i = 1; i < NodeCol.length; i++)
{xSMC = NodeCol.item.text
xEmail = NodeCol.item.getAttribute("Contact")
//Create item
OptionsWnd.LstView_AddItem(
"ListViewMC",
xEmail,
i,
i
);
//Set item texts
OptionsWnd.LstView_SetItemText(
"ListViewMC",
i,
columnidx,
xSMC
);
}
I've tried a few obvious ideas like 0, 1 , 2 etc but nothing....
EDIT: I've also tried playing with the columnid value which is set in the interface xml but that didn't work either.