We have a customization to a screen that needs to be upgraded to modern UI. The only thing that is different in the customization vs. the default screen is the graphType. This particular customization required us to create a completely new graph vs. a graph extension but no changes to screen layout.
How would I create a Typescript extension that only changes the graphType value? I actually got this to work by just changing the default GL504500.ts file and compiling but that doesn’t feel like the right way to do this as it could get overwritten by future Acumatica updates.
// #####################################################
// C:\inetpub\wwwroot\AcumaticaCCS\FrontendSources\screen\src\screens\GL\GL504500\GL504500.ts
// #####################################################
import {
PXScreen, createSingle, createCollection, graphInfo, PXPageLoadBehavior, PXView, PXFieldState,
PXFieldOptions, linkCommand, columnConfig, PXActionState, gridConfig, GridPreset
} from "client-controls";
@graphInfo({ graphType: "PX.Objects.GL.AllocationProcess", primaryView: "Filter", pageLoadBehavior: PXPageLoadBehavior.PopulateSavedValues })
export class GL504500 extends PXScreen {
ViewBatch: PXActionState;
EditDetail: PXActionState;
Filter = createSingle(AllocationFilter);
Allocations = createCollection(AllocationExt);
}

