Skip to main content
Solved

how to add new field on document details

  • April 14, 2021
  • 1 reply
  • 163 views

pandachan48
Jr Varsity II
Forum|alt.badge.img

Could someone know how to add new field? I need to put extra info here. thank you

 

 

Best answer by Naveen Boga

Hi @pandachan48 

To add a new field in Document details, you need to extend the CROpportunityProducts DAC and add this field to cr304000 .aspx page.

 

I just added a test field and please find the sample example below.

CROpportunityProducts Extended DAC

using PX.Data;
using PX.Data.BQL;
using PX.Objects.CR;

namespace Test
{
    public class CROpportunityProductsExt : PXCacheExtension<CROpportunityProducts>
    {
        #region UsrKNDisplaySKU
        [PXDBString(50, InputMask = "")]
        [PXUIField(DisplayName = "Test Field")]
        public string UsrTestField { get; set; } 
        public abstract class usrTestField : BqlString.Field<usrTestField> { }
        #endregion
    }
}

 

View original
Did this topic help you find an answer to your question?

1 reply

Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • 3409 replies
  • Answer
  • April 14, 2021

Hi @pandachan48 

To add a new field in Document details, you need to extend the CROpportunityProducts DAC and add this field to cr304000 .aspx page.

 

I just added a test field and please find the sample example below.

CROpportunityProducts Extended DAC

using PX.Data;
using PX.Data.BQL;
using PX.Objects.CR;

namespace Test
{
    public class CROpportunityProductsExt : PXCacheExtension<CROpportunityProducts>
    {
        #region UsrKNDisplaySKU
        [PXDBString(50, InputMask = "")]
        [PXUIField(DisplayName = "Test Field")]
        public string UsrTestField { get; set; } 
        public abstract class usrTestField : BqlString.Field<usrTestField> { }
        #endregion
    }
}

 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings