【问题标题】:Add a column to a dac with langage使用语言向 dac 添加列
【发布时间】:2021-12-15 07:01:25
【问题描述】:

考虑到连接用户的语言,我想添加“描述系列”列。我尝试了函数“PXLocalizableDefault”,但我不知道如何使用这个函数。

public class InventoryItemExt : PXCacheExtension<PX.Objects.IN.InventoryItem>
{
    #region UsrDescription
        [PXUIField(DisplayName="Famille description")]
        [PXLocalizableDefault(typeof(Search<INItemClass.descr,
        Where<INItemClass.itemClassID,
        Equal<InventoryItem.itemClassID>>>),typeof(User.languageName????)
        ,PersistingCheck=PXPersistingCheck.Nothing)]
    #endregion
}

描述屏幕:

【问题讨论】:

    标签: acumatica


    【解决方案1】:

    我相信您可以使用 PXDBLocalizableString 作为 PXDBString 的替代品,它将提供您正在寻找的功能。

    public class InventoryItemExt : PXCacheExtension<PX.Objects.IN.InventoryItem>
    {
        #region UsrDescription
            [PXUIField(DisplayName="Famille description")]
            [PXDBLocalizableString(15, IsUnicode = true)] 
         public string UsrDescription { get; set; }
         public class usrDescription : BqlString.Field<usrDescription > {}
        #endregion
    }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2023-04-08
      • 2018-10-26
      • 2018-08-13
      • 1970-01-01
      • 2019-10-16
      • 2017-04-07
      • 1970-01-01
      • 2019-04-27
      相关资源
      最近更新 更多