Skip to main content
Question

Getting Issue on Modern UI files

  • September 21, 2026
  • 2 replies
  • 31 views

Hi @Everyone 

I am getting issue in Modern UI files when we extension screen in multiple project 

Example :- we have Bill of material screen in Acumatica so extension file 
Main File :- AM208000.ts

 

@gridConfig({	preset: GridPreset.Details,	pagerMode: GridPagerMode.NextPrevFirstLast,	adjustPageSize: true,	autoRepaint: ["BomMatlRecords", "BomStepRecords", "BomToolRecords", "BomOvhdRecords", "OutsideProcessingOperationSelected", "CurySettings_AMBomOper"],})export class AMBomOper extends PXView {}

 

Extension 1 :- AM208000_EWPAQMS_generated

under ts file we have code 
 

export interface AMBomOper_EWPAQMS_generated extends AMBomOper { }@gridConfig({	preset: GridPreset.Details,	pagerMode: GridPagerMode.NextPrevFirstLast,	adjustPageSize: true,	autoRepaint: ["EWQCBOMVariables", "EWQCInspectionPlanDetail", "EWQCAssociateChecklistGroups"],})export class AMBomOper_EWPAQMS_generated {}Issue :- my code is working but main view under the autoRepaint its not working while i publishing my files i dont know how to extend autoRepaint. 

2 replies

Forum|alt.badge.img+5

Hi ​@jchawda80 Can you explain the exact issue you’re facing? Please share the logs or screenshots if possible.


Steve Milner
Varsity III
Forum|alt.badge.img+2
  • Varsity III
  • September 21, 2026

@jchawda80 Your extension's @gridConfig isn't added to the base one. It replaces it. When an extension puts a decorator on a view class and the base class already has a decorator with the same name, the extension's options win and the original's are dropped. Nothing merges the two autoRepaint arrays. So after you publish, the Operations grid only repaints your three views, and Materials, Steps, Tools, Overhead and Outside Process stop following the selected operation.

List all nine views in your extension:

autoRepaint: ["BomMatlRecords", "BomStepRecords", "BomToolRecords", "BomOvhdRecords", "OutsideProcessingOperationSelected", "CurySettings_AMBomOper", "EWQCBOMVariables", "EWQCInspectionPlanDetail", "EWQCAssociateChecklistGroups"],

If you don't want to repeat preset and pagerMode, updateDecorator changes one option and keeps the rest of the original:

export interface AMBomOper_EWPAQMS extends AMBomOper { }
@updateDecorator("gridConfig", "autoRepaint", [ ...the same nine... ])
export class AMBomOper_EWPAQMS { }

It still sets the whole array, so the base views have to be in it either way.

Two things to watch. A file with the _generated suffix belongs to the Modern UI Editor, so put this in a custom extension (Edit TypeScript Extension) instead of editing the generated one. And since you have more than one project extending AM208000: if two of them put gridConfig on AMBomOper, only one survives. Keep it in one project, with the complete list.