【问题标题】:How can I set an Attribute as a Parameter in Acumatica Report Designer?如何在 Acumatica 报表设计器中将属性设置为参数?
【发布时间】:2021-08-14 07:10:03
【问题描述】:

我已经为库存项目屏幕创建了一个属性,我希望该属性作为我的报告 .rpx 文件中的参数。我的属性是组合类型属性。

【问题讨论】:

    标签: acumatica acumatica-kb


    【解决方案1】:

    我编写了一个小定制,展示了如何将特定属性添加到报告参数。 首先创建一个自定义 DAC。就我而言,我选择公开 INDUSTRY 属性。

     public class IndustryAttr : IBqlTable
     {
        #region UsrIndustry
        [PXDBString]
        [PXUIField(DisplayName = "Industry")]
        [PXSelector(typeof(Search<CSAttributeDetail.valueID,      
        Where<CSAttributeDetail.attributeID,Equal<ind>>>),
        typeof(CSAttributeDetail.valueID),
        typeof(CSAttributeDetail.description))]
        public virtual string UsrIndustry { get; set; }
        public abstract class usrIndustry : PX.Data.BQL.BqlString.Field<usrIndustry>  {}
        #endregion
    }
    
    public class ind : PX.Data.BQL.BqlString.Constant<ind>
    {
        public ind()
          : base("INDUSTRY")
        {
        }
    }
    

    接下来我在报告中添加了参数。注意属性声明。

    现在 Industry 属性显示为选择器

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多