Topic (Object)

Member of:

DataModelSection object

Description:

Represents a topic in a Data Model or Query section.

Example 1:

This example shows how to print the names of all the topics in a Data Model to the Console window:

with(ActiveDocument.Sections["Query"].DataModel)
{
         TopicsCount = Topics.Count
         for(I=1;I<= TopicsCount;I++)
   Console.Write(Topics[I].DisplayName+"\r\n")
}

Example 2:

This example shows how to remove the Wine Sales topic from a query and send an alert of the modification:

ActiveDocument.Sections["Query"].DataModel.Topics["Wine Sales"].Remove()
Alert("Query results have been modified")

Methods:

Remove()

Properties:

Read-only: Property PhysicalName As String, Property Type As BqTopicType

Read-write: Property DisplayName As String, Property View As BqTopicView

Collections:

TopicItems As TopicItems