Skip to main content
Answer

how to add new field on document details

  • April 14, 2021
  • 1 reply
  • 177 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
}
}

 

1 reply

Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • 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
}
}