Active (Property)

Applies To:

ChartSection object, (CubeQuery)QuerySection object, DataModelSection object, Document object, DashboardSection object, OLAPQuerySection object, PivotSection object, PluginDocument object, QuerySection object, ResultsSection object, Section object, TableSection object, ReportSection object

Description:

Section Object: Returns true if the section object refers to the current section.

Document Object: Returns true if the document object refers to the current document.

Do not use Session.Active in Interactive Reporting documents to be deployed in the EPM Workspace .

Action:

Read-only, Boolean

Example:

This example shows how to find the active section in the document:

var SectionCount = ActiveDocument.Sections.Count
for(j = 1 ; j <= SectionCount ; j++)
{
     if(ActiveDocument.Sections[j].Active == true)
         Alert ("The Active section is "+ActiveDocument.Sections[j].Name)
}