Custom Toolbar Buttons

In the Laserfiche Windows client, you can add custom toolbar buttons to the document viewer or folder browser that launch programs outside of Laserfiche Client. Adding custom buttons lets users quickly open a program, such as a custom SDK application, without leaving the Client.

You can also use tokens to create custom toolbar buttons (see below).

To configure custom toolbar buttons

Tokens for Custom Toolbar Buttons

These tokens can be used to customize toolbar buttons that perform tasks in integrated software. These tokens allow the integration to know who clicks the toolbar button and what items were selected in the repository when the button was clicked. ClosedShow me where to find these tokens.

Example: You can create a toolbar button that silently exports selected entries to a pre-configured location. The toolbar command would include Currently Selected Entries (SelectedEntries) and (optionally) the Client process ID (PID) to help the Client Automation Tool integration find the entries to export.

Name Description Syntax
Client Process ID The process ID of the running Client (LF.exe) instance. One ID per running instance will be retrieved. %(PID)
Current Username The username of the user logged into the repository. %(UserName)
Current Repository Name The name of the repository the user clicks the toolbar button in. %(RepositoryName)
Current Repository GUID The globally unique identifier (GUID) of the repository the user clicks the toolbar button in. %(RepositoryGUID)
Current LFSO Connection GUID The globally unique identifier (GUID) of the LFSO connection active when the user clicks the toolbar button. %(ConnectionGUID)
Current Window Handle The unique identifier of the window (e.g., the document viewer instance) the user clicks the toolbar button in. %(HWND)
Current Document ID The ID of the document that is selected when a user clicks the toolbar button. Applicable only in the document viewer. %(DocumentID)
Current Document Path The path of the document that is selected when a user clicks the toolbar button. Applicable only in the document viewer. %(DocumentPath)
Current Folder ID The ID of the folder that is selected in the folder tree when a user clicks the toolbar button. %(FolderID)
Current Folder Name The name of the folder that is selected in the folder tree when a user clicks the toolbar button. %(FolderName)
Current Folder Path The path of the folder that is selected in the folder tree when a user clicks the toolbar button. %(FolderPath)
Currently Selected Thumbnails

A comma delimited list containing the page numbers of the selected thumbnails, at the time the user clicks the toolbar button. Applicable only in the document viewer.

%(SelectedPages)

Currently Selected Entries

A comma delimited list containing the entry IDs of the selected entries, at the time the user clicks the toolbar button.

%(SelectedEntries)

Related Topics