Skip to main content
Answer

unable to insert after changing attribute type from int to decimal

  • February 27, 2023
  • 2 replies
  • 53 views

Forum|alt.badge.img
Unable to insert after changing attribute type from int to decimal

 

This my DAC code

     #endregion

        #region QtyPlan
        [PXDecimal]
        [PXUIField(DisplayName = "Qty Plan", Required = true)]
        public virtual Decimal? QtyPlan { get; set; }
        public abstract class qtyPlan : PX.Data.BQL.BqlDecimal.Field<qtyPlan> { }
        #endregion

Please Help Me

Best answer by Naveen Boga

Hi @Febri 

The above DAC field, you declared like an unbound field, please declare as BOUND field like [PXDBDecimal] and verify.

 

 #region QtyPlan
        [PXDecimal]
        [PXUIField(DisplayName = "Qty Plan", Required = true)]
        public virtual Decimal? QtyPlan { get; set; }
        public abstract class qtyPlan : PX.Data.BQL.BqlDecimal.Field<qtyPlan> { }
        #endregion

 

2 replies

Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • Answer
  • February 27, 2023

Hi @Febri 

The above DAC field, you declared like an unbound field, please declare as BOUND field like [PXDBDecimal] and verify.

 

 #region QtyPlan
        [PXDecimal]
        [PXUIField(DisplayName = "Qty Plan", Required = true)]
        public virtual Decimal? QtyPlan { get; set; }
        public abstract class qtyPlan : PX.Data.BQL.BqlDecimal.Field<qtyPlan> { }
        #endregion

 


Forum|alt.badge.img
  • Author
  • Freshman I
  • February 27, 2023

wow very good,

Thanks sense