R
RAGHAVAN JAYARAMAN
I'm having a problem getting the Current Cell for the Pivot Field which is
dropped on the Data Axis.
if (PivotTable.SelectionType == "PivotDetailRange")
{
var pvDetCell = pivotTable.Selection.BottomRight;
var RowNum = pvDetCell.Row;
var ColNum = pvDetCell.Row;
var pvCell = pivotTable.ActiveData.CurrentCell;
alert(pvCell.DetailCells(RowNum,ColNum).Value)
}
The above Code is not properly giving the Cell value , it always gives the
first Cell Value for each column . How can i get the Current Cell value like
that for Pivot Totals ( In Case of pivotTotals i could use
pivotTable.Selection(0) or PivotTable.Selection.Item(0) ) when Double Click
Occurs, but i cannot get current Pivot Detail Cell value.
Alternative Method ( Server Side -- Web Service )
Issue 2 ( I had Successfull Created Custom Hyperlink from Metadata XML File
).But i need to capture the Row member value ( for ex: I have dropped Last
Extracted fieldset on the Row Member which contains value Nov 2005 , Dec 2005
etc ) How can i read this value or Iterate through PivotRowMember /
PivotMember values so that i can dynamically append the Date to the Hyperlink
for the Calculated Field which is dropped on the Data Axis. ( ex: Row Axis :
Last Extracted ( Fieldset )
Data Axis : Cal Fld1 ( [count] + "#http://yourserver/test1.aspx?Date=(Last
Extracted ) #" [ something like this ].
dropped on the Data Axis.
if (PivotTable.SelectionType == "PivotDetailRange")
{
var pvDetCell = pivotTable.Selection.BottomRight;
var RowNum = pvDetCell.Row;
var ColNum = pvDetCell.Row;
var pvCell = pivotTable.ActiveData.CurrentCell;
alert(pvCell.DetailCells(RowNum,ColNum).Value)
}
The above Code is not properly giving the Cell value , it always gives the
first Cell Value for each column . How can i get the Current Cell value like
that for Pivot Totals ( In Case of pivotTotals i could use
pivotTable.Selection(0) or PivotTable.Selection.Item(0) ) when Double Click
Occurs, but i cannot get current Pivot Detail Cell value.
Alternative Method ( Server Side -- Web Service )
Issue 2 ( I had Successfull Created Custom Hyperlink from Metadata XML File
).But i need to capture the Row member value ( for ex: I have dropped Last
Extracted fieldset on the Row Member which contains value Nov 2005 , Dec 2005
etc ) How can i read this value or Iterate through PivotRowMember /
PivotMember values so that i can dynamically append the Date to the Hyperlink
for the Calculated Field which is dropped on the Data Axis. ( ex: Row Axis :
Last Extracted ( Fieldset )
Data Axis : Cal Fld1 ( [count] + "#http://yourserver/test1.aspx?Date=(Last
Extracted ) #" [ something like this ].