升级后的自定义用户字段未填充在网格中

问题描述 投票:0回答:1

我已经进行了自定义,以将用户字段添加到正在通过多个版本/升级工作的“雇员考勤卡”屏幕(EP305000)网格区域中,但是现在在版本20.102.0015中,它无法将数据引入用户字段中。 >

用户字段定义如下:

public class EPTimecardDetailExt : PXCacheExtension<EPTimecardDetail>
{
    #region UsrStartDate
    public abstract class usrStartDate : IBqlField { }
    [PXDBDateAndTime(DisplayNameDate = "Start Date", DisplayNameTime = "Start Time*", UseTimeZone = true)]
    //[PXDBTime(DisplayMask = "t", InputMask = "t")]
    [PXUIField(DisplayName = "Start Time*")]
    public virtual DateTime? UsrStartDate { get; set; }
    #endregion

    #region UsrEndDate
    public abstract class usrEndDate : IBqlField { }
    [PXDBDateAndTime(DisplayNameDate = "End Date", DisplayNameTime = "End Time*", UseTimeZone = true)]
    //[PXDBTime(DisplayMask = "t", InputMask = "t")]
    [PXUIField(DisplayName = "End Time*")]
    public virtual DateTime? UsrEndDate { get; set; }
    #endregion

    #region UsrRelatedCase
    public abstract class usrRelatedCase : IBqlField { }
    [PXDBString(10)]
    [PXUIField(DisplayName = "Related Case*")]
    [PXSelector(typeof(Search2<CRCase.caseCD,
                               InnerJoin<PMProject,
                                    On<CRCase.customerID, Equal<PMProject.customerID>>>,
                        Where<PMProject.contractID, Equal<Current<EPTimecardDetail.projectID>>>,
                        OrderBy<Desc<CRCase.caseCD>>>),
        typeof(CRCase.caseCD),
        typeof(CRCase.subject),
        typeof(CRCase.createdDateTime), 
        typeof(CRCase.caseClassID), 
        typeof(CRCase.status), 
        typeof(CRCase.contactID),
        typeof(CRCase.ownerID),
        DescriptionField = typeof(CRCase.subject))]
    //typeof(CRCase.status),
    //typeof(CRCase.priority),
    //typeof(CRCase.severity),
    //typeof(CRCase.caseClassID),
    //typeof(BAccount.acctName),
    //Filterable = true)]
    public virtual string UsrRelatedCase { get; set; }

    #endregion
}

这些值在数据库中-它们已正确保存-但它们不会显示在网格中。知道为什么会这样吗?

我有一项自定义功能,可以将用户字段添加到正在通过多个版本/升级工作的“雇员工时卡”屏幕(EP305000)网格区域中,但是现在在版本20.102.0015中,它无法......]

acumatica
1个回答
0
投票
解决方案由Acumatica支持提供。

在我的自定义中,我正在为“投影” DAC创建缓存扩展,即EPTimeCardDetail。解决方案是创建一个DAC扩展,它表示实际添加了用户字段的实际表,即PMTimeActivity。

© www.soinside.com 2019 - 2024. All rights reserved.