# GetActiveChildSheetView

Use the GetActiveChildSheetView method to get the sheet view object of the active child sheet in hierarchical mode.

## Content

Gets the sheet view object of the active child sheet in hierarchical mode.

## Syntax

[JavaScript]

```javascript
var ret = FpSpread1.GetActiveChildSheetView();
```

## Parameters

***none***
None

## Return Type

Spread object or Null

## Remarks

This method gets the sheet view of the active child sheet. This method will not return null when the Spread control has an active child sheet. If the active Spread is a child sheet, a Spread object is returned. If it is not a child sheet, Null is returned.

## Example

This is a sample that contains the method. On the client side, the script that contains the method would look like this:

```javascript
<script type="text/javascript">
 function FpSpread1_ActiveCellChanged(event) {
 var sstrresult = newString();
if(document.getElementById('<%=FpSpread1.ClientID %>').GetActiveChildSheetView()!=null) {
astrresult="FpSpread1's GetActiveChildSheetView: "+document.getElementById('<%=FpSpread1.ClientID %>').GetActiveChildSheetView().id;
}else {
astrresult="FpSpread1's GetActiveChildSheetView: null.";
}
document.getElementById('<%=lbl_test.ClientID %>').innerHTML=astrresult;
}
function Button1_onclick() ...{
var id = "(none)";
if(document.getElementById('<%=FpSpread1.ClientID %>').GetActiveChildSheetView()!=null)
id = document.getElementById('<%=FpSpread1.ClientID %>').GetActiveChildSheetView().id;
alert(id);
}
</script>
```

## See Also

[GetSelectedRange](/spreadnet/docs/latest/online-asp/overview/spweb-clientscriptref/clientscript-members/clientscript-allmeths/CSSR-GetSelectedRange)
[GetValue](/spreadnet/docs/latest/online-asp/overview/spweb-clientscriptref/clientscript-members/clientscript-allmeths/CSSR-GetValue)
[Scripting Members](/spreadnet/docs/latest/online-asp/overview/spweb-clientscriptref/clientscript-members)