Reference manual

Object view

The object view shows the current object: a heading, links to its declaration groups, and three tabs at the bottom. Prism shows the declarations and code, Dependencies what uses the object and what it uses, and Source the object's text. Use it to read an object and to navigate from it.

Opening it

  • It is the middle part of the Objects page.
  • Select an object in the Object index, in search results or on the Solution page, and it shows that object.
Prism for C/AL object view of a table on the Prism tab, with two code lines selected
1 2 3 4 5 6
The Prism tab with two code lines selected.
#NameDescription
1Object headingType, id and name. Right-click it for the object's context menu. See Object context menu.
2Declaration groupsSelect a group to scroll to it. The number is the count of declarations in the group. See Declaration groups.
3FieldA declaration with its properties. See Prism tab.
4CodeThe code header of a trigger or procedure. Right-click it to copy the whole block.
5Selected code linesLines you selected. Right-click them for the copy commands. See Selecting and copying code.
6TabsPrism, Dependencies and Source. See Tabs.

Object context menu

Right-click the object heading, or an object in the Object index, for the object's context menu.

Declaration groups

Under the heading, a link per top-level group of the object, such as fields, keys or triggers, with the number of declarations in it. Select one to scroll the Prism tab to that group. The links are hidden on the Dependencies tab.

Prism tab

Prism for C/AL Prism tab with table fields and their properties: a caption per language and an Options grid
1 2 3 4
Fields and their properties on the Prism tab.
#NameDescription
1Declaration nameSelect it to find its usages; right-click it for its context menu.
2Property nameHover over it to see where it sits in the object.
3Multi-language propertyA row per language, as for CaptionML.
4OptionsThe field's options in a grid: the option number and its OptionString value, with a column per language when the field has OptionCaptionML.

The Prism tab shows the object's declarations, properties and code. Select a reference to an object, a field or another declaration to navigate to it. Select the name of a declaration, such as a procedure or trigger, to find its usages. Hover over a property name to see where it sits in the object.

Right-click the name of a declaration for:

Properties are shown by kind:

PropertyShown as
Reference to an object or a fieldA link to it.
ExpressionSyntax coloured code, with links on the names it uses.
Multi-language, such as CaptionMLA row per language.
A field's OptionString and OptionCaptionMLOne Options grid: the option number, the option and a column per language.
TableRelation and CalcFormulaThe target table and field as a link, with the conditions and filters below.
PermissionThe object type, number and permissions, linked to the object.

When an object could not be parsed, a Parse error panel replaces its content, with the diagnostic in a text box you can copy from. The outline and analysis are not available for that object.

Context menus on calls in code

Some calls in the code on the Prism tab have a context menu with one item. The mouse pointer changes over a call that has one. Right-click the call for:

Prism for C/AL Prism tab with the context menu of a TRANSFERFIELDS call open
The context menu of a TRANSFERFIELDS call.
#NameDescription
1CallA TRANSFERFIELDS call from one record to a record of another table.
2Show inter-table field mappingsOpens the Field Transfer Mappings window window for the two tables.

Selecting and copying code

Select a code line to mark it, then select another line to mark the lines between them. Select a marked line's marker to clear it. Prism keeps your marked lines while Remember code line selections is on, on the Settings page.

Right-click a marked line for:

When the clipboard is not available, a copy command says Error trying to copy source code lines to clipboard.; when the text file cannot be written or opened, Open Code with Default Text Editor says Error trying to copy source code lines to text file. Try again.

Right-click the Code header of a trigger or procedure to copy the whole block:

Send a piece of code to a colleague

Use this to send a colleague a piece of code they can find again.

  1. On the Prism tab, select the first line, then the last line of the code.
  2. Right-click a marked line and choose Copy Code to Clipboard.
  3. Paste into the email or ticket.

The text names the store, the object and the declaration above the code. To add notes first, choose Copy Code to New Window instead; see Code fragment window.

Find the same line in the development environment

  1. On the Prism tab, select the line.
  2. Right-click it and choose Copy Code to Clipboard without Context.
  3. In the C/AL editor of the development environment, search for the copied text.
Prism for C/AL MenuSuite on the Prism tab with modified and re-linked menu nodes
1 2 3 4
A MenuSuite layer in the Prism tab.
#NameDescription

MenuSuites are layered: a MenuSuite can add nodes, and change, move or delete the nodes of the MenuSuites below it. The Prism tab sorts each menu node of a MenuSuite by what it does:

ChangeThe node
AddedIs new. It shows its type (MenuItem, Menu or MenuGroup), its properties and its child nodes.
ModifiedChanges properties of an existing node.
Re-linkedChanges only where an existing node sits: its next node, parent, first child or menu.
RemovedDeletes an existing node. Removed nodes are dimmed.

The nodes are grouped as Added menu nodes, Modified menu nodes, Re-linked menu nodes and Removed menu nodes, each with a count. Re-linked and removed nodes start collapsed. A MenuSuite with only one kind, such as a base layer, shows a single Menu nodes group.

A node that changes another fits on one line: the change, the node's name, then the MenuSuite that defines the node and what changes, for example next → Customers, Visible = No. Prism finds node names in the nearest MenuSuite at or below the current one in the same family: the navigation pane (ids below 1000) or the departments (1000 and up). Hover over a node to see its GUID; a GUID Prism cannot resolve is shown shortened.

Source tab

The Source tab shows the object's text, read only. It opens on the code the Prism tab was showing, so you do not have to scroll to find your place.

Font and line spacing

These settings under Code on the Settings page change how code looks:

SettingEffect
FontThe font family of code.
Font sizeThe font size of code.
Line spacingThe row height of code, parameter and variable lines: Compact sizes the rows from the font size, Standard gives them the height of header rows.