I’m trying to update a customization for Modern UI. I’ve done the same on several other screens without problem, but can’t seem to make Customer Locations work.
I’m getting the dreaded “cannot be bound to a FieldState.” but the fields are in the DAC Extension. They show up fine in GIs (which is generally my test.)
Can anyone see what I’m doing wrong?
TS File:
import { PXFieldState, PXFieldOptions, createCollection, PXView, gridConfig, GridPreset } from "client-controls";
import { Location } from "../AR303020";
export interface LocationExtTest extends Location {}
export class LocationExtTest {
UsrTEKServiceTradeSend: PXFieldState;
UsrTEKServiceTradeManualID: PXFieldState<PXFieldOptions.CommitChanges>;
UsrTEKServiceTradeID: PXFieldState;
}
HTML File:
<template>
<qp-tab after="#tabGeneral" id="tab-STInfo" caption="ServiceTrade" load-on-demand="true">
<qp-template id="formSTGeneral" name="1-1" class="label-size-m">
<div slot="A">
<qp-fieldset id="STTesting3" view.bind="Location" caption="ID #s">
<field name="UsrTEKServiceTradeID"></field>
</qp-fieldset>
</div>
<div slot="B">
</div>
</qp-template>
</qp-tab>
</template>
DAC
public sealed class LocationTEKServiceTradeExt : PXCacheExtension<Location>
{
public static bool IsActive()
{
return true;
}
#region UsrTEKServiceTradeID
[PXDBString(25)]
[PXUIField(DisplayName="ServiceTrade ID")]
public string UsrTEKServiceTradeID { get; set; }
public abstract class usrTEKServiceTradeID : PX.Data.BQL.BqlString.Field<usrTEKServiceTradeID> { }
#endregion
}
