How to change Page Title BAR Caption

  1 minute read

I have been asked this question couple of times, so I thought I would write a small blog about this.

On every page it displays some information about the selected record, for example in the below screenshot on the customer card it displays customer no. and name, can we control what to display on this title bar or left of the caption on page? and the answer to the question is yes. if so how?

[image](http://lh6.ggpht.com/-nO5pGCN0xzk/VOdvz5-LWTI/AAAAAAAAIok/235fqrh4x9k/s1600-h/image3.png)

On the table there is a property called “**DataCaptionFields**” which controls what to display in the title bar. So in this example if I check customer table the DataCaptionFields is set to **No.,Name**. So let me change that to display the City, now my DataCaptionFields is set to** No.,Name,City** and after the change it is displaying the city in the title bar. So anytime you want to change the caption use this property and I think this is a very useful property because it is easy to find the right information on the title bar and instead of looking over all the tabs on the page.

My Suggestion is to limit to use to 2-4 fields on this property.

[image](http://lh3.ggpht.com/-NJUDgCvDaV4/VOdv6EvjvRI/AAAAAAAAIo0/4RGyrLeQtRQ/s1600-h/image7.png)

But wait a minute there is a same property on the page, so when is that used ? According to Microsoft help the DataCaptionFields property on the table is used for card pages and if nothing is defined primary key is used. The value on the page is ignored for card pages.

For tabular pages:

Tabular pages show multiple records at a time. The following data caption rules are applied:

A data caption is only displayed if a filter containing the fields defined in the DataCaptionFields property for the page evaluate to one value. In this case, two situations are possible:

There is a table relation (as defined by the [TableRelation Property](mk:@MSITStore:C:%5CProgram%20Files%20(x86)%5CMicrosoft%20Dynamics%20NAV%5C71%5CRoleTailored%20Client%5Ccside.chm::/html/TablerelationProperty.htm)) on one or more of the fields. In this case, the DataCaptionFields from the underlying table are used. If this table does not have a value for the DataCaptionFields property, the primary key for that table is used.

There is no table relation. In this case, the (single) value that results from evaluating the filter is used directly

There is also an example in the help, so please refer to that to know when Page DataCaptionFields will work.

If you have any questions or suggestions please leave a comment.

Leave a comment