Reference manual

Using Prism for C/AL

This page describes what works the same way across Prism for C/AL: the theme, context menus, the filter syntax of its search boxes, keyboard shortcuts, copying code, panels and dialogs.

Dark and light theme

Prism for C/AL follows the Windows app theme, dark or light. It has no theme setting of its own: to change it, change the app mode in the Windows color settings.

When Windows switches theme while Prism runs, Prism asks Restart Prism now?

AnswerEffect
RestartRestarts Prism in the new theme. Open object stores close; reopen them from Recent on the Home page.
Not nowKeeps you working. Prism switches at once, but some colors stay in the old theme until it next starts.

Context menus and tooltips

Where the pointer turns into a hand, you can select the item, and it often has a context menu too. Right-click for these context menus:

The object index with the context menu of table 18 Customer open
The context menu of a table in the object index.
#NameDescription
1ObjectThe object you right-clicked.
2Context menuThe commands for that object, listed in the first row below.
Right-clickCommands
An object in the object index, or the object's heading in the object view Find Usages, Find System Function Usages…, Explore Table Relations and Show TransferFields Mapping From… (tables only), Copy to Clipboard, Copy Prism Path to Clipboard, and, when available, Design Object and Clear codeline selections.
A declaration in the object view, such as a field, procedure or triggerFind Usages and Copy Prism Path to Clipboard. Selecting the declaration's name also runs Find Usages.
The heading of a block of codeCopy code to new window and Copy code to clipboard.
Selected code linesThe commands in Copy code lines.
A node in the outlineCopy Prism Path to Clipboard.
A store in Recent on the Home pageOpen store location, Remove recent item and Remove all recent items.

In code, a name with a hand pointer goes to its declaration when you select it. Most controls also have a tooltip: hold the pointer over one to read what it does, an object's details, or the syntax of a search box.

Filter syntax

The search boxes of the object index, the outline, the Dependencies tab and the Object Errors window share one syntax. It matches ids and names, ignoring case:

The object index filtered with 18..20|*Customer, showing the matching objects
The object index filtered by an id range and a name.
#NameDescription
1Search boxThe filter 18..20|*Customer.
2MatchesThe objects with ids 18 to 20, and those whose names end in Customer.
FilterMatches
18The id 18.
18..20The ids 18 to 20, both included.
50000.., ..99Ids from 50000 up, and ids up to 99.
custNames that contain cust anywhere.
sales*post, t?xNames with wildcards: * stands for any run of characters, ? for one character.
sales lineNames that contain the words in this order with a space between them, such as Sales Line Discount.
18..20|22|*CustomerAny of the alternatives separated by |.

Universal Search has a query syntax of its own, with filter tokens such as k:field and is:publisher.

Keyboard shortcuts

Menus show a command's shortcut after its name.

The Search menu of a workspace window, with the shortcuts after the command names
The Search menu with its shortcuts.
#NameDescription
1Search Everywhere…A command with its shortcut, Ctrl+T.
2Code lines…A command with its shortcut, Ctrl+Shift+F.

Main window

KeyActionMenu command
Ctrl+1 to Ctrl+9Open the first to ninth recent object store.File › Recent
Ctrl+MShow the Mirrors page.File › Mirrors…
Ctrl+PShow the Settings page.File › Settings…
Ctrl+LOpen the log, including earlier sessions.Help › Log › Open Log
Ctrl+Shift+LOpen the log of this session only.Help › Log › Open Session Log
Ctrl+Alt+LShow the log folder in File Explorer.None
Alt+F4Exit Prism for C/AL, closing every open object store.File › Exit

Workspace window

KeyActionMenu command
Ctrl+TOpen Universal Search.Search › Search Everywhere…
Ctrl+Shift+SOpen Universal Search on members, such as fields and procedures (k:member).None
Ctrl+Shift+OOpen Universal Search on the members of the open object (@).None
Ctrl+Shift+POpen Universal Search on menu commands (>).None
Ctrl+FSearch the code lines of the open object.Search › Code lines (Current Object)…
Ctrl+Shift+FSearch the code lines of all objects.Search › Code lines…
Ctrl+Shift+ELet the object index fill the window, with columns, or return it to its panel.None
Ctrl+GGo to a position in the open object.View › Go to position…
Ctrl+Shift+GGo to a Prism Path.View › Go to Prism Path…
Alt+Left, or the mouse back buttonGo back in the navigation history.None
Alt+Right, or the mouse forward buttonGo forward in the navigation history.None
Ctrl+SpaceReturn to the current place in the navigation history.None
Ctrl+PShow the main window.File › Control Panel…
Ctrl+LOpen the log, including earlier sessions.Help › Log › Open Log
Ctrl+Shift+LOpen the log of this session only.Help › Log › Open Session Log
Ctrl+Alt+LShow the log folder in File Explorer.None
Alt+F4Close the object store.File › Close

Panels, searches and dialogs

WhereKeyAction
Object index, outlineRight, LeftExpand or collapse the selected node, or step into its first child or out to its parent.
Object index filling the windowEnterOpen the selected object and return the index to its panel.
Object index filling the windowEscReturn the index to its panel.
Universal SearchUp, Down, Page Up, Page DownMove through the results.
Universal SearchEnterOpen the selected result.
Universal SearchCtrl+EnterPin the search into a window of its own.
Universal SearchTab, Shift+TabComplete a filter or list the selected result's actions; go back to the results.
Universal SearchEscClose the search. In a pinned window, clear the text.
Universal SearchCtrl+TClear the search.
Universal SearchCtrl+Shift+GStart a Prism Path (prism:).
Universal SearchCtrl+Shift+FSearch the code lines of all objects for the text typed.
Code linesCtrl+1, Ctrl+2, Ctrl+3Search All objects, the Filtered objects, or This object.
Find usagesCtrl+OShow or hide the filter panel.
Feedback windowCtrl+EnterSend the feedback.
DialogsEnter, EscSelect the highlighted button; close the dialog.

With the setting Escape closes window, on by default, Esc also closes windows you work in, such as search results and table relations. Closing an object store asks first while the setting Confirm closing object store is on. See Settings page.

Copy code lines

Copy code lines to share them, add notes, or find the same lines in C/SIDE.

  1. In the object view, select the selection marker to the left of the first code line. The line is selected.
  2. Select the marker of the last line. The lines between them are selected too.
  3. Right-click the selection and select one of the commands below.
Code lines selected in the object view, with the context menu of the selection open
1 2 3
Selected code lines and their context menu.
#NameDescription
1Selection markerSelects the line (steps 1 and 2).
2Selected linesThe lines from the first to the last marker.
3Context menuThe commands for the selection (step 3).
CommandEffect
Copy Code to New WindowOpens the lines in a code fragment window, where you can add notes and copy the lot.
Copy Code to ClipboardCopies the lines, with information on where they come from.
Copy Code to Clipboard without ContextCopies only the code. A single line copied this way is useful for finding the same line in C/SIDE.
Open Code with Default Text EditorWrites the lines to a temporary text file and opens it in the program Windows uses for text files.
Clear SelectionDeselects the lines.

To deselect one line, select its marker again. To copy a whole procedure or trigger, right-click the heading above its code and select Copy code to new window or Copy code to clipboard. To copy a whole object, right-click it and select Copy to Clipboard.

Panels

On the Objects page, drag the dividers between the object index, the object view and the outline to resize them. Double-click a divider to toggle the width of the panel next to it.

View › Show shows or hides parts of the workspace window. Prism remembers your choice.

The View menu of a workspace window with its Show submenu open and the outline hidden
View › Show with the outline hidden.
#NameDescription
1ViewIn the accent color, because a part of the window is hidden.
2ShowThe parts of the window; a check mark shows each one that is visible.
ItemShows or hides
ToolbarThe toolbar of the Objects page, with Back, Forward and Errors.
ObjectsThe object index.
OutlineThe outline.
Status BarThe status bar, with the object store's location.
Object NumbersThe ids of the objects in the object index.

While the toolbar, object index, outline or status bar is hidden, the View menu is shown in the accent color, so you can find them again.

Dialogs

Questions and messages, such as closing an object store, unsaved mirror changes and the theme prompt, appear as dialogs inside the window that asks. The window dims, and the dialog shows its answers as buttons, the suggested one in the accent color. Enter selects the suggested answer; Esc closes the dialog without one.

An unexpected error opens an Error window, with the details and a way to report it through Help › Feedback…. Messages at startup and from the command line use Windows message boxes.