Acumatica PXselector, how to type new value into selector control

£可爱£侵袭症+ 提交于 2019-12-12 06:01:42

问题


My 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

I want to select a exist value in selector or typing a new value. Current. I just select a exist value but can't typing a new value Can you help me? Thanks


回答1:


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; }



回答2:


If i am not wrong, you cant directly add new values to selector, but you can set a property to show an icon next to selector which helps to open the Master Page and user can add it there.

Look for the property AllowAddNew="True" AllowEdit="True"



来源:https://stackoverflow.com/questions/33911603/acumatica-pxselector-how-to-type-new-value-into-selector-control

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!