R
RayTheOtherRay
<script language='javascript'
for=My_PivotTable
event=SelectionChange()>
var pt = document.getElementById('My_PivotTable');
var pd = pt.ActiveData;
var ra = pd.RowAxis;
if (pt.SelectionType == 'PivotRowMembers')
{alert(ra.RowMember.Axis.Label.Caption);}
</script>
Based on the code above, I have a PivotTable where there is only one
FieldSet in the RowAxis of the PivotData object. When I hover over a
cell in the Totals columns of the PivotTable, the ToolTips box displays
a number of facts about the hovered-over cell. Among those facts is
something labeled 'Row Member:'. This contains a string that show the
succession of drilling down that pertains to the row over which the
pointer is hovering.
I'd like to be able to capture this string and write it to a cookie to
be applied to the FilterAxis of another published PivotTable page. The
"alert" above yields "undefined." So far ra.RowMember is a valid
object. The Axis property also references a valid object, as does the
Label property.
I need the appropriate combination of objects and properties to capture
this. Once I have that combination, I'll replace the alert with code
to put the captured string in form that can be placed into the
IncludedMembers property on the other page.
Thanks!
Ray <><
for=My_PivotTable
event=SelectionChange()>
var pt = document.getElementById('My_PivotTable');
var pd = pt.ActiveData;
var ra = pd.RowAxis;
if (pt.SelectionType == 'PivotRowMembers')
{alert(ra.RowMember.Axis.Label.Caption);}
</script>
Based on the code above, I have a PivotTable where there is only one
FieldSet in the RowAxis of the PivotData object. When I hover over a
cell in the Totals columns of the PivotTable, the ToolTips box displays
a number of facts about the hovered-over cell. Among those facts is
something labeled 'Row Member:'. This contains a string that show the
succession of drilling down that pertains to the row over which the
pointer is hovering.
I'd like to be able to capture this string and write it to a cookie to
be applied to the FilterAxis of another published PivotTable page. The
"alert" above yields "undefined." So far ra.RowMember is a valid
object. The Axis property also references a valid object, as does the
Label property.
I need the appropriate combination of objects and properties to capture
this. Once I have that combination, I'll replace the alert with code
to put the captured string in form that can be placed into the
IncludedMembers property on the other page.
Thanks!
Ray <><