我的DAC DMSRouteSetting.CS
#region RouteCD
public abstract class routeCD : IBqlField { }
[PXDBString(15)]
[PXDefault, PXUIField(DisplayName = "Route ID", Required = true)]
[PXSelector(typeof(Search4<DMSRouteSetting.routeCD, Aggregate<GroupBy<DMSRouteSetting.routeCD>>>))]
public virtual string RouteCD { get; set; }
#endregion
我想在选择器中选择一个存在的值或键入一个新值。 当前。我只选择一个存在的值但不能输入新值 你能帮助我吗? 感谢
答案 0 :(得分:4)
Try adding ValidateValue = false in your selector attribute
public abstract class routeCD : IBqlField { }
[PXDBString(15)]
[PXDefault, PXUIField(DisplayName = "Route ID", Required = true)]
[PXSelector(typeof(Search4<DMSRouteSetting.routeCD, Aggregate<GroupBy<DMSRouteSetting.routeCD>>>), ValidateValue = false)]
public virtual string RouteCD { get; set; }
答案 1 :(得分:0)