owc10 fieldlist problems with AS 2005



Hello,

I have an AS 2005 cube set up which I can connect to via OWC10. I would like to try to reorganize the fieldlist and group the dimensions. The problem is I don't seem to have much control of the field list. For example; in the code below, the first alert box displays 23, yet the second alert box within the loop is never executed. Why am I unable to loop through the fields in the fieldset? Also, I think the best thing for me would be the ability to replace the fieldlist with my own fieldlist, but how do I do this so the user can still drag things from my fieldlist to the pivot control? Thanks.

(jscript)
pTable = Form1.pivot
alert(pTable.ActiveView.FieldSets.Count)
for (var fSet in pTable.ActiveView.FieldSets) {
alert(fSet.Name)
}

.