Skip to content

Instantly share code, notes, and snippets.

@BrianMRO
Created June 19, 2023 02:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BrianMRO/e7078b1fbbc6901da9f819826d62024e to your computer and use it in GitHub Desktop.
Save BrianMRO/e7078b1fbbc6901da9f819826d62024e to your computer and use it in GitHub Desktop.
2023r1 Modern UI - WO202000.ts
import { autoinject } from 'aurelia-framework';
import {
ScreenBaseViewModel, createCollection, graphInfo, commitChanges, BaseViewModel,
PXFieldState
} from 'client-controls';
@graphInfo({ graphType: 'CMMS.WOMeasurementMaint', primaryView: 'Measurements' })
@autoinject
export class WO202000 extends ScreenBaseViewModel {
Measurements = createCollection(WOMeasurement, {
adjustPageSize: true, initNewRow: true, syncPosition: true,
quickFilterFields: ['MeasurementCD'], mergeToolbarWith: "ScreenToolbar"
});
}
export class WOMeasurement extends BaseViewModel {
@commitChanges MeasurementCD: PXFieldState;
Descr: PXFieldState;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment