TopicName (Property)

Applies To:

Join object, Local Join

Description:

Retrieves the parent of the Topic item, which is the Topic Name in a join or local join. It also enables you to retrieve the Topic Item Names of joins (and not local joins).

Action:

Read-only, String

Example 1:

This example shows how to retrieve the topic names 1 and 2 from a join.

//Get Join Topic Names
TextBox1.Text=ActiveDocument.Sections["Query"].DataModel.Joins["1"].Topic1Name;
TextBox2.Text=ActiveDocument.Sections["Query"].DataModel.Joins["1"].Topic2Name;
TextBox3.Text=ActiveDocument.Sections["Query"].DataModel.Joins["1"].Type;

Example 2:

This example shows how to retrieve the Topic Item Names from a join.

/Get Join Topic Item Names
TextBox4.Text=ActiveDocument.Sections["Query"].DataModel.Joins["1"].TopicItem1.DisplayName
TextBox5.Text=ActiveDocument.Sections["Query"].DataModel.Joins["1"].TopicItem2.PhysicalName

Example 3:

This example shows how to retrieve the topic names 1 and 2 from a local join.

//Get Local Join Topic Names
TextBox6.Text=ActiveDocument.Sections["Query"].DataModel.LocalJoins["1"].Topic1Name;
TextBox7.Text=ActiveDocument.Sections["Query"].DataModel.LocalJoins["1"].Topic2Name;
TextBox8.Text=ActiveDocument.Sections["Query"].DataModel.LocalJoins["1"].Type;