![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
-----Original Message----- If you can't guess from the code, the issue is that multiple partitions, drillthough returns a collection of recordsets; one for each partition. You need to loop through the collection. -- Dave Wickert [MSFT] dwickert (AT) online (DOT) microsoft.com Program Manager BI Practices Team SQL BI Product Unit (Analysis Services) -- This posting is provided "AS IS" with no warranties, and confers no rights. "VMG" <vmg (AT) agro (DOT) dp.ua> wrote in message news:b954e013.0308140511.4063a7f9 (AT) posting (DOT) google.com... Use drillthrough.htc from Office component toolpack with next adds and modifications: ... { ... // alert(sMDX) rs.Source = sMDX;//about 1444 line { rs.Open(); var rsCasper = new ActiveXObject ("ADODB.Recordset"); //~begin rsCasper.CursorLocation = 3; rsCasper.LockType = 4; for(var i=0;i<rs.Fields.Count;i++) rsCasper.Fields.Append(rs.Fields(i).Name+i, rs.Fields(i).Type,rs.Fields(i).DefinedSize); rsCasper.Open(); while(rs) { while(!rs.EOF){ rsCasper.addNew(); for(var i=0;i<rs.Fields.Count;i++) rsCasper.Fields(i)=rs.Fields(i); rsCasper.Update(); rs.MoveNext(); } rs = rs.NextRecordset(); } //~ end } ... iNumRecords = rsCasper.RecordCount;//~ ... this.Recordset = rsCasper; //~ return rsCasper; //~ } } Add in function setupPivotTable(ptMe) code while(!rs.EOF)rs.MoveNext();//~ after rs = dt.Data.GetRecordset(); . |
![]() |
| Thread Tools | |
| Display Modes | |
| |