V
visakasi
Hi All,
I have a problem with OWC 10.We are using pivot table 10.0 ,data source
control 10.0.We are populating data from cubes thru' data source control
and showing it in IE browser thru' Pivot table.
When i try to access the pivot column members (we use client side VB
scripts to access pivot table) with some code say
msgbox ptable.ActiveData.ColumnMembers.Item(0).Value
i get a runtime error like "Unexpected Call to method or Property
Access".
Actually we are migrating from OWC 9 to OWC 10.The same code works well
with OWC 9 but not in OWC 10.Do i need to set any pivot table property
to access the column members or is there any change in OWC 10.
the ptable.activadata object is not working at all.
The Sample code is as follows.
Sub LoadFilterLists(ptable, cboField, cboMember, cboTotal)
Dim opt 'Temp HTML <option> element
Dim fset 'Temp PivotFieldset reference
Dim fld 'Temp PivotField reference
Dim member 'Temp PivotMember Field reference
Dim ttl 'Temp PivotTotal reference
Dim ct 'Temp loop counter
Dim pview 'Temp PivotView reference
'*************
For Each member In ptable.ActiveData.ColumnMembers
Set opt = document.createElement("OPTION")
opt.Text = GetFilterCaption(member.UniqueName)
opt.Value = member.UniqueName
cboMember.options.add opt
Next
'*********************
Can somebody throw some light on this ?? I am literally fighting with
this for more than a week!!!! :-(
Any help is greatly appreciated.
I have a problem with OWC 10.We are using pivot table 10.0 ,data source
control 10.0.We are populating data from cubes thru' data source control
and showing it in IE browser thru' Pivot table.
When i try to access the pivot column members (we use client side VB
scripts to access pivot table) with some code say
msgbox ptable.ActiveData.ColumnMembers.Item(0).Value
i get a runtime error like "Unexpected Call to method or Property
Access".
Actually we are migrating from OWC 9 to OWC 10.The same code works well
with OWC 9 but not in OWC 10.Do i need to set any pivot table property
to access the column members or is there any change in OWC 10.
the ptable.activadata object is not working at all.
The Sample code is as follows.
Sub LoadFilterLists(ptable, cboField, cboMember, cboTotal)
Dim opt 'Temp HTML <option> element
Dim fset 'Temp PivotFieldset reference
Dim fld 'Temp PivotField reference
Dim member 'Temp PivotMember Field reference
Dim ttl 'Temp PivotTotal reference
Dim ct 'Temp loop counter
Dim pview 'Temp PivotView reference
'*************
For Each member In ptable.ActiveData.ColumnMembers
Set opt = document.createElement("OPTION")
opt.Text = GetFilterCaption(member.UniqueName)
opt.Value = member.UniqueName
cboMember.options.add opt
Next
'*********************
Can somebody throw some light on this ?? I am literally fighting with
this for more than a week!!!! :-(
Any help is greatly appreciated.