Name (Property)

Applies To:

AliasTableName object, Bullet object, Application object, Association object, (Live) BarChart object, (Live) BlockChart object, ChartSection object, Column object, Control object, ControlsCheckBox object, ControlsCommandButton object, ControlsDropDown object, ControlsListBox object, ControlsRadioButton object, ControlsTextBox object, (CubeQuery)QuerySection object, DataModelSection object, DerivableQuery object, DerivedItem object, DerivedTable object, DMCatalogItem object, DMResult object, Document object, DashboardSection object, EmbeddedBrowser object, EventScript object, Fact object, HyperLink object, LineChart object, OLAPLevelOrHierarchyNew collection, OLAPMemberSelector object, OLAPFilter object, OLAPQuerySection object, (Live) PieChart object, PivotLabelValue object, PivotSection object, PluginDocument object, (Live) RadarChart object, QuerySection object, ReportSection object, RepositoryItem object, ResultsSection object, Section object, Theme object, Slider object, SortItem object, Speedometer object, StoredProcedure object, TableSection object, TargetFact object, Thermometer object, Toolbar object, TrafficLight object

Description:

Returns or sets the name of an object listed above.

There are three “name” type properties used in the Object Model, including:

To determine which name property to use in the Object Model, consider this example.

A database table contains a column titled MyColumn. The PhysicalName of the column is MyColumn. To show another column name, such as MySpecialColumn, use the DisplayName (Property). This property enables you to modify the name shown in the Interactive Reporting product suite although the source column retains the original name (MyColumn). Use the Name (Property) to reference Object Model objects. For example, to determine the name of a TextBox object in Dashboards, write this script:

TextBox1.Name

Note:

Do not use Toolbars[“Standard”].Name, Toolbars[“Formatting”].Name, Toolbars[“Sections”].Name, and Toolbars[“Navigation”].Name in Interactive Reporting document files s to be deployed in the EPM Workspace.

Action:

Read-only, String

Application object, Column object, Control object, ControlsCheckBox object, ControlsCommandButton object, ControlsDropDown object, ControlsListBox object, ControlsRadioButton object, ControlsTextBox object, Dashboard objects, PivotLabelValue object, Toolbar object

Read-write, String

ChartSection object, DataModelSection object, DMCatalogItem object, DMResult object, Document object, DashboardSection object, OLAPQuerySection object, PivotSection object, PluginDocument object, QuerySection object, Section object, TableSection object

Example:

This example prints a list of all the sections in a document to the Console window:

for (j = 1 ; j <= ActiveDocument.Sections.Count ; j ++)
Console.Writeln(ActiveDocument.Sections[j].Name)