2026-10-05 17:26:41 -04:00
2026-10-05 17:26:41 -04:00
2026-10-05 17:26:41 -04:00
2026-10-05 17:26:41 -04:00
2026-10-05 17:26:41 -04:00
2026-10-05 17:26:41 -04:00
2026-10-05 17:26:41 -04:00
2026-10-05 17:26:41 -04:00
2026-10-05 17:26:41 -04:00
2026-10-05 17:26:41 -04:00
2026-10-05 17:26:41 -04:00
2026-10-05 17:26:41 -04:00
2026-10-05 17:26:41 -04:00

Acumatica Generic Inquiry Side Panels

GISidePanels is an Acumatica 2026 R1 developer example that lets an administrator expose a Generic Inquiry as a contextual side-panel action on another screen.

The customization adds a Side Panel Targets tab to Generic Inquiry (SM208000). Each target can map values from the current record on the host screen into GI parameters, so the inquiry opens already filtered to the record the user is viewing.

Example: Open a project on Projects (PM301000), select the side-panel action, and display only the inquiry rows related to that project.

The problem it solves

Acumatica Generic Inquiries can define navigation from the inquiry to another screen. This project demonstrates the inverse relationship: configuring a GI so that it becomes a side-panel option on one or more target screens.

The configuration is reusable rather than hard-coded. An administrator selects:

  • The target screen.
  • The side-panel caption, icon, and display order.
  • The active GI parameters to populate.
  • The source view and field on the target screen for each parameter.

Feature highlights

  • Adds a Modern UI configuration tab to Generic Inquiry (SM208000).
  • Supports multiple target screens for the same GI.
  • Supports multiple GI parameter mappings per target screen.
  • Discovers target graph views and BQL-backed fields dynamically.
  • Registers side-panel actions on compatible target graphs at runtime.
  • Uses an IPrefetchable database slot to avoid querying configuration during graph initialization.
  • Validates target screens, GI parameters, source views, source fields, and duplicate mappings before persistence.
  • Stops navigation when a required mapped value is unavailable, preventing an accidentally unfiltered inquiry.
  • Packages Modern UI files as Acumatica PerTenantFile artifacts.
  • Runs Acuminator and IDE code-style diagnostics as build gates.

Request flow

Generic Inquiry (SM208000)
        |
        | Side Panel Targets + parameter mappings
        v
Configuration tables
        |
        | cached by screen ID
        v
Target screen graph initialization
        |
        | dynamic hidden action + side-panel metadata
        v
Current target record values
        |
        | mapped to GI parameters
        v
Context-filtered Generic Inquiry side panel

Example configuration

For a project-related inquiry displayed from Projects (PM301000):

GI parameter Source view Source field
ProjectCD Project ContractCD

The GI condition can then filter PMProject.ContractCD by [ProjectCD]. For a context-sensitive side panel, keep the parameter required and avoid an OR [ProjectCD] Is Empty fallback; otherwise a missing mapping could return data for every project.

How it works

  1. GenericInquiryDesigner_Extension adds target and parameter configuration views to the Generic Inquiry graph.
  2. GISidePanelTarget stores the target screen, caption, icon, order, and active state.
  3. GISidePanelParameter stores the mapping from a GI parameter to a source view and field.
  4. GISidePanelRuntime loads active configuration through PXDatabase.GetSlot and registers the appropriate side-panel action for the current screen graph.
  5. When invoked, the action reads the current source record, converts mapped values using the current culture, and redirects through PXRedirectToGIRequiredException.
  6. The Modern UI extension adds the configuration grids to SM208000.

Project structure

GISidePanels/
|-- AcuProjectSource/
|   |-- _project/                         # Customization metadata and SQL table definitions
|   `-- FrontendSources/                  # SM208000 Modern UI extension
|-- Package/
|   `-- project.xml                       # Import package manifest
|-- Properties/
|   `-- AssemblyInfo.cs
|-- GenericInquiryDesigner_Extension.cs  # GI configuration graph extension
|-- GISidePanelTarget.cs                 # Target-screen configuration DAC
|-- GISidePanelParameter.cs              # Parameter-mapping DAC
|-- GISidePanelRuntime.cs                # Runtime action registration and redirect logic
|-- GISidePanelMessages.cs               # Localizable messages
|-- GISidePanels.csproj
`-- GISidePanels.sln

Requirements

  • Acumatica ERP 2026 R1.
  • .NET Framework 4.8 developer tooling.
  • Access to the target Acumatica instance assemblies.
  • Node.js tooling installed with the Acumatica instance when rebuilding Modern UI screen bundles.

The project uses the overridable AcumaticaBinPath MSBuild property. Its default resolves to C:\Acumatica ERP\Acu26R1\Bin for the repository's current directory layout. If your instance is elsewhere, pass the path when building:

dotnet build GISidePanels.csproj -c Release -p:AcumaticaBinPath="D:\Acumatica ERP\Acu26R1\Bin"

Build and analyzer validation

From the repository root:

dotnet restore GISidePanels.csproj
dotnet build GISidePanels.csproj -c Release --no-incremental
dotnet format GISidePanels.csproj analyzers --verify-no-changes --severity info --no-restore
dotnet format GISidePanels.csproj style --verify-no-changes --severity info --no-restore

Expected result: zero compiler errors, compiler warnings, Acuminator diagnostics, and IDE code-style diagnostics.

Framework-required camel-case BQL field classes use declaration-level SuppressMessage attributes with an Acumatica Standard justification. The project does not use blanket analyzer suppressions.

Creating an importable customization package

The generated ZIP and build output are intentionally excluded from source control. Assemble the package according to Package/project.xml with this layout:

project.xml
Bin/
`-- GISidePanels.dll
screens/
`-- SM/
    `-- SM208000/
        `-- extensions/
            |-- SM208000_GISidePanels.html
            `-- SM208000_GISidePanels.ts

The Modern UI files must remain PerTenantFile items at the screens/... paths shown above. Packaging them as ordinary files or under FrontendSources/... places them in the wrong customization-project section.

Configuration walkthrough

  1. Publish the customization to a development or test instance.
  2. Open Generic Inquiry (SM208000) and select the inquiry that should appear in a side panel.
  3. Define the inquiry's parameters on the standard Parameters tab.
  4. Open Side Panel Targets and add the target screen, caption, icon, and order.
  5. In the lower grid, map each GI Parameter to a Source View and Source Field from the target graph.
  6. Save the inquiry.
  7. Open or refresh the target screen and invoke the new side-panel action.

Active target configuration is loaded through a table-dependent database slot on subsequent graph requests, so graph initialization does not execute BQL or direct database queries. Parameter mappings are read when the side-panel action is invoked.

Implementation notes

  • Only site-map entries backed by a concrete PXGraph can host a configured action.
  • Only BQL-backed fields are offered for mapping, which avoids UI-only helper fields that cannot be read reliably from the current DAC record.
  • Each active GI parameter can be mapped once per target screen.
  • A source view must have a current record when the user invokes the action.
  • Empty mapped values raise a clear exception rather than opening an unfiltered inquiry.
  • Side-panel actions are registered server-side, so target screens are not coupled to a specific Classic or Modern UI implementation.

Portfolio focus

This example demonstrates several Acumatica development patterns in one focused customization:

  • Graph extensions and event handlers.
  • Custom DACs with primary and foreign key declarations.
  • Fluent BQL and typed data access.
  • Dynamic action registration across unrelated graphs.
  • Slot-based configuration caching.
  • Context-aware GI navigation.
  • Modern UI TypeScript and HTML extensions.
  • Customization-package assembly and validation.
  • Acuminator-compliant code with narrowly scoped suppressions.

Disclaimer

This is an independent developer example and is not an official Acumatica product. Acumatica is a trademark of Acumatica, Inc.

Author: Kitt Parker

S
Description
Acumatica 2026 R1 developer example that adds configurable Generic Inquiry side panels with context-aware parameter mapping.
Readme
46 KiB
Languages
C# 96%
TypeScript 2.7%
HTML 1.3%